1: 2020-10-14 (水) 22:00:06 takatsuka[3] [4] | |||
---|---|---|---|
Line 1: | Line 1: | ||
+ | CentOS7 に VMwarePlayer12 をインストールする方法です。 | ||
+ | どちらも旧バージョンなのでいまさら感がありますが、野暮い用事で必要になったので備忘録として残しておきます。 | ||
+ | CentOS7 x86_64 (kernel3.10.0) + VMware-Player-12.5.2 です。 | ||
+ | |||
+ | * 手順 [#z684fde9] | ||
+ | + CentOS7 の環境を用意 | ||
+ | + GUI で VMware-Player-12.5.2-4638234.x86_64.bundle を実行 → 特に問題なくインストール完了 | ||
+ | + VMwarePlayer を起動すると、VMware Kernel Module Updater でエラー「Unable to start services.」 | ||
+ | + ログを確認。以下のような感じで終わってるハズ。 | ||
+ | 2020-00-00T00:00:00.000+00:00| vthread-4| I125: Building module with command "/usr/bin/make -j2 -C /tmp/modconfig-b6MdgY/vmnet-only auto-build HEADER_DIR=/lib/modules/3.10.0-1127.19.1.el7.x86_64/build/include CC=/usr/bin/gcc IS_GCC_3=no" | ||
+ | 2020-00-00T00:00:00.000+00:00| vthread-4| W115: Failed to build vmnet. Failed to execute the build command. | ||
+ | + /usr/lib/vmware/modules/source/vmnet.tar 内の compat_netdevice.h を書き換える | ||
+ | ++ vmnet.tar をカレントに展開 | ||
+ | > tar -xf /usr/lib/vmware/modules/source/vmnet.tar | ||
+ | ++ 展開した compat_netdevice.h の最後のほうを以下のように書き換える。 | ||
+ | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) | ||
+ | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \ | ||
+ | + (defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= 0x0704) | ||
+ | ++ vmnet.tar を書き換える | ||
+ | > tar -cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only | ||
+ | + 気を取り直して VMwarePlayer を起動。→ 起動できるハズ |
(This host) = https://thinkridge.com