- 虚拟机版本:VM pro 14
- 宿主机:Deepin 15.7
- 网络无论在什么模式下都无法访问或者直接出现以下错误:
Could not connect 'Ethernet0' to virtual network '/dev/vmnet8'. More information can be found in the vmware.log file.
解决方法(或暂时性或永久性)
- 使用
sudo vmware-networks --start
查看是否能够启动网络Started Bridge networking on vmnet0 Enabled hostonly virtual adapter on vmnet1 Started DHCP service on vmnet1 Started NAT service on vmnet8 Enabled hostonly virtual adapter on vmnet8 Failed to start DHCP service on vmnet8 Failed to start some/all services
-
vmnet8
出了点问题,emmm直接把它删了再添加新的NAT模式的vmnet8
,懒癌晚期了
然后加载vmware的虚拟网卡模块:
sudo modprobe vmnet
再查看是否能够正常启动网络:
sudo vmware-networks --start
Started Bridge networking on vmnet0
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks
- 这样就好了……
然后进入虚拟机……不到一分钟又坏了,检查了一下,网关错误:
subnet IP: 172.16.175.0
subnet mask :255.255.255.0
Gateway IP: 192.168.2.1
将 Gateway IP: 192.168.2.1
改为:Gateway IP: 172.16.175.2
- 然后就彻底可以了