虚拟机中运行Ubuntu18+使用交接连接网络
需要手动添加dns服务器才能解析网址:
修改/etc/netplan/00-installer-config.yaml
内容如下,注意enp0s3需要修改
# This is the network config written by 'subiquity'
network:
ethernets:
enp0s3:
addresses: []
dhcp4: true
gateway4: 192.168.0.1
nameservers:
addresses: [223.5.5.5, 223.6.6.6]
version: 2
重启网络sudo netplan apply