运行 vagrant up 前先编辑 Vagrantfile,开启 config.vm.network "public_network"
创建一个公共网络,它通常与桥接网络相匹配。
桥接网络使机器显示为网络上的另一个物理设备。
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network "public_network"
添加证书方便使用 Xshell 登陆
root@bullseye:~# df -h
Filesystem Size Used Avail Use% Mounted on