* grub booting from virtio but can't see virtio disks @ 2010-08-02 19:05 Martin Kraus 2010-08-03 5:58 ` Gleb Natapov 0 siblings, 1 reply; 5+ messages in thread From: Martin Kraus @ 2010-08-02 19:05 UTC (permalink / raw) To: kvm Hi. I've been wondering why grub can boot from a virtio device but can't see virtio devices. I wanted to have a generic disk which would have a bios partition with grub modules and this would include grub.cfg from a second disk. I could use this image to boot all my virtual linux machines without the need to have a partition on a logical volume. This way I have a separate virtio boot lv with partitions and it works fine. It just doesn't seem as nice and I'm curious if there is a way to get it to work, meaning if for example using efi or some other kind of bios for qemu or grub module would help it. thanks mk ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub booting from virtio but can't see virtio disks 2010-08-02 19:05 grub booting from virtio but can't see virtio disks Martin Kraus @ 2010-08-03 5:58 ` Gleb Natapov 2010-08-07 15:31 ` Martin Kraus 0 siblings, 1 reply; 5+ messages in thread From: Gleb Natapov @ 2010-08-03 5:58 UTC (permalink / raw) To: Martin Kraus; +Cc: kvm On Mon, Aug 02, 2010 at 09:05:48PM +0200, Martin Kraus wrote: > Hi. I've been wondering why grub can boot from a virtio device but can't see > virtio devices. I wanted to have a generic disk which would have a bios > partition with grub modules and this would include grub.cfg from a second disk. > I could use this image to boot all my virtual linux machines without the need > to have a partition on a logical volume. This way I have a separate virtio > boot lv with partitions and it works fine. It just doesn't seem as nice and I'm > curious if there is a way to get it to work, meaning if for example using efi > or some other kind of bios for qemu or grub module would help it. > What is your qemu version and qemu command line? -- Gleb. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub booting from virtio but can't see virtio disks 2010-08-03 5:58 ` Gleb Natapov @ 2010-08-07 15:31 ` Martin Kraus 2010-08-08 11:39 ` Gleb Natapov 0 siblings, 1 reply; 5+ messages in thread From: Martin Kraus @ 2010-08-07 15:31 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm On Tue, Aug 03, 2010 at 08:58:59AM +0300, Gleb Natapov wrote: > On Mon, Aug 02, 2010 at 09:05:48PM +0200, Martin Kraus wrote: > > Hi. I've been wondering why grub can boot from a virtio device but can't see > > virtio devices. I wanted to have a generic disk which would have a bios > > partition with grub modules and this would include grub.cfg from a second disk. > > I could use this image to boot all my virtual linux machines without the need > > to have a partition on a logical volume. This way I have a separate virtio > > boot lv with partitions and it works fine. It just doesn't seem as nice and I'm > > curious if there is a way to get it to work, meaning if for example using efi > > or some other kind of bios for qemu or grub module would help it. > > > What is your qemu version and qemu command line? debian squeeze 0.12.4 kvm -cpu host -drive file=/dev/mapper/virtual-ctech_boot,boot=on,if=virtio,cache=none -drive file=/dev/mapper/virtual-ctech,if=virtio,cache=none virtual-ctech_boot is partitioned and mounts as "/boot" in the virtual guest and virtual-ctech is not partitioned and is mounted as "/". This works fine but grub sees only the virtual-ctech_boot from which it is booting. From that I see it is possible to access virtio devices at boot time but somehow the bootdisk is different from the other disk. I have to set if=ide for virtual-ctech for grub to be able to see it. Is it possible to see all the virtio disks in grub or am I just out of luck? thanks mk ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub booting from virtio but can't see virtio disks 2010-08-07 15:31 ` Martin Kraus @ 2010-08-08 11:39 ` Gleb Natapov 2010-08-08 16:14 ` Martin Kraus 0 siblings, 1 reply; 5+ messages in thread From: Gleb Natapov @ 2010-08-08 11:39 UTC (permalink / raw) To: Martin Kraus; +Cc: kvm On Sat, Aug 07, 2010 at 05:31:16PM +0200, Martin Kraus wrote: > On Tue, Aug 03, 2010 at 08:58:59AM +0300, Gleb Natapov wrote: > > On Mon, Aug 02, 2010 at 09:05:48PM +0200, Martin Kraus wrote: > > > Hi. I've been wondering why grub can boot from a virtio device but can't see > > > virtio devices. I wanted to have a generic disk which would have a bios > > > partition with grub modules and this would include grub.cfg from a second disk. > > > I could use this image to boot all my virtual linux machines without the need > > > to have a partition on a logical volume. This way I have a separate virtio > > > boot lv with partitions and it works fine. It just doesn't seem as nice and I'm > > > curious if there is a way to get it to work, meaning if for example using efi > > > or some other kind of bios for qemu or grub module would help it. > > > > > What is your qemu version and qemu command line? > > debian squeeze 0.12.4 > > kvm -cpu host -drive file=/dev/mapper/virtual-ctech_boot,boot=on,if=virtio,cache=none -drive > file=/dev/mapper/virtual-ctech,if=virtio,cache=none > > virtual-ctech_boot is partitioned and mounts as "/boot" in the virtual guest and virtual-ctech is not > partitioned and is mounted as "/". > > This works fine but grub sees only the virtual-ctech_boot from which it is > booting. From that I see it is possible to access virtio devices at boot time but > somehow the bootdisk is different from the other disk. > > I have to set if=ide for virtual-ctech for grub to be able to see it. > Can you try to use latest seabios and see if it changes something? You can get seabios here git://git.linuxtogo.org/home/kevin/seabios.gi To tell qemu to use specific bios image use -bios flag. > Is it possible to see all the virtio disks in grub or am I just out of luck? > > thanks > mk -- Gleb. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub booting from virtio but can't see virtio disks 2010-08-08 11:39 ` Gleb Natapov @ 2010-08-08 16:14 ` Martin Kraus 0 siblings, 0 replies; 5+ messages in thread From: Martin Kraus @ 2010-08-08 16:14 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm On Sun, Aug 08, 2010 at 02:39:59PM +0300, Gleb Natapov wrote: > Can you try to use latest seabios and see if it changes something? > You can get seabios here git://git.linuxtogo.org/home/kevin/seabios.gi > To tell qemu to use specific bios image use -bios flag. This works. I've compiled seabios from git and I can get to the virtio disks. Thank you for your help. mk ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-08 16:39 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-08-02 19:05 grub booting from virtio but can't see virtio disks Martin Kraus 2010-08-03 5:58 ` Gleb Natapov 2010-08-07 15:31 ` Martin Kraus 2010-08-08 11:39 ` Gleb Natapov 2010-08-08 16:14 ` Martin Kraus
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox