虚拟机NAT网关:192.168.50.1
主机VM8网址:192.168.50.2
虚拟机网卡:192.168.50.30
vim /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
#eth0
auto eth0
iface eth0 inet static
address 192.168.50.30
netmask 255.255.255.0
network 192.168.50.0
gateway 192.168.50.1
vim /etc/resolv.conf
search localdomain
nameserver 192.168.50.1
service networking restart
OK