Paravirtualized block device: Difference between revisions

From KVM
No edit summary
 
No edit summary
Line 1: Line 1:
=Paravirtualized Block Device=
== Host side ==
== Host side ==
run kvm with command-line: -drive file=<path_to_your_raw_qemu_img>,if=virtio
run kvm with command-line: -drive file=<path_to_your_raw_qemu_img>,if=virtio

Revision as of 10:20, 11 March 2009

Paravirtualized Block Device

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