現: 2020-10-14 (水) 22:01:54 takatsuka[3] [4] | |||
---|---|---|---|
Line 1: | Line 1: | ||
+ | CentOS7 に VMwarePlayer12 をインストールする方法です。 | ||
+ | どちらも旧バージョンなのでいまさら感がありますが、野暮い用事のために試したところ、ちょっと躓いたので備忘録として残しておきます。 | ||
+ | CentOS7 x86_64 (kernel 3.10.0) + VMware-Player-12.5.2 で確認しています。 | ||
+ | #contents | ||
+ | |||
+ | * 手順 [#z684fde9] | ||
+ | + CentOS7 の環境を用意 | ||
+ | -- 開発ツール(gccなど)もインストールされてる必要があると思いますので適宜用意。 | ||
+ | + VMware-Player-12.5.2-4638234.x86_64.bundle を実行 | ||
+ | → 特に問題なく完了するハズ。 | ||
+ | + VMwarePlayer を起動すると、VMware Kernel Module Updater でエラー「Unable to start services.」 | ||
+ | + ログファイルを確認。以下のような感じで終わってるハズ。 | ||
+ | ・ | ||
+ | ・ | ||
+ | 2020-00-00T00:00:00.000+09: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+09: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 を起動。 | ||
+ | → VMware Kernel Module Updater も完了し、正しく起動できるハズ | ||
+ | |||
+ | * ひとこと [#m3dc82d0] | ||
+ | 同じように躓いた方も多いようで、ググると複数の情報がヒットします。 | ||
+ | 本稿はそれらを参考に試した結果を自分なりにシンプルにまとめてみたものです。 | ||
+ | 情報を公開されておられてる方々には大変感謝です。 |
(This host) = https://thinkridge.com