vagrant up 启动报错 Stderr: VBoxManage.exe: error: A NAT rule of this name already exists

报错:

使用vagrant up 启动VirtualBox虚拟机时报错:

Stderr: VBoxManage.exe: error: A NAT rule of this name already exists
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component NATEngineWrap, interface INATEngine, callee IUnknown
VBoxManage.exe: error: Context: "AddRedirect(Bstr(strName).raw(), proto, Bstr(strHostIp).raw(), RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(), RTStrToUInt16(strGuestPort))" at line 2102 of file VBoxManageModifyVM.cpp

 

原因:

根据错误信息可以看到是网络冲突了

 

解决:

将虚拟机的混杂模式修改为拒绝

打开VirtualBox虚拟机

设置-》网络-》网卡-》高级-》混杂模式-》设置为拒绝

 

posted on 2024-03-13 12:48  欢跳的心  阅读(64)  评论(0编辑  收藏  举报