Skip to content

Instantly share code, notes, and snippets.

View pdostal's full-sized avatar
:octocat:

Pavel Dostál pdostal

:octocat:
View GitHub Profile
@pdostal
pdostal / mount_qcow2.md
Last active January 8, 2023 13:47 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################