public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Virtio block device and LVM
@ 2008-03-22 22:01 Dennis Jacobfeuerborn
  2008-03-23  0:57 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Jacobfeuerborn @ 2008-03-22 22:01 UTC (permalink / raw)
  To: kvm-devel

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Virtio block device and LVM
  2008-03-22 22:01 Virtio block device and LVM Dennis Jacobfeuerborn
@ 2008-03-23  0:57 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2008-03-23  0:57 UTC (permalink / raw)
  To: Dennis Jacobfeuerborn; +Cc: kvm-devel

Dennis Jacobfeuerborn wrote:
> 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?
>   

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

Regards,

Anthony Liguori

> 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
> kvm-devel@lists.sourceforge.net
> 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-23  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-22 22:01 Virtio block device and LVM Dennis Jacobfeuerborn
2008-03-23  0:57 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox