Xen Installation
From MyWiki
This document summarizes the Xen installation procedure.
Contents |
Prerequisites
- Verify that selinux is disabled by issuing the command getenforce. This should return "Disabled".
- If not, disable selinux by editing /etc/sysconfig/selinux and changing the value for SELINUX to disabled.
- Reboot
Installation
- Install Xen via Yum. This is also install several dependencies
yum install kernel-xen0
- You will also want to install the vnc client.
yum install vnc
- After the yum installation is complete, you should check that you have all the following packages installed:
kernel-xen0 bridge-utils libvirt libvirt-python sysfsutils xen vnc vnc-server iproute device-mapper-multipath
- Edit /etc/grub.conf to set the default to use the xen0 entry (note: default numbering starts at zero). I also remove the "rhgb" and "quiet" options.
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
- Reboot
- After reboot, the command xm list should produce something similar to:
# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 7943 8 r----- 38.7
Loop Devices
Depending on how many guests you plan to be running, you may need to increase the number for loop devices
- Create additional loop devices
I=8 while [ $I -le 31 ] do mknod -m640 /dev/loop$I b 7 $I I=$((I + 1)) done
- Edit /etc/modprobe.conf, adding the following line:
options loop max_loop=32
- Activate changes
rmmod loop modprobe loop tail /var/log/messages
