NOTE:The drivers for SLES 10 are not included in the driver pack. They are available through the standard update channels.
This section provides isntructions for running SLES 10 SP1 as a fully virtual guest with Xen drivers and contains the following topics:
You must have SUSE Linux Enterprise Server 10 SP1 or later.
Create a new fully virtual machine or start an existing fully virtual machine. (Use
).Get the latest updates for the operating system from your update channel. For information on updating SLES 10, see the SUSE Linux Enterprise Server 10 SP1 documentation.
IMPORTANT:Make sure you perform this step.
If you want to back up the driver files, enter mv initrd- xxx.img to initrd- xxx.img.bak (where xxx is the kernel version) at a terminal.
Verify that the Xen drivers are installed.
Launch YaST by entering yast2 at a terminal.
Select
.Search for xen-kmp and make sure that the appropriate drivers are installed for your system.
If they are not selected, select them and click
to complete the installation.Edit the virtual machine’s /boot/grub/menu.lst file. At the kernel line, append an hdx=noprobe parameter where hdx is the drive designation specified in the virtual machine configuration file.
For example, if the virtual machine configuration file specifies a virtual disk as hda, such as:
disk=['file:/var/lib/xen/images/vm1/hda,ioemu:hda,w']
the following kernel line should be appended:
kernel vmlinuz-kernel_ver hda=noprobe
Also at the kernel line, change root=/dev/disk/by-id/xxx to root=/dev/hdxx, where hdxx is the disk and partition of your root partition. For example, root=/dev/hda2.
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 Xen store so it is no longer managed.
HINT:Enter xm list to see the name of the virtual machine ( vm_name).
Open the virtual machine configuration file located on 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 Xen store so it is managed again.
Restart the virtual machine by using
> > .You can also restart the virtual machine by using xm start vm_cfgfile, but make sure to connect to it with a viewer.
The first time the virtual machine boots, you might see a message indicating that new hardware was found. This message is to be expected and can be safely cancelled.
Identify the number of each virtual network card.
Virtual network cards are identified by vif-x files located in the /sys/class/net/ethx/device/driver directories. For example, network card 0 is designated as /sys/class/net/eth0/driver/vif-0. Look in each ethx/driver directory for a vif-x file, such as vif-0, vif-1, and so on.
In YaST, click
. Select and delete each network card that is already configured.Click xen-vnif as the module name. Repeat the process to add all virtual network cards.
, then change the ethx parameter to a network card number identified in Step 1 and enter