在Ubuntu系统上,当VirtualBox更新后,使用
vagrant up
命令时出现以下错误:There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "ipconfig", "vboxnet2", "--ip", "10.160.0.1", "--netmask", "255.255.255.0"]
Stderr: VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp
使用的版本:
- Vagrant 2.2.14
- virtualbox-6.1 6.1.28-147628~Ubuntu~eoan
- Ubuntu 20.04.3 LTS