AllInfo
Main: Info Blog Temp Mail


unix 2017-05-02 16-54-11

Mounting a QEMU Image qemu-nbd


First you need the module loaded:
sudo modprobe nbd max_part=8

Then you can share the disk on the network and create the device entries:
sudo qemu-nbd --connect=/dev/nbd0 file.qcow2

Then you mount it:
sudo mount /dev/nbd0p1 /mnt/kvm

When done, unmount and unshare it:
sudo umount /mnt/kvm
sudo nbd-client -d /dev/nbd0

3.138.123.240 / 2024-12-22_20-05-55 UTC.