先日、VMware Workstationの仮想マシンにHyper-V環境を構築しました。
今回はそのHyper-V環境にCentOS 8をインストールしてLinux Integration Services(LIS)を調べてみました。
Hyper-V 統合サービス
https://docs.microsoft.com/ja-jp/virtualization/hyper-v-on-windows/reference/integration-services
CentOS をサポートし、HYPER-V 上の Red Hat Enterprise Linux 仮想マシン
https://docs.microsoft.com/ja-jp/windows-server/virtualization/hyper-v/supported-centos-and-red-hat-enterprise-linux-virtual-machines-on-hyper-v
環境
・VMware Workstation 15 Pro Version 15.5.6 build-16341506
・VM: Windows Server 2019 Standard(Evaluations) Version 1809(17763.475) + Hyper-V
・Hyper-V VM: CentOS Linux release 8.2.2004 (Core)
Hyper-VにCentOS 8をインストールするとディストリビューション組み込みのLISサポートが自動的に導入されます。
- ディストリビューション組み込みのLIS
- Hyper-Vドライバ情報
- Microsoft LISのインストール
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@localhost ~]# dnf search hyper-V =========================== Summary Matched: hyper-V =========================== hyperv-daemons-license.noarch : License of the Hyper-V daemons suite hyperv-daemons.x86_64 : Hyper-V daemons suite hyperv-tools.noarch : Tools for Hyper-V guests hypervfcopyd.x86_64 : Hyper-V FCOPY daemon hypervkvpd.x86_64 : Hyper-V key value pair (KVP) daemon hypervvssd.x86_64 : Hyper-V VSS daemon [root@localhost ~]# rpm -qa | grep hyper hyperv-daemons-0-0.28.20180415git.el8.x86_64 hyperv-daemons-license-0-0.28.20180415git.el8.noarch hypervfcopyd-0-0.28.20180415git.el8.x86_64 hypervkvpd-0-0.28.20180415git.el8.x86_64 hypervvssd-0-0.28.20180415git.el8.x86_64 |
hyperv-toolsだけインストールされていないです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
[root@localhost ~]# dnf info hyperv-daemons-license Installed Packages Name : hyperv-daemons-license Version : 0 Release : 0.28.20180415git.el8 Architecture : noarch Size : 18 k Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : @System From repo : AppStream Summary : License of the Hyper-V daemons suite URL : http://www.kernel.org License : GPLv2 Description : Contains license of the Hyper-V daemons suite. [root@localhost ~]# dnf info hyperv-daemons Installed Packages Name : hyperv-daemons Version : 0 Release : 0.28.20180415git.el8 Architecture : x86_64 Size : 0.0 Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : @System From repo : AppStream Summary : Hyper-V daemons suite URL : http://www.kernel.org License : GPLv2 Description : Suite of daemons that are needed when Linux guest : is running on Windows Host with Hyper-V. [root@localhost ~]# dnf info hyperv-tools Available Packages Name : hyperv-tools Version : 0 Release : 0.28.20180415git.el8 Architecture : noarch Size : 14 k Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : AppStream Summary : Tools for Hyper-V guests URL : http://www.kernel.org License : GPLv2 Description : Contains tools and scripts useful for Hyper-V guests. [root@localhost ~]# dnf info hypervfcopyd Installed Packages Name : hypervfcopyd Version : 0 Release : 0.28.20180415git.el8 Architecture : x86_64 Size : 13 k Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : @System From repo : AppStream Summary : Hyper-V FCOPY daemon URL : http://www.kernel.org License : GPLv2 Description : Hypervfcopyd is an implementation of file copy service functionality : for Linux Guest running on Hyper-V. The daemon enables host to copy : a file (over VMBUS) into the Linux Guest. The daemon first registers : with the kernel driver. After this is done it waits for instructions : from Windows Host. [root@localhost ~]# dnf info hypervkvpd Installed Packages Name : hypervkvpd Version : 0 Release : 0.28.20180415git.el8 Architecture : x86_64 Size : 32 k Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : @System From repo : AppStream Summary : Hyper-V key value pair (KVP) daemon URL : http://www.kernel.org License : GPLv2 Description : Hypervkvpd is an implementation of Hyper-V key value pair (KVP) : functionality for Linux. The daemon first registers with the : kernel driver. After this is done it collects information : requested by Windows Host about the Linux Guest. It also supports : IP injection functionality on the Guest. [root@localhost ~]# dnf info hypervvssd Installed Packages Name : hypervvssd Version : 0 Release : 0.28.20180415git.el8 Architecture : x86_64 Size : 13 k Source : hyperv-daemons-0-0.28.20180415git.el8.src.rpm Repository : @System From repo : AppStream Summary : Hyper-V VSS daemon URL : http://www.kernel.org License : GPLv2 Description : Hypervvssd is an implementation of Hyper-V VSS functionality : for Linux. The daemon is used for host initiated guest snapshot : on Hyper-V hypervisor. The daemon first registers with the : kernel driver. After this is done it waits for instructions : from Windows Host if to "freeze" or "thaw" the filesystem : on the Linux Guest. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[root@localhost ~]# lsmod | grep hv hv_sock 16384 0 vsock 40960 1 hv_sock hv_balloon 28672 0 hv_utils 36864 2 hv_storvsc 20480 3 scsi_transport_fc 69632 1 hv_storvsc hv_netvsc 86016 0 hv_vmbus 114688 8 hv_balloon,hv_utils,hv_netvsc,hid_hyperv,hv_storvsc,hyperv_keyboard hv_sock,hyperv_fb [root@localhost ~]# modinfo hv_vmbus filename: /lib/modules/4.18.0-193.14.2.el8_2.x86_64/kernel/drivers/hv/hv_vmbus.ko.xz description: Microsoft Hyper-V VMBus Driver license: GPL rhelversion: 8.2 srcversion: E95B6C9307316BF4E9200BE alias: acpi*:VMBus:* alias: acpi*:VMBUS:* depends: intree: Y name: hv_vmbus vermagic: 4.18.0-193.14.2.el8_2.x86_64 SMP mod_unload modversions sig_id: PKCS#7 signer: CentOS Linux kernel signing key sig_key: 4B:D0:A9:10:8D:FE:73:3E:92:80:DF:8E:CF:B1:3F:46:D3:64:29:C5 sig_hashalgo: sha256 signature: 69:E1:67:78:5E:70:EA:FB:A6:23:C5:CC:D3:FE:C8:F8:AF:7A:53:48: 90:7F:D7:DB:98:5F:75:B3:86:59:F4:F8:90:22:8F:2F:C7:01:C9:F7: (snip) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[root@localhost ~]# modinfo hv_netvsc filename: /lib/modules/4.18.0-193.14.2.el8_2.x86_64/kernel/drivers/net/hyperv/hv_netvsc.ko.xz description: Microsoft Hyper-V network driver license: GPL rhelversion: 8.2 srcversion: 84B64057847A976B3CDF800 alias: vmbus:635161f83edfc546913ff2d2f965ed0e depends: hv_vmbus intree: Y name: hv_netvsc vermagic: 4.18.0-193.14.2.el8_2.x86_64 SMP mod_unload modversions sig_id: PKCS#7 signer: CentOS Linux kernel signing key sig_key: 4B:D0:A9:10:8D:FE:73:3E:92:80:DF:8E:CF:B1:3F:46:D3:64:29:C5 sig_hashalgo: sha256 signature: 01:93:5F:7B:A9:01:65:2D:D0:E4:30:A3:C6:FF:95:BD:87:74:37:8C: 31:08:AE:4E:C8:42:50:DE:A9:8D:83:BD:79:A7:DE:82:54:2B:8D:EF: (snip) |
最新はv4.3でした。
Linux Integration Services v4.3 for Hyper-V and Azure
https://www.microsoft.com/en-us/download/details.aspx?id=55106
lis-rpms-4.3.5.x86_64.tar.gzをダウンロードしてCentOS 8で解凍します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@localhost ~]# tar xvfz lis-rpms-4.3.5.x86_64.tar.gz LISISO/ LISISO/RPMS510/ LISISO/RPMS510/LICENSE_GPL LISISO/RPMS510/install.sh LISISO/RPMS510/lis-510/ LISISO/RPMS510/lis-510/x86/ LISISO/RPMS510/lis-510/x86/.gitnore LISISO/RPMS510/lis-510/x86_64/ LISISO/RPMS510/lis-510/x86_64/.gitnore LISISO/RPMS510/lis-510/x86_64/kmod-microsoft-hyper-v-4.3.5-20200304.x86_64.rpm LISISO/RPMS510/lis-510/x86_64/microsoft-hyper-v-4.3.5-20200304.x86_64.rpm LISISO/RPMS510/lis-510/x86_64/microsoft-hyper-v-debuginfo-4.3.5-20200304.x86_64.rpm LISISO/RPMS510/upgrade.sh LISISO/RPMS510/microsoft-hyper-v-4.3.5-20200304.src.rpm LISISO/RPMS511/ (snip) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
[root@localhost ~]# ls -l LISISO/ total 52 drwxr-xr-x. 3 root root 124 Mar 4 15:07 RPMS510 drwxr-xr-x. 3 root root 150 Mar 4 15:07 RPMS511 drwxr-xr-x. 3 root root 124 Mar 4 15:07 RPMS511_UPDATE drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS52 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS53 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS54 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS55 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS56 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS57 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS58 drwxr-xr-x. 3 root root 123 Mar 4 15:07 RPMS59 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS60 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS61 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS610 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS62 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS63 drwxr-xr-x. 3 root root 4096 Mar 4 15:07 RPMS64 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS65 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS66 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS67 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS68 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS69 drwxr-xr-x. 3 root root 4096 Mar 4 15:07 RPMS70 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS71 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS72 drwxr-xr-x. 4 root root 4096 Mar 4 15:07 RPMS73 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS74 drwxr-xr-x. 3 root root 4096 Mar 4 15:07 RPMS75 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS76 drwxr-xr-x. 2 root root 258 Mar 4 15:07 RPMS77 -rwxr-xr-x. 1 root root 12870 Mar 4 15:07 commonfunctions.sh -rwxr-xr-x. 1 root root 2834 Mar 4 15:07 install.sh -rw-r--r--. 1 root root 223 Mar 4 15:07 latestsupportedkernel -rw-r--r--. 1 root root 2149 Mar 4 15:07 lis_compatibility_check.sh -rwxr-xr-x. 1 root root 730 Mar 4 15:07 uninstall.sh -rwxr-xr-x. 1 root root 2430 Mar 4 15:07 upgrade.sh |
インストールしてみましたが対応していませんでした。
1 2 3 4 |
[root@localhost ~]# cd LISISO/ [root@localhost LISISO]# ./install.sh Error: Unknown kernel version: '4.18.0' Unsupported kernel version |
CentOS 8には未対応でした(^^;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
[root@localhost LISISO]# cat install.sh #!/bin/bash ##################################################################### # # Install LIS 4.0 by performing the following tasks # - Verfiy we are running on a RHEL or CentOS distribution. # Note: for the preview release only CentOS is supported. # - Determine the version of the distribution we are running on. # - cd to the apporpriate subdirectory for the version. # - Remove the Hyper-V daemons if they are installed. # - Invoke the version specific install.sh script. # # Kernel version # 7.6 3.10.0-957 # 7.5 3.10.0-862 # 7.4 3.10.0-693 # 7.3 3.10.0-514 # 7.2 3.10.0-327 # 7.1 3.10.0-229 # 7.0 3.10.0-123 # 6.10 2.6.32-754 # 6.9 2.6.32-696 # 6.8 2.6.32-642 # 6.7 2.6.32-573 # 6.6 2.6.32-504 # 6.5 2.6.32-431 # 6.4 2.6.32-358 # 6.3 2.6.32-279 # 6.2 2.6.32-220 # 6.1 2.6.32-131.0.15 # 6.0 2.6.32-71 # 5.11 2.6.18-398 # 5.11.1 2.6.18-408 # 5.10 2.6.18-371 # 5.9 2.6.18-348 # 5.8 2.6.18-308 # 5.7 2.6.18-274 # 5.6 2.6.18-238 # 5.5 2.6.18-194 # 5.4 2.6.18-164 # 5.3 2.6.18-128 # 5.2 2.6.18-92 # # Other releases are not supported. # ##################################################################### (snip) |