Error message
==> default:clearing Any previously set network interfaces ...
There is an error while executing ' vboxmanage ', a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["Hostonlyif", "create"]
stderr:0% ...
Progress State:e_fail
VBoxManage.exe:error:Failed to create the host-only adapter
VBoxManage.exe:error:Code E_fail (0x80004005)-Unspecified error (extended info not available)
VBoxManage.exe:error:Context: "Enum rtexitcode __cdecl handlecreate (struct Handlerarg *)" at line of file Vboxmanageh Ostonly.cpp
Cause of Error:
In Windows10, the network policy changes, VirtualBox does not have the corresponding permission
Solution:
① Open the Orcle VM VirtualBox graphical interface. Manage--Global settings--network-to-host (host-only) networks, modify the IPV4 address to 192.168.33.100. Save exit
② Change the Windows network configuration, modify the VirtualBox host-only Ethernet adapter Manually set the IP address to 192.168.33.100.
③ Modify the Vagrant configuration file Vagrantfile, modify the corresponding network settings in Private-network to: Config.vm.network "private_network", IP: "192.168.33.100", Name: "VirtualBox host-only Ethernet Adapter" is a configuration that uses an existing network configuration and does not automatically create the corresponding NIC information.
Start again to enter the virtual machine ~ ~ ~
WINDOWS10 environment Vagrant+virtualbox Virtual machines cannot create a private network solution.