Paravirtualized block device

From KVM
Revision as of 08:52, 4 February 2009 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Host side

run kvm with command-line: -drive file=<path_to_your_raw_qemu_img>,if=virtio

you can also specify boot=on in the command-line: -drive file=<path_to_your_raw_qemu_img>,if=virtio,boot=on

Guest side

sudo modprobe virtio_blk

to have virtio_blk driver, you need to upgrade the kernel to higher than 2.6.25.

refer to Virtio