设备:windows11 + VMwareWorkstationPro 17 + CentOS-7-x86_64-DVD-2009.iso
报错信息:
Job for network.service failed because the control process exited with error code.
以及
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
解决方法:
a.
执行如下命令:
stop NetworkManager
systemctl disable NetworkManager
然后:重启网卡:
systemctl restart network
b.
- 虚拟机的网络适配器是否连接成功(无法将 Ethernet0连接到虚拟网络 VMnet8),可以将虚拟机的网络配置设置成nat模式(非自定义vmnet8);
- 去虚拟网路编辑器里面还原VMnet1、VMnet8网络配置;
- 再去看虚拟机网络,正常应该有ip了,可以ping通www.baidu.com了。不行的话systemctl restart network
到这里问题解决。