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
#include <iostream> | |
#include <cassert> | |
using RequestHandler = void (*)(void); | |
struct RequestHandlers { | |
static constexpr size_t MAX_REQ_TYPE_CNT = 255; | |
enum EFlags { | |
IsExisting = 0x01, | |
}; |