随笔一篇:
今天打开尘封已久的vmware
他报错:Before you can run VMware several modules must be compiled and loaded into the running kernel, 在弹出的窗口上点击install会黑屏注销 无效果

解决办法

git clone https://github.com/mkubecek/vmware-host-modules
cd vmware-host-modules
git checkout workstation-16.2.4 #这里16.2.4替换为自己的VM版本

然后执行

sudo make & sudo make install

我这里没有报错直接好了

make[1]: 进入目录“/home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only”
Using kernel build system.
make -C /lib/modules/5.15.0-56-generic/build/include/.. M=PWD SRCROOT=PWD/. \
  MODULEBUILDDIR= modules
make[2]: 进入目录“/usr/src/linux-headers-5.15.0-56-generic”
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/driver.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/hub.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/userif.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/netif.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/bridge.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/procfs.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/smac_compat.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/smac.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vnetEvent.o
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vnetUserListener.o
  LD [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vmnet.o
  MODPOST /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/Module.symvers
  CC [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vmnet.mod.o
  LD [M]  /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vmnet.ko
  BTF [M] /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vmnet.ko
Skipping BTF generation for /home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[2]: 离开目录“/usr/src/linux-headers-5.15.0-56-generic”
make -C PWD SRCROOT=PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: 进入目录“/home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only”
make[2]: “postbuild”已是最新。
make[2]: 离开目录“/home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only”
cp -f vmnet.ko ./../vmnet.o
make[1]: 离开目录“/home/xiaosheng/software/vmware-host-modules-player-16.2.4/vmnet-only”
install -D -t /lib/modules/5.15.0-56-generic/misc vmmon-only/vmmon.ko vmnet-only/vmnet.ko
strip --strip-debug /lib/modules/5.15.0-56-generic/misc/vmmon.ko /lib/modules/5.15.0-56-generic/misc/vmnet.ko
if test -z ""; then /sbin/depmod -a 5.15.0-56-generic; fi
 xiaosheng@xiaosheng-linux  ~/software/vmware-host-modules-player-16.2.4  /etc/init.d/vmware start

如果报错的话可以
参考一下这篇网站

然后这个问题解决了,再打开虚拟机的时候报错
Please make sure that the kernel module `vmmon’ is loaded.

解决办法

在启动VMware前运行/etc/init.d/vmware start来启动服务
这里参考的这篇文章

虚拟机中centos无法联网

ping的时候 network is unreachable

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33
分类: 随笔

站点统计

  • 文章总数:309 篇
  • 分类总数:19 个
  • 标签总数:191 个
  • 运行天数:1009 天
  • 访问总数:129529 人次

浙公网安备33011302000604

辽ICP备20003309号