1. 下载安装包VMware-Workstation-Full-15.1.0-13591040.x86_64.bundle
# ./VMware-Workstation-Full-15.1.0-13591040.x86_64.bundle
2. 启动
启动是可能会失败, 提示需要先编译一些模块, 但编译失败。查看错误日志:
2019-06-05T09:09:29.246+08:00| host-28335| I125: Building module with command "/bin/make -j8 -C /tmp/modconfig-zOx1kN/vmnet-only auto-build HEADER_DIR=/lib/modules/3.10.0-862.3.3.el7.x86_64/build/include CC=/usr/local/bin/gcc IS_GCC_3=no"
2019-06-05T09:09:29.517+08:00| host-28335| W115: Failed to build vmnet. Failed to execute the build command.
手动执行 /bin/make -j8 -C /tmp/modconfig-zOx1kN/vmnet-only auto-build HEADER_DIR=/lib/modules/3.10.0-862.3.3.el7.x86_64/build/include CC=/usr/local/bin/gcc IS_GCC_3=no
提示:
/bin/make -C /lib/modules/3.10.0-862.3.3.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.10.0-862.3.3.el7.x86_64”
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.。 停止。
make[1]: 离开目录“/usr/src/kernels/3.10.0-862.3.3.el7.x86_64”
make: *** [vmnet.ko] 错误 2
make: 离开目录“/tmp/modconfig-zOx1kN/vmnet-only”
修改Makefile, 第166行,
ifdef CONFIG_RETPOLINE
RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register)
ifneq ($(RETPOLINE_CFLAGS),)
#KBUILD_CFLAGS += $(RETPOLINE_CFLAGS) -DRETPOLINE
else
#$(error CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.)
endif
endif
注释掉KBUILD_CFLAGS += $(RETPOLINE_CFLAGS) -DRETPOLINE 和 $(error CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.)
模块编译成功。
我这里的环境, 启动没看到图形界面, 查看/var/log/message
Jun 5 09:45:15 localhost gnome-control-center.desktop: gnome-control-center: /usr/lib64/samba/libreplace-samba4.so: version `SAMBA_4.2.3' not found (required by /lib64/libwbclient.so.0)
Jun 5 09:45:15 localhost gnome-control-center.desktop: gnome-control-center: /usr/lib64/samba/libwinbind-client-samba4.so: version `SAMBA_4.2.3' not found (required by /lib64/libwbclient.so.0)
Jun 5 09:46:14 localhost dbus-daemon: dbus[995]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
安装 samba-client-libs
yum install -y samba-client-libs --skip-broken
版权声明:本文为Thinkcortex原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。