8.1.2.3. Your Host System Has Red Hat Enterprise Linux 5 Installed
You should register your host system to your Satellite and check to see if the required xen
packages are installed on the system. If they are not, install them using the Satellite
Fist, register your host system to your Satellite. Use ssh
to connect to your host system. Register your host system to your satellite issuing the following command as root:
rhnref_ks --serverUrl=http://your-satellite.example.com/XMLRPC \ --username=username --password=password
If your host system is already registered to a different Red Hat Network server, add the --force
to the command above.
Next, open up the host system's profile in the Satellite web interface. Log into the web interface of your Satellite at https://your-satellite.example.com/. Click on the Systems tab in the top red navigational bar. You should see the host system you just registered - click on its profile name to access its system profile page.
Make sure your system has access to the software channels it needs to access the software required for hosting virtual guests. From your host system's profile page, click on the Alter Channel Subscriptions link in the upper right side of the profile page under the Subscribed Channels header. Check the RHEL Virtualization and Red Hat Network Tools for RHEL Server checkboxes and click the Change Subscriptions button underneath the list of channels.
Next, check to see if you have the necessary software installed for hosting virtual guest on the system. On the host system, issue the following command as root:
rpm -q xen kernel-xen rhn-virtualization-host
If rpm
indicates these packages are not installed, you must install them by running the following command as root on the system:
yum install dxen kernel-xen rhn-virtualization-host
You will then need to edit the /etc/grub.conf
configuration file to boot the new xen kernel by default. To do this, select the lines in grub.conf
that pertain to the xen kernel from the beginning of the title
line to the end of the initrd
line, copy the lines, delete them, and paste them so they are the first kernel entry in grub.conf
. Also ensure that the value of the default variable at the top of grub.conf
is set to a value of '0'.
Reboot the system, boot it into the xen kernel. The system should not automatically boot into the xen kernel on reboot but if you would like to make sure it has for troubleshooting purposes, use the command uname -r
to see if the running kernel is a xen kernel. If you do not see the xen
string in the name of the kernel, you have not booted into the correct kernel.
If the system already has xen
and kernel-xen
installed you do not need to reboot after installing rhn-virtualization-host
.
You will also need to install and run the osad
package in order for your host system to be responsive to commands sent from the Satellite, such as start, pause, resume, and shutdown. To install:
yum install -y osad
after installation, you should then start the osad
process:
/sbin/service osad restart
Your host system should now be ready for RHN virtual guest provisioning.