<div class="gmail_quote">On Wed, Jan 21, 2009 at 2:48 PM, Mark McLoughlin <span dir="ltr"><<a href="mailto:markmc@redhat.com">markmc@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(This is all getting offtopic for fedora-xen, we should really move to<br>
fedora-virt)<br>
<br>
On Wed, 2009-01-21 at 14:28 +0100, Jan ONDREJ (SAL) wrote:<br>
>  virtio_net works well, but I have trouble to boot from virtio_blk.<br>
><br>
> I can add second disk as virto block device, but I can't boot from<br>
> first disk.<br>
<br>
When switching from IDE to virtio, you need to first build a new initrd<br>
in the guest with e.g.:<br>
<br>
  $> mkinitrd --with virtio_pci --with virtio_blk -f /boot/initrd-$(kernelversion) $(kernelversion)<br>
<br>
You only need to do this once. After that, if a new kernel is installed<br>
while you're booted off a virtio disk, then mkinitrd will include the<br>
modules automatically.</blockquote><div><br>You will also need to specify /dev/vdX on the kernel  root= line and make sure your init script inside your initrd triggers the virtio drivers at boot so that the /dev/vdX are created.<br>
<br></div></div>-- <br>Emre<br>