1、首先修改一下网络配置
修改虚拟机的连接方式为桥接
运行:leafpad /etc/network/interfaces
修改文件为:
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
#iface eth0 inet static
#address 192.168.1.200
#netmask 255.255.255.0
#gateway 192.168.1.1
waddress ether 00:50:56:23:6E:40(虚拟机的MAC地址,不同虚拟机不一样)