[problem help] 上周更新的内测版本导致Vmware虚拟机出现虚拟网卡消失问题
Tofloor
poster avatar
pkcn
deepin
2024-03-25 14:53
Author

上周更新内测版本后,内核更新到了6.6,更新完重启发现虚拟网卡都不见了,而且也无法创建虚拟网卡,重装 Vmware 也不得

image.png

image.png

Reply Favorite View the author
All Replies
babyfengfjx
Super Moderator
CQA
2024-03-25 15:00
#1

可能是虚拟机在新版本内核中还不完全兼容,可以尝试切换到低版本内核看看。

Reply View the author
Jokul
deepin
2024-03-25 15:02
#2

https://blog.csdn.net/u010629326/article/details/50621192/

1.终端输入:vmware-netcfg ,来调用 vmware-netcfg来初始化vmware网络模块

这时还会提示:Network configuration is missing. Ensure that /etc/vmware/networking exists.

2.在终端输入:

sudo touch /etc/vmware/x ; sudo vmware-networks --migrate-network-settings /etc/vmware/x ; sudo rm /etc/vmware/x

这条命令是人工重建vmare-networks模块

3.再次输入:vmware-netcfg,看看成功调用了vmware网络模块了。

试一下上面的方式

Reply View the author
pkcn
deepin
2024-03-25 15:10
#3
Jokul

https://blog.csdn.net/u010629326/article/details/50621192/

1.终端输入:vmware-netcfg ,来调用 vmware-netcfg来初始化vmware网络模块

这时还会提示:Network configuration is missing. Ensure that /etc/vmware/networking exists.

2.在终端输入:

sudo touch /etc/vmware/x ; sudo vmware-networks --migrate-network-settings /etc/vmware/x ; sudo rm /etc/vmware/x

这条命令是人工重建vmare-networks模块

3.再次输入:vmware-netcfg,看看成功调用了vmware网络模块了。

试一下上面的方式

还是不得

Reply View the author
pkcn
deepin
2024-03-25 16:19
#4

内核的锅😂 ,我把内核版本切回 6.1.23 后,还要重装 VMware 到最新版本才得

Reply View the author
小支柱
deepin
2024-05-07 15:37
#5

挂上代理,运行一下这个脚本吧!非常方便。

保存下面代码到vm.sh文件。然后sudo chmod +x vm.sh && sudo ./vm.sh

#!/bin/bash
sudo /etc/init.d/vmware stop
sudo modprobe -r vmnet
sudo modprobe -r vmmon
sudo apt install git -y
vm_version=$(vmware-installer -l |tee |sed -n 3p |awk '{print $2}' |awk -F'.' '{print $1"."$2"."$3}')
VMWARE_VERSION=workstation-${vm_version}
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Reply View the author