Just tested out the QEMU for a KVM WINXP guest OS. Need to get Network drivers for e1000 into the KVM. How do we mount the qcow2 disk in /var/lib/vz/images/mydisk.qcow2 ?
Tried the following after stopping the guest OS:-
cd /var/lib/vz/images/
mkdir /dev/nbd0
modprobe nbd max_part=8
qemu-nbd mydisk.qcow2
nbd-client localhost 1024 /dev/nbd0
qemu-nbd --connect=/dev/nbd0 mydisk.qcow2
fdisk /dev/nbd0
mount /dev/nbd0 /mnt
mount /dev/nbd0p1 /mnt
All in vain.
The modprobe nbd max_part=8 gives:
The mount /dev/nbd0 /mnt gives
Tried the following after stopping the guest OS:-
cd /var/lib/vz/images/
mkdir /dev/nbd0
modprobe nbd max_part=8
qemu-nbd mydisk.qcow2
nbd-client localhost 1024 /dev/nbd0
qemu-nbd --connect=/dev/nbd0 mydisk.qcow2
fdisk /dev/nbd0
mount /dev/nbd0 /mnt
mount /dev/nbd0p1 /mnt
All in vain.
The modprobe nbd max_part=8 gives:
FATAL: Error inserting nbd (/lib/modules/2.6.24-7-pve/kernel/drivers/block/nbd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
The mount /dev/nbd0 /mnt gives
mount: /dev/nbd0 is not a block device