Skip to contentSkip to conversation

Virtio block device and LVM

DISCUSSION Dennis Jacobfeuerborn 2 participants 2 messages Mar 22, 2008 – Mar 23, 2008 KVM

lore
Share & tools
lore
#0 lore raw

Hi,
I'm trying to get the paravirtualized block device going but get in trouble with LVM. Both host and guest a very recent snapshot of Fedora 9 rawhide. The guest is a pristine F9 install with / mounted as /dev/VolGroup00/LogVol00.

When I boot with the command:
/usr/bin/qemu-kvm -m 512 -drive file=/root/test-1.img,media=disk,boot=on the guest boots fine but when I try to boot with:
/usr/bin/qemu-kvm -m 512 -drive file=/root/test-1.img,if=virtio,boot=on the kernel panics because it cannot find any volume-groups and thus not mount /.

Do I have to make any specific changes to the guest to make it recognize/detect the volume-group on the virtual block device?

Regards,
Dennis

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw
Quoted 12 lines · Dennis Jacobfeuerborn

Hi,
I'm trying to get the paravirtualized block device going but get in trouble with LVM. Both host and guest a very recent snapshot of Fedora 9 rawhide. The guest is a pristine F9 install with / mounted as /dev/VolGroup00/LogVol00.

When I boot with the command:
/usr/bin/qemu-kvm -m 512 -drive file=/root/test-1.img,media=disk,boot=on the guest boots fine but when I try to boot with:
/usr/bin/qemu-kvm -m 512 -drive file=/root/test-1.img,if=virtio,boot=on the kernel panics because it cannot find any volume-groups and thus not mount /.

Quoted 3 lines

Do I have to make any specific changes to the guest to make it recognize/detect the volume-group on the virtual block device?

You need to make sure virtio_blk and virtio_pci are included in your initrd.

Regards,

Anthony Liguori

Quoted 12 lines

Regards,
Dennis

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/