Friday, August 14, 2009

Installing Redhat Linux 5.3 on Hyper-V with Linux Integration Components v2 RC2

It has been a real busy week with Windows 7 RTM and with Windows 2008 R2 releasing soon, there are so many new features to try out. Well, as work requires, I have the opportunity to try setup Redhat Linux 5.3 on Hyper-V with the new release of Linux Integration Components v2 RC2.

The LinuxICs are available for download on The Linux Integration Components Readme.pdf which is packaged with the LinuxIC download provides are very good detailed explanation of the installation process.

I am doing a full pictorial of a installation of RHEL5.3 onto a Hyper-V server and I got the mouse to work too.

Create the Virtual Machine

First, you need to create a Virtual Machine.


Give it 1GB of memory for GUI features.


We will need network to work so that we can get yum updates.


You configure a hard disk size for your VM.


Map the RHEL iso image to DVD drive for installation.


And we are just about ready to start. DO NOT start yet, as we need to add a legacy network adaptor at this moment.


Add a Legacy Network Adaptor to your Virtual Machine hardware.


Connect this Legacy Adaptor to your bridged network that have internet connectivity as we need YUM UPDATE.


Now, fire up the machine and start installation.


You will need to enter your Installation Number here to be able to get YUM UPDATE.


You need to setup networking here.


In previous RHEL versions we have to install XEN Virtualization components, with this new LinuxIC and RHEL 5.3, DO NOT choose Virtualization. Now we can use a regular Linux Kernel and not a Xen Kernel. Please select Software Development.


Complete the wizard and we are ready to start installation.


Reboot once installation completes.


Let’s verify the network are ok by issuing “ifconfig eth0”. Check that you have a working IP address.


With network connectivity, we should now do a “yum update” to get the latest updates from your linux sources.


When you completed the update, reboot the machine by issuing “reboot” command.


Once the system boots up, verify that we have the required packages installed by issuing “yum install kernel-devel” and “yum install gcc” command.


Now we are ready to install the Linux IC. Insert the LinuxIC iso into the DVD drive and copy the contents to /opt/linuxic directory. You can issue the commands below.

mkdir /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

mkdir /opt/linuxic

cp /mnt/cdrom/* /opt/linuxic/ –R

cd /opt/linuxic

Having copy the content to /opt/linuxic, issue the command “./ drivers” to install the Linux Integration Components. Please do a reboot once installation completes.


Now that we have installed the Linux IC, I suggest we remove the legacy network adaptor and connect virtual network to the default Synthetic Ethernet network adaptor.


Let’s verify that the Linux ICs are working by issuing “/sbin/lsmod grep vsc”.


Then verify the Synthetic Ethernet adapter is working by issuing “ifconfig seth0”


The final step is to get the mouse working. Download the mouse support for Linux under Hyper-V from Citrix Project Satori

Mount the ISO and copy its contents to /opt/mousedrv.

Do a “yum install xorg-x11-server-sdk” to install xorg-x11-server-sdk package.

Then run “./” from /opt/mousedrv/ directory.


Here we have it, Redhat Linux 5.3 installed on Hyper-V with Linux Integration Components installed and mouse working too.


wee said...

Hi Brother, you always work well, and good share your experience.
very useful documents ,
wish your next , let's go.

Алексей said...

Can you help me with CentOS 5.3 x64 and Hyper-V R2? Problem described in
this thread

orangedeuce said...

CentOS should use the same steps without problems.

Middletown Duo said...
This comment has been removed by the author.
Middletown Duo said...

Your docs are GREAT. I have (or rather had) a working RHEL 5.3 system with Integration.

Now, two months later, I run a yum update and I get a new kernel. But it will not boot because the integration components are missing and it can't find the disk drive and so can't find /dev/VolGroup00/....

How can I fix this so the newly updated system will boot, and how do I avoid this issue the next time I upgrade the kernel with yum?


kazoki59 said...


i followed your great documentation to install linux IC on a RHEL 5.3 with kernel 2.6.18-164.11.1.el5. I worked fine.

i recently do a yum update on a RHEL 5.3 and a new kernel (2.6.18-164.15.1.el5) was installed
and i've the same problem as Middetown duo :

when rebooting i've a kernel panic (setuproot can't find root device)

how can i compile linux IC for another kernel than the running kernel use 'uname -r' and the Makefile in dist directory uses also current kernel

Thanks for your help

orangedeuce said...

Hi Middletown and kazoki59,
In my opinion, yum update will upgrade your Linux machine to the latest patch versions. Example, you have a Virtual Machine of RHEL 5.3 and yum update will upgrade the kernel to a 5.5 version.
Now, Hyper-V Linux IC for the current version only supports 5.2, 5.3 and 5.4. When the kernel version is changed during yum update, the linux integration components might not support the latest kernel versions.
I can only advice you not to do yum update for now.

orangedeuce said...

Hello all,
This is the advice I received from the experts. Disclaimers applies.
The root problem to yum update a VM with Linux IC is the fastpath boot driver (aka blkvsc). When the kernel is updated via yum update, you need to reinstall the integration components. However, you get a kernel panic after a reboot. The work around is to:
1. When the system boots, you are presented with the grub boot loader options screen. Hit any key when it says that it’s starting to boot the kernel and gives you the countdown. After pressing a button, you’ll see this screen:

2. Hit ‘e’ to edit the options for this boot entry for the newly installed kernel version. In this case, this is a clean CentOS 5.3 install that I ran yum update against, so I know the new kernel is the -164 entry.
3. Scroll down to the second line, and hit ‘e’ again:

4. Delete the hda=noprobe hdb=noprobe entries, and hit enter.

5. With the kernel line selected, hit ‘b’ to boot. You should now be able to boot without issue, and you can reinstall the integration services to regain all functionality. You don’t need to remove, you should just be able to reinstall by running again.

Jonathan said...

So, ive tried this several times and Im missing something. I keep running into "No package xorg-k11-server-sdk available"

Anyone recognize what I missed? I am a linux infant.

Jonathan said...

......never x became a k somehow..........great blog!!!

Matha said...

Any advice for RHEL 6 installation as the guest?