[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] [virtio] Add virtio block device sanboot suppor
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH] [virtio] Add virtio block device sanboot support |
Date: |
Wed, 06 Jan 2010 10:27:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4 |
On 01/05/10 21:46, Stefan Hajnoczi wrote:
This patch adds virtio block device support alongside the existing iSCSI,
ATA-over-Ethernet, and ramdisk block devices. The virtio block device provides
storage in virtualized environments.
Using this patch, a gPXE option ROM can boot a QEMU/KVM virtual machine
directly from a virtio block device.
Great.
Here is an example QEMU invocation:
qemu -drive if=virtio,file=debian.qcow2 -option-rom gpxe/src/bin/1af41001.rom
Perhaps the first available device should be chosen if virtio_blk: is given
without PCI bus, device, and function. I am open to suggestions on how virtio
block device option ROMs should work.
Clear answer: as PCI ROM.
Try this (requires qemu 0.12):
qemu -drive if=none,id=boot,file=debian.qcow2 \
-device virtio-blk-pci,drive=boot,romfile=gpxe/src/bin/1af41001.rom
You should end up with a virtio-blk device with a pci rom bar holding
the option rom. seabios should load and run the rom. The disk should
appear in the boot menu (enabled by '-boot menu=on').
cheers,
Gerd