4
This boosts HVM performance by putting ioemu in its own lightweight domain.
9
Due to a race between the creation of the IOEMU stubdomain itself and allocation
10
of video memory for the HVM domain, you need to avoid the need for ballooning,
11
by using the hypervisor dom0_mem= option for instance.
14
There is a sample configuration set in xmexample.hvm-stubdom
16
In your HVM config "hvmconfig" use stubdom-dm as dm script:
18
device_model = 'stubdom-dm'
24
mkdir -p /exports/usr/share/xen/qemu
25
ln -s /usr/share/xen/qemu/keymaps /exports/usr/share/xen/qemu
26
mkdir -p /exports/var/lib
27
ln -s /var/lib/xen /exports/var/lib
28
/usr/sbin/fs-backend &
37
This replaces pygrub to boot domU images safely: it runs the regular grub
38
inside the created domain itself and uses regular domU facilities to read the
39
disk / fetch files from network etc. ; it eventually loads the PV kernel and
47
- use pv-grub.gz as kernel:
51
- set the path to menu.lst, as seen from the domU, in extra:
53
extra = "(hd0,0)/boot/grub/menu.lst"
55
or you can provide the content of a menu.lst stored in dom0 by passing it as a
58
ramdisk = "/boot/domU-1-menu.lst"
60
or you can also use a tftp path (dhcp will be automatically performed):
62
extra = "(nd)/somepath/menu.lst"
64
or you can set it in option 150 of your dhcp server and leave extra and ramdisk
65
empty (dhcp will be automatically performed)
70
- You can not boot a 64bit kernel with a 32bit-compiled PV-GRUB and vice-versa.
71
To cross-compile a 32bit PV-GRUB,
73
export XEN_TARGET_ARCH=x86_32
75
- bootsplash is supported, but the ioemu backend does not yet support restart
76
for use by the booted kernel.
78
- PV-GRUB doesn't support virtualized partitions. For instance:
80
disk = [ 'phy:hda7,hda7,w' ]
82
will be seen by PV-GRUB as (hd0), not (hd0,6), since GRUB will not see any
99
you can compile examples of C or caml stub domain kernels. You can use these
100
and the relevant Makefile rules as basis to build your own stub domain kernel.
101
Available libraries are libc, libxc, libxs, zlib and libpci.