虚拟机windows显示网络电缆被拔出,重启ubuntu中vmware 服务即可!

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hejinjing_tom_com/article/details/88669782

早上开机,发现vmware 虚拟机中的window7 不能上网了!
右下角的网络连接图标有一个大大的红叉,
点开来看,网络连接上显示为网络电缆被拔出的提示, 同时也有一个大大的红叉号
打开cmd查看,没有IP地址,
到网上搜了一下,说是把NAT网络模式设置成桥接模式就可以了,试了一下,确实可以!

中午到公司,我又把网络改成了NAT 模式,也是可以上网的。
一直奇怪为什么早上忽然不能上网了呢? 一定是vmware 服务没有启动好。

晚上我再一次打开笔记本,启动虚拟机window7, 显示我没有正常关机,是否正常启动,
我点是,启动完后,又一次不能上网了!

好了,机会来了,正好修理它,重启服务就可以了,下面是我的操作记录

hjj@hjj-Inspiron:~$ sudo service vmware restart
Stopping VMware services:
   VMware Authentication Daemon                                        done
At least one instance of vmware-vmx is still running.
Please stop all running instances of vmware-vmx first.
 
要重启vmware 服务,需要先关闭vmware 虚拟机


hjj@hjj-Inspiron:~$ sudo service vmware restart
Stopping VMware services:
   VMware Authentication Daemon                                        done
   VM communication interface socket family                            done
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Blocking file system                                                done
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done

看到了吧? 关掉了5个服务,启动了7个服务,其中Virtual ethernet 就是虚拟网络
Share Memory Available 估计跟文件共享有关系,也很重要

再启动window7, 一切正常!

结论: 是未关虚拟机直接关ubuntu主机对vmware造成了一些不良影响,引起NAT 网络丢失.
解决办法: 重启vmware 服务即可!

猜你喜欢

转载自blog.csdn.net/hejinjing_tom_com/article/details/88669782
今日推荐