我没有按照他设置网络配置。
1)查看ip状况:
[root@localhost ~]# ifconfig
2)发现没有开启网卡,编辑:
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
1 DEVICE="eth0" 2 BOOTPROTO="dhcp" 3 HWADDR="00:0C:29:9B:9D:2E" 4 NM_CONTROLLED="yes" 5 ONBOOT="no" 改为: ONTOOT="yes" 6 TYPE="Ethernet" 7 UUID="25c74a58-2805-4e10-955d-6f9ab81c0047"
重启:
[root@localhost ~]# service network restart #重启网络服务
3)选择虚拟机的连接方式: