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.149.254.35 / 2024-04-28_10-44-45 UTC.