Azure上虛擬化技術都是采用的Hyper-v,每台Linux虛擬機都安裝了LIS(Linux Integration Service)。LIS的功能是為VM提供各種虛擬設備的驅動。所以LIS直接影響到VM和底層硬件運行的性能。
在客戶有VM各種高性能的處理需求的時候,LIS保證最新版本是非常重要的。本文將介紹如何在CentOS上正確的安裝LIS。
1 安裝LIS
在以下網站查看最新版的LIS:
在以下鏈接下載最新版的LIS:
https://www.microsoft.com/en-us/search/result.aspx?q=Linux+Integration+Services+Version&form=dlc
目前最新的LIS是4.1.2。
安裝前的版本:
[root@hwdsr01 ~]# modinfo hv_vmbus filename: /lib/modules/2.6.32-431.29.2.el6.x86_64/kernel/drivers/hv/hv_vmbus.ko version: 3.1 license: GPL srcversion: 3E7D7FE31577CC7E47EA89E alias: acpi*:VMBus:* alias: acpi*:VMBUS:* depends: vermagic: 2.6.32-431.29.2.el6.x86_64 SMP mod_unload modversions
下載后安裝:
tar vxf lis-rpms-4.1.2-1.tar.gz cd LISISO/
[root@hwdsr01 LISISO]# ./install.sh Removing Hyper-V daemons Invoking release specific install file in directory CentOS65 Installing the Linux Integration Services for Microsoft Hyper-V... Preparing... ########################################### [100%] 1:kmod-microsoft-hyper-v ########################################### [100%] Preparing... ########################################### [100%] 1:microsoft-hyper-v-debug########################################### [ 50%] 2:microsoft-hyper-v ########################################### [100%] Saving old initramfs Installing new initramfs Adding KVP Daemon to Chkconfig.... Starting KVP Daemon.... Adding VSS Daemon to Chkconfig.... Starting VSS Daemon.... Adding FCOPY Daemon to Chkconfig.... Starting FCOPY Daemon.... Linux Integration Services for Hyper-V has been installed. Please reboot your system.
重啟后查看:
[root@hwdsr01 LISISO]# modinfo hv_vmbus filename: /lib/modules/2.6.32-431.29.2.el6.x86_64/weak-updates/microsoft-hyper-v/hv_vmbus.ko version: 4.1.2 license: GPL srcversion: 82B9AE7A2B6BFE26B1AC6A4 alias: acpi*:VMBus:* alias: acpi*:VMBUS:* depends: vermagic: 2.6.32-431.el6.x86_64 SMP mod_unload modversions
已經是最新的版本了。