输入“vagrant up”时获取以下日志转储。已经尝试过在 VirtualBox 上没有任何混乱,也尝试过手动添加端口转发规则(主机 IP 127.0.0.1,主机端口 2222,来宾端口 22)。
"Bringing machine 'polecat' up with 'virtualbox' provider...
[polecat] Setting the name of the VM...
[polecat] Clearing any previously set forwarded ports...
[polecat] Creating shared folders metadata...
[polecat] Clearing any previously set network interfaces...
[polecat] Preparing network interfaces based on configuration...
[polecat] Forwarding ports...
[polecat] -- 22 => 2222 (adapter 1)
The adapter to attach a forwarded port to was not found. Please
verify that the given adapter is setup on the machine as a NAT
interface.
Host port: 2222
Guest port: 22
Adapter: 1"
谁能解释一下我到底该怎么做才能解决这个问题?遗憾的是,谷歌搜索并没有被证明是有用的,我项目中的其他用户似乎只是自动完成了这项工作!
谢谢你的帮助!