Download Chapter 3. The Xen Hypervisor

Transcript
configuration tools, simply make sure that CONFIG_IKCONFIG=y and CONFIG_IKCONFIG_PROC=y are set in your .config file.
If you have access to a running kernel configuration for your hardware, you can start your menuconfig for a Xen-enabled ke
Subarchitecture and turn it to Xen-Compatible . This gives us the XEN options we need. To enable Domain0 support, selec
make sure that all the necessary drivers for your hardware are built, especially the disk driver(s). Then, simply compile the
binary image to the boot directory allows the new kernel to be booted after the machine has been restarted.
Listing 4.18. Compiling the Newly Configured Kernel
[root@gentoo]# make
[root@gentoo]# make modules_install
[root@gentoo]# cp vmlinuz /boot/
[root@gentoo]#
Now we have to tell the GRUB bootloader installation about our new Xen kernel. To accomplish this, we need to edit the /bo
Listing 4.19. GRUB Menu
timeout 10
default 0
splashimage=(hd0,0)/b oot/grub/splash.xpm.gz
title Xen Gentoo
root (hd0,0)
kernel /xen-3.0.2.gz
module /vmlinux root=/dev/hda3
Now we should have a fully working Domain0 kernel compiled and ready for testing. Before rebooting, we need to install the
of commands, as well as other related tools for Domain0. These user space utilities are vital for interacting with Domain0 to
with traditional Portage notation. Because we used the -p option, Portage only pretended to install the packages to inform u
the relevant USE flags. If the output and package listing look acceptable, it should be safe to install them.
Listing 4.20. Using emerge to Get the Xen Tools
Code View:
[root@gentoo]# emerge -pv xen-tools
These are the packages that would be merged, in order:
Calculating dependencies
... done![ebuild N
] net-misc/bridge-utils-1.2 USE="sysfs" 31 kB
[ebuild N
] sys-apps/iproute2-2.6.19.20061214 USE="berkdb -atm -minimal" 392 kB
[ebuild N
] sys-devel/bin86-0.16.17 148 kB
[ebuild N
] dev-util/gperf-3.0.2 824 kB
[ebuild N
] sys-devel/dev86-0.16.17-r3 686 kB
[ebuild N
] app-emulation/xen-3.0.2 USE="-custom-cflags -debug -hardened -pae" 4,817 kB
[ebuild N
] app-emulation/xen-tools-3.0.2-r4 USE="sdl vnc -custom-cflags -debug -doc -pygrub -screen" 0 kB
Total size of downloads: 6,901 kB
[root@gentoo]# emerge xen-tools
[root@gentoo]#