Installation guide

4. Use the commands below load the para-virtualized driver modules. %kvariant is the kernel
variant the para-virtualized drivers have been build against and %release corresponds to the
release version of the para-virtualized drivers.
[root@rhel3]# mkdir -p /lib/modules/'uname -r'/extra/xenpv
[root@rhel3]# cp -R /lib/modules/2.4.21-52.EL[%kvariant]/extra/xenpv/%release
\
/lib/modules/'uname -r'/extra/xenpv
[root@rhel3]# depmod -ae
[root@rhel3]# modprobe xen-vbd
[root@rhel3]# modprobe xen-vnif
Note
Warnings will be generated by insmod when installing the binary driver modules due
to Red Hat Enterprise Linux 3 having MO D VERSIO NS enabled. These warnings can
be ignored.
5. Verify /etc/modules.conf and make sure you have an alias for eth0 like the one below. If
you are planning to configure multiple interfaces add an additional line for each interface.
alias eth0 xen-vnif
Edit /etc/rc.local and add the line:
insmod /lib/modules/'uname -r'/extra/xenpv/%release/xen-vbd.o
Note
Substitute “% release” with the actual release version (for example 0.1-5.el) for the
para-virtualized drivers. If you update the para-virtualized driver RPM package make
sure you update the release version to the appropriate version.
6. Shutdown the virtual machine (use “ #shutdown -h now inside the guest).
7. Edit the guest configuration file in /etc/xen/YourGuestName with a text editor, performing
the following changes:
Remove the “ type=ioemu entry from the “ vif= entry.
Add any additional disk partitions, volumes or LUNs to the guest so that they can be
accessed via the para-virtualized (xen-vbd) disk driver.
For each physical device, LUN, partition or volume you want to use the para-virtualized
drivers you must edit the disk entry for that device in the libvirt configuration file.
A typical disk entry resembles the following:
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/dev/hda6'/>
<target dev='hda'/>
</disk>
Chapt er 1 2 . Xen Para- virt ualiz ed Drivers
153