Installation guide
Modify each disk entry, as desired, to use the para-virtualized by changing the driver
elements as shown below.
<disk type='file' device='disk'>
<driver name='tap' type='aio'/>
<source file='/dev/hda6'/>
<target dev='xvda'/>
</disk>
Once complete, save the modified configuration file and restart the guest.
8. Boot the virtual machine:
# xm start YourGuestName
Where YourGuestName is the name of the configuration file or the guest operating system's
name as defined in its configuration file in the name = "o s_n ame" parameter.
Warning
The para-virtualized drivers are not automatically added and loaded to the system because
weak-modules and modversions support is not provided in Red Hat Enterprise Linux 3. To
insert the module execute the command below.
insmod xen_vbd.ko
Red Hat Enterprise Linux 3 requires the manual creation of the special files for the block devices
which use xen-vbd. The steps below will cover how to create and register para-virtualized block
devices.
Use the following script to create the special files after the para-virtualized block device driver is
loaded.
#!/bin/sh
module="xvd"
mode="664"
major=`awk "\\$2==\"$module\" {print \\$1}" /proc/devices`
# < mknod for as many or few partitions on xvd disk attached to FV guest >
# change/add xvda to xvdb, xvbd, etc. for 2nd, 3rd, etc., disk added in
# in xen config file, respectively.
mknod /dev/xvdb b $major 16
mknod /dev/xvdb1 b $major 17
mknod /dev/xvdb2 b $major 18
chgrp disk /dev/xvd*
chmod 0660 /dev/xvd*
For each additional virtual disk, increment the minor number by 16. In the example below an
additional device, minor number 16, is created.
# mknod /dev/xvdc b $major 16
# mknod /dev/xvdc1 b $major 17
This would make the next device 32 which can be created by:
Red Hat En t erp rise Lin ux 5 Virt ualizat ion Guid e
154