![]() | Note |
|---|---|
The drivers for SLES 9 are not included in the driver pack. They are available through the standard update channels. | |
This section provides isntructions for running SLES 9 SP4 as a fully virtual guest with Xen drivers. Running SLES 9 SP4 requires a VM Host Server based on SUSE Linux Enterprise Server 10 SP2 or later.
To use this software, you must have SUSE Linux Enterprise Server 9 SP4 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 9, see the SUSE Linux Enterprise Server 9 Documentation.
![]() | Important |
|---|---|
Make sure you perform this step. | |
If you want to back up the driver files, open a terminal and enter
cp initrd-xxx.img to initrd-
xxx.img.bak , where
xxx is the kernel version.
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.
In SUSE Linux Enterprise Server 10, the device naming is different than the device naming of SUSE Linux Enterprise Server 9. Therefore, a SUSE Linux Enterprise Server 9 VM Guest will not be able to find its root file system when running on a SUSE Linux Enterprise Server 10 VM Host Server.
To be able to still boot the system, you must know which device
is used for the root partition of your virtual system. For
example, hdaxx will be changed to
xvdaxx where
xx is the partition number.
When booting the system, you have to append an extra root option
to the kernel command line, that tells the system about its root
file system. If your VM Guest used to live on
/dev/hda2, append the string
root=/dev/xvda2 to the kernel command line.
This option should enable you to boot the system, although
additional filesystems still will not be available to the system.
To make all the needed file systems available to the VM Guest,
edit the file /etc/fstab and correct all
device entries.
In order to have a valid initial ramdisk that knows about the new location of the root filesystem, run the command mkinitrd.
Edit the virtual machine’s /boot/grub/menu.lst
file. At the kernel line, append an xvd
x=noprobe parameter where
xvdis the drive
designation specified in the virtual machine configuration file.
x
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:xvda,w'],
you should see something like kernel vmlinuz-kernel_ver
xvda=noprobe appended to the kernel line.
Reboot 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.
![]() | Tip |
|---|---|
Enter xm list to see the name of the virtual
machine ( | |
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 can be safely canceled.
Identify the number of each virtual network card.
Virtual network cards are identified by vif-x
files located in the /sys/class/net/ethx/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.
Run YaST.
Make sure you are logged in as root.
Open a terminal.
Enter YaST2.
In YaST, click .
Click , then select and delete each network card that is already configured.
Click , then change the ethx parameter to a network card number identified above. Repeat the process to add all virtual network cards.