Example HVM guest configuration file for PVHVM use
Example configuration file ("/etc/xen/f16hvm") for Xen 4.x HVM guest VM using Linux PVHVM paravirtualized optimized drivers for disks and network:
This example has been tested and is working on Fedora 16 Xen dom0 host using the included Xen 4.1.2 and Linux 3.1 kernel in dom0, and Fedora 16 Xen PVHVM guest VM, also using the stock F16 Linux 3.1 kernel with the out-of-the-box included PVHVM drivers.
pvm安装还有个注意的地方是pv driver的安装,请参考xen wiki
http://wiki.xen.org/wiki/Using_Xen_PV_Drivers_on_HVM_Guest
http://wiki.xen.org/wiki/XenLinuxPVonHVMdrivers
比如看如下一个配置
disk = [ 'file:/system.img,hda,w', 'file:/disk1.img,sda,w', 'file:/disk2.img,xvda,w', ]
对于hda,比如要在启动dom0时指定ide0=noprobe,这样就不会用qemu-dm来模拟hda;对于sda一般不指定,不然qemu会把sda用sym53c8xx的驱动来模拟;而xvda这类设备是不会用qemu-dm来模拟的,如果使用pv driver,指定xvda, xvdb这类设备是最好的选择
202 blockXen Virtual Block Device
0 = /dev/xvda First Xen VBD whole disk
16 = /dev/xvdb Second Xen VBD whole disk
32 = /dev/xvdc Third Xen VBD whole disk
...
240 = /dev/xvdp Sixteenth Xen VBD whole disk
Partitions are handled in the same way as for IDE
disks (see major number 3) except that the limit on
partitions is 15.
[ 0.000000] Xen Platform PCI: I/O protocol version 1
[ 0.000000] Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs.
[ 0.000000] Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks
[ 0.000000] Xen HVM callback vector for event delivery is enabled
[ 2.377167] vbd vbd-5632: 19 xenbus_dev_probe on device/vbd/5632
[ 2.378134] blkfront: xvda: flush diskcache: enabled
[ 6.266448] Initialising Xen virtual ethernet driver.