WINDOWS10 environment Vagrant+virtualbox Virtual machines cannot create a private network solution.

Source: Internet
Author: User
Tags vm virtualbox

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.