This section provides instructions for installing, uninstalling, and upgrading the SUSE Drivers for Red Hat Enterprise Linux 4 on Xen.
Open a terminal.
Locate the RPM package you want to install (
opt/novell/vm-driver-pack).
If you are installing from the binary RPM included with the driver pack, the RPM is located on the driver pack ISO. .
(Optional) If you are installing from an RPM that you built, the RPM
is located in /usr/src/redhat/RPMS/
, where
arch arch is the architecture of the virtual
machine. See Section 7.3.5, “Building Your Own RPMs”
for more information.
Set up the ISO image or CD as a virtual CD reader by following the instructions in Section 5.1, “Virtual CD Readers”.
Enter rpm -U xxx.rpm ,
where xxx is the RPM filename.
Edit the /boot/grub/menu.lst file and make the
following change:
For each drive specified in the virtual machine configuration file
(for example, hda and hdb), append
hdx=noprobe to the kernel line
for the updated kernel, where hdx is the
drive specification found in the virtual machine configuration file.
Shut down the virtual machine.
On the virtualization host server, open a terminal and enter xm delete vm_name to delete the virtual machine’s reference in the xenstore so it is no longer managed.
![]() | |
Enter xm list to see the name of the virtual
machine ( | |
Open the virtual machine configuration file located on the
virtualization host server (
/etc/xen/vm/vm_cfgfile where
vm_cfgfile is usually the same as the name
of the virtual machine).
Remove all parameters from the vif= line except the mac=mac_address parameter. Make sure to leave the single quotes.
For example, change the line
vif=[ 'mac=00:16:3e:55:24:21,model=pcnet,type=ioemu', ]
to
vif=[ 'mac=00:16:3e:55:24:21', ]
At the terminal, enter xm new
vm_cfgfile to reference the
virtual machine in the xenstore so it is managed again.
Restart the virtual machine.
Open a terminal.
Locate the RPM package you want to install (
opt/novell/vm-driver-pack).
If you are installing from the binary RPM included with the driver pack, the RPM is located on the driver pack ISO. Refer to Section 5.1, “Virtual CD Readers”. for instructions on using the ISO image.
(Optional) If you are installing from an RPM that you built, the RPM
is located in /usr/src/redhat/RPMS/
, where
xxx xxx is the architecture of the virtual
machine. See Section 7.3.5, “Building Your Own RPMs”
for more information.
Ener rpm -U --force xxx.rpm
, where xxx is the filename of
the new RPM.
Install the new kernel packages.
Edit the /boot/grub/menu.lst file and remove all
hdx=noprobe entries from the kernel line.
Restart the virtual machine.
Upgrade the driver pack (see Section 7.3.3, “Upgrading the RHEL 4 Drivers”).
Edit the /boot/grub/menu.lst file and make the
following change:
For each drive specified in the virtual machine configuration file
(for example, hda and hdb), append
hdx=noprobe to the kernel line
for the updated kernel, where hdx is the
drive specification found in the virtual machine configuration file.
If you do not have a driver pack that was built for your Linux kernel, you can build your own SUSE Drivers for Red Hat Enterprise Linux 4 on Xen RPM.
Open a terminal.
Mount the driver pack ISO. Instructions for using the ISO are available in Section 5.1, “Virtual CD Readers”.
Enter rpmbuild -–rebuild
xxx.src.rpm , where
xxx is the name for the source RPM. This
creates a binary RPM in /usr/src/redhat/RPMS/
, where
arch/ arch is the architecture of the virtual
machine.