Installing Xen on Fedora 5
By now, you may be anxious to see how all of this works. So, let’s go through the
process of installing and configuring Xen and VMware and demonstrate how to vir-
tualize a server network.
Installing Xen on Fedora 5
In this section of the chapter, we’ll show you how to install Xen on a single machine
to manage two operating systems. As Xen makes its way into the standard Linux dis-
tributions, installation will become smoother. But for now, some manual labor is
We’re using Fedora Core 5 (FC5) as the Xen host operating system, since it supports
Xen 3.0 out of the box. Let’s ask yum (a package manager similar to Debian’s apt-get
or Red Hat’s up2date) about Xen:
# yum info xen
Loading "installonlyn" plugin
Setting up repositories
core [1/3]
updates [2/3]
extras [3/3]
Reading repository metadata in from local files
Available Packages
Name : xen
Arch : i386
Version: 3.0.2
Release: 3.FC5
Size : 1.4 M
Repo : updates
Summary: Xen is a virtual machine monitor
This package contains the Xen hypervisor and Xen tools, needed to
run virtual machines on x86 systems, together with the kernel-xen*
packages. Information on how to use Xen can be found at the Xen
project pages.
Virtualisation can be used to run multiple versions or multiple
Linux distributions on one system, or to test untrusted applications
in a sandboxed environment. Note that the Xen technology is still
in development, and this RPM has received extremely little testing.
Don't be surprised if this RPM eats your data, drinks your coffee
or makes fun of you in front of your friends.
That sounds encouraging. Let’s try it, but first check some requirements:
The system must have at least 256 MB of RAM.
grub must be your boot loader.
SELINUX must be disabled or permissive, but not enforcing.
Chapter 9: Virtualization in the Modern Enterprise
Run the system-config-securitylevel program or edit /etc/selinux/config to looks as
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
If you changed the SELINUX value from enforcing, you’ll need to reboot Fedora before
This command will install the Xen hypervisor, a Xen-modified Fedora kernel called
domain 0, and various utilities:
# yum install kernel-xen0
The need for a special Xen-modified Linux kernel may disappear in
the future as Intel and AMD introduce virtualization support in their
chips. Windows Vista is also expected to support virtualization at the
processor level.
This adds xen0 as the first kernel choice in /boot/grub/grub.conf, but not the default:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
title Fedora Core (2.6.17-1.2157_FC5xen0)
root (hd0,0)
kernel /xen.gz-2.6.17-1.2157_FC5
module /vmlinuz-2.6.17-1.2157_FC5xen0 ro root=/dev/VolGroup00/LogVol00
module /initrd-2.6.17-1.2157_FC5xen0.img
title Fedora Core (2.6.17-1.2157_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2157_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.17-1.2157_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)

Get Linux System Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.