使用host-only时主机与虚拟机之间无法通信
查看虚拟机的网卡配置,如果网卡正常却没有ip,则在/etc/network/interfaces里为网卡设置自动获取dhcp。sudo vi /etc/network/interfaces + # The primary network interface + auto enp0s8 + iface enp0s8 inet dhcp
使用host-only时主机与虚拟机之间无法通信
查看虚拟机的网卡配置,如果网卡正常却没有ip,则在/etc/network/interfaces里为网卡设置自动获取dhcp。
sudo vi /etc/network/interfaces
+ # The primary network interface
+ auto enp0s8
+ iface enp0s8 inet dhcp