
Installing Xen on Fedora 5
|
201
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.15-1.2054_FC5.img
default=0
To make the Xen kernel the default, change this line:
default=1
to:
default=0
Now you can reboot. Xen should start automatically, but let’s check:
# /usr/sbin/xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 880 1 r----- 20.5
The output should show that Domain-0 is running. Domain 0 controls all the guest
operating systems that run on the processor, similarly to how the kernel controls
processes in an operating system.
Installing a Xen Guest OS
Xen is now in control of the processor, but you need to add at least one guest operat-
ing system. We’ll start with installing a Fedora Core 5 guest, because it facilitates the
job, and then we’ll offer some tips for other variants of Linux.
Fedora Core 5
Fedora Core 5 has a Xen guest installation script that simplifies the process, although
it installs only FC5 guests. The script expects to access the FC5 install tree via FTP,
the Web, or NFS; for some reason, you can’t specify a directory or file. We’ll use our
FC5 installation DVD and serve it with Apache:
# mkdir /var/www/html/dvd
# mount -t iso9660 /dev/dvd /var/www/html/dvd
# apachectl start
Now we’ll run the installation script and answer its questions:
# xenguest-install.py
What is the name of your virtual machine? guest1
How much RAM should be allocated (in ...