How to install and enable the Hyper-V integration service in the Linux release

Source: Internet
Author: User

How to install and enable the Hyper-V integration service in the Linux release

Microsoft developers have designed multiple components to improve the performance of virtual machine systems running on Hyper-V servers. These components are included in the integration service.

Although the Hyper-V server itself is quite intelligent, it is sufficient to install and enable the integration service on a Windows virtual machine, however, for virtual machines running Linux releases, we still need to manually install and enable the integration service. In today's article, we will learn how to install and enable the integration service on a virtual machine running the Linux release.

Linux integration service, sometimes abbreviated as LIS, provides two major component types: drivers and services. Drivers play an important role in improving the performance of Linux virtual machines, while services are designed to execute special jobs.

For example, the VMBUS driver acts as a communication channel to Improve the Performance of communication between different virtual machine systems. The "Time Sync" (Time Sync) service helps to synchronize the Time in the Hyper-V host.

After the Linux integration service is deployed, the virtual machine system running the Linux release version can use such as real-time migration, giant frames, VLAN tags and clusters, and Symmetric Multi-processing (SMP) supports static ip injection, VHDX adjustment, virtual Fiber Channel, and real-time Virtual Machine backup.

At present, Microsoft has run users to run multiple Linux distributions on Hyper-V servers as virtual machine systems. Specifically, Microsoft provides the corresponding integrated service components for the following Linux releases:

• Red Hat Enterprise Linux (RHEL for short) 5.5-5.8, 6.0-6.3 x86 and x64 versions

• CentOS 5.5-5.8, 6.0-6.3 x86 and x64 versions

• SUSE Linux Enterprise Server 11 SP2 or SP Version 3

• Open SUSE 12.1

• Ubuntu 12.04, 12.10, 13.04, and 13.10

• Oracle Linux 6.4

Before we begin to explain how to install and enable the Linux integration service, pay attention to the following points:

1. The installation and activation of LIS have many requirements for the Linux release.

2. Some Linux distributions have their own LIS installed. For these releases, you only need to enable them to make full use of their features in Hyper-V.

Enable the integration service in the Linux release that has the LIS driver and service installed.

Follow these steps to enable the LIS driver and service in the Linux release. In the following example, we chose Ubuntu 12.04.

1. The first step is to use the following command to edit the "modules" file in the/etc/initramfs-tools Folder:

 
 
  1. sudo vi /etc/initramfs-tools/modules 

2. In the vi Editor, locate the last line of the file and use the I) Insert command to add the following command line:

 
 
  1. hv_vmbus  
  2. hv_storvsc  
  3. hv_blkvsc  
  4. hv_netvsc 

3. Press Esc and run the ": x" command to save the file.

4. Run the following command to reinitialize the "modules" file:

 
 
  1. sudo update-initramfs –u 

5. Finally, run the following command in Shell to restart the Virtual Machine System:

 
 
  1. sudo shutdown -r now 

6. After the customer's virtual machine restarts, the LIS driver and service will be registered in the system. After restarting, you can run the following command to check whether the LIS driver and service have been installed:

Lsmod

With this command, we can see that the LIS driver and service are included in the list. You need to find hid_hyperv, hv_netvsc, hv_utils, hv_storvc, and hv_vmbus In the list. If they are in LIS, they can be correctly enabled.

Install the Integrated Service for Linux distributions that do not have the LIS driver and service installed in advance

In the following cases, you may find that you need to install the Linux integration service for the Linux release:

1. the Linux release version is not pre-integrated with LIS.

2. The LIS contained in the Linux release is not the latest version on the Microsoft official website. The current LIS version is 3.5.

Since Linux can only use RPM files for installation, the lis iso image file provides the necessary RPM files to install or update existing LIS components.

The first step of the LIS installation process is to use the Hyper-V manager to import lis iso to the virtual machine system, and then execute a series of commands to complete the installation. The specific steps are as follows:

1. Point the LinuxICv35.ISO file to the Linux Virtual Machine System.

2. Run the following command to start the ISO file:

 
 
  1. # mount /dev/cdrom /media 

3. Log On with the root permission and change the relevant directory. The specific path varies with the release type:

ForRHEL/CentOS 5.5: # cd/media/CDROM/RHEL55

ForRHEL/CentOS 5.6: # cd/media/CDROM/RHEL56

ForRHEL/CentOS 5.7: # cd/media/CDROM/RHEL57

ForRHEL/CentOS 5.8: # cd/media/CDROM/RHEL58

ForRHEL/CentOS 6.0, 6.1, 6.2: # cd/media/CDROM/RHEL6012

ForRHEL/CentOS 6.3: # cd/media/CDROM/RHEL63

4. Run the script provided by lis iso to install LIS:

ForRHEL/CentOS 5.5: #./install_rhel55.sh

ForRHEL/CentOS 5.6: #./install_rhel56.sh

ForRHEL/CentOS 5.7: #./install_rhel57.sh

ForRHEL/CentOS 5.8: #./install_rhel58.sh

ForRHEL/CentOS 6.0, 6.1, 6.2: #./install. sh

ForRHEL/CentOS 6.3: #./install. sh

5. Finally, you need to restart the Linux virtual machine so that the LIS component will complete initialization and register successfully.

After restarting, run the "lsmod" or "Modinfo" command to check the current status of the LIS driver and service.

Update LIS

Microsoft provides the upgrade script necessary to update the LIS driver in the Linux release. You can load the ISO file according to the preceding steps, adjust the directory according to the Linux release, and then execute the "Upgrade. sh" script.

After installing the LIS driver and service, we need to restart the virtual machine system so that the LIS driver and service will be registered in the Linux kernel.

Not Supported

Up to now, the following features are not supported by the Linux integration service:

• Support for hot addition of dynamic memory

• Trim Function Support

• TCP reduction

• VRSS

Http://www.serverwatch.com/server-tutorials/installing-and-activating-hyper-v-linux-integration-services.html.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.