Posted by: Sid Smith
After finally setting up a SLES 10 server on Hyper-V I thought I write a little how to on getting the Linux Integration components working. Microsoft includes an install doc that doesn’t really tell the whole story.
I had already installed SLES before I read the manual and found out that XEN Virtualization support needed to be installed as well and Microsoft documentation also states that you need the C++ compiler. What they really mean is the gcc compiler. What they fail to mention is that you also need he kernel-sources installed as well.
Because I already had installed SLES I decided to install the additional packages using Yast. You should be aware that there is no mouse support and you can’t get any until the Linux Integration components are installed, so be prepared to bang on your keyboard and possibly pull a Keifer and head bunt your monitor. Once you get that out of the way we can go ahead and this installed.
To install the XEN Virtualization components I took the easy road and opened a Console and ran the text verison of Yast. On the left menu their is a Virtualization menu item. Aroow down then tab over ot the right side and install away. Once it install you will need to reboot. You’ll notice when you reboot their is another boot option for xenpae. This won’t be the default and this is fine for now. Next you need to install the gcc compiler and the kernel-sources. I had a bit of a chore doing this because the Virtual CDROM drive was giving me trouble. I was able to mount the cdrom using the console, but for whatever reason it wasn’t visible to Yast. To get around that I created another source. I chose to create a local source and just put in the path to the CDROM /media/CDROM.
Once the install finished I then mounted the Linux Integation Components CD and copied the contents to /opt/LIC which is a directory that I created.
cp -R /media/CDROM/* /opt/LIC
(*Note: The Microsoft Documentation tells you to copy /mnt/cdrom which is not correct).
Next I issued the following command which will set the xenpae kernel to be the default boot kernel.
chmod +x /opt/LIC/setup.pl
/opt/LIC/setup.pl x2v /boot/grub/menu.lst
Once complete you’ll need to reboot.
Once your server is back up you need to run the following command to install the drivers.
This will install the VMBus, network, storage, and video drivers, the Hypercall adapter, and Fastpath Boot Support. It however does not install a mouse driver. To get mouse support you need to download the iso from XEN. Once you have the ISO mount it and copy the contents to /opt/mouse.
cp -R /media/CDROM/* /opt/mouse
Once you have copied the files execute the following command.
chmod +x /opt/mouse/setup.pl
Reboot your server and you should now have the Linux Integration Components successfully installed on your SLES 10 Virtual machine. When you launce the Network Configuration you will see to network interfaces. You are seeing the optimized NIC and the non-optimized NIC be sure to Delete the old interface.