Improved Linux support on Server 2012 R2 HYPER-V

Microsoft is doing their best to welcome Linux as a first class citizen for their world and same goes on the virtualization arena. With the introduction of the Server 2012 R2 HYPER-V Microsoft has carried our several enhancement for the Linux support. This initially start with improving the LIS (Linux Integration Services) enhancements, thanks to the effort carried out by the MS team now LIS is integrated with several popular Linux distros.

Out the new improvements to the LIS two major ones that took my attention are,

Dynamic Memory support for Linux guest operating systems – with this we can treat Linux OS as a first class citizen in the HYPER-V. This is also welcome feature for virtual machine hosting providers as well. In my test lab I’ve installed Ubuntu 13.04 and configured dynamics memory. When the VM is in idle mode memory consumption has been reduced less than 200 MB!

image

Linux virtual machine backup support – Now you can use Windows Backup to backup the Linux VM while they’re running (although slight pause happens during snapshot) But this is a welcome feature I would see with significant value.

setting up Linux getting more easier in HYPER-V

With the latest RedHat version release (6.4) RedHat team has integrated the required device drivers to Run the OS in HYPER-V. Below mention drivers has been added to the kernel of the RedHat during their shipments,

a network driver (  hv_netvsc)
a storage driver (  hv_storvsc)
an HID-compliant mouse driver (  hid_hyperv)
a VMbus driver (  hv_vmbus)
a util driver (  hv_util)
an IDE disk driver (  ata_piix)
a clock source (i386, AMD64/Intel 64:  hyperv_clocksource)

(source)

RedHat Linux on HYPER-V

Few days back I mention about the latest version availability of Linux IC for HYPER-V. Soon after that got a chance to test this on RH 6.1. Below steps will guide through the setup process of RH 6.1 along with Linux IC. Once completed you have the mouse drivers setup properly. Some of the latest improvements of the Linux IC’s are,

First I went ahead and created a VM with default settings. Important part is to add a Legacy network card initially,

image

Adding legacy card will allow the Linux OS to have network communication without Linux  IC (Integrated components)

Rest of the process is typical Linux installation and will be shared with you’ll with screen captures,

image image

image image

image image

image Make sure you’re tick “Connect automatically” for the NIC in bootup.

image image

Make sure you select customize now and add the desktop component Smile

imageimage

At this moment Linux setup is completed. After the boot up you’ll have the chance to register with RedHat Network. This will help you to get the latest updates. Since I didn’t had a RH account I have skip this option,

image image

Now we go ahead and mount the Linux IC iso file which we have downloaded from Microsoft web site.

image image

Go ahead and open the Terminal and login under root account by typing “su –“

image image

Mount the CD Rom to the system, once mounted you can type “ls” and view the files in the CD Rom,

image image

Now it’s time to install the integrated components, depend on your operating system 32bit or 64bit execution files will be different,

For 64-bit versions:

# yum install /media/x86_64/kmod-microsoft-hyper-v-rhel6-60.1.x86_64

# yum install /media/x86_64/microsoft-hyper-v-rhel6-60.1.x86_64

# reboot

For 32-bit versions:

# yum install /media/x86/kmod-microsoft-hyper-v-rhel6-60.1.i686

#yum install /media/x86/microsoft-hyper-v-rhel6-60.1.i686

# reboot

I had a 32bit version of RH 6.1 ,

image image

image image

To see if Linux IC setup properly,

image

After this completes you can reboot the system and then check the mouse integration and also the functionality of the second NIC.

Latest Linux IC can be downloaded from here.

Microsoft Certifies REDHAT on HYPER-V

This has been long awaited expectation by many administrators. Many administrators kept away from HYPER-V  saying no compatibility with Open Source Operating systems despite Microsoft support for Suse Enterprise OS. Now that waiting is over since Microsoft and RedHat officially announce their compatibility for running their OS on HYPER-V. Info can be found over here

This agreement is very important for both giants in many ways and same goes for the customers. Let that to be discuss in another post. So go ahead and enjoy he benefit 🙂