A connection with the name you specified already exists

后端 未结 5 716
深忆病人
深忆病人 2021-01-31 20:42

I am setting up my previously working vagrant environment in Windows 10. I\'ve updated to the newest version of both VirtualBox (https://www.virtualbox.org/ticket/14040) and Vag

5条回答
  •  花落未央
    2021-01-31 21:11

    This problem appears on my Windows 7, using vagrant 1.9.6 and VirtualBox 5.1.22. The problem was that I previously removed some of the Host-Only adapters. A workaround for this problem was to change the IPv4 address of existing Host-Only adapter to match the VagrantFile configuration:

    • look for IP in Vagrantfile for config.vm.network:

      config.vm.network "private_network", ip: "192.168.42.10"

    • modify the IPv4 address of existing Host-only adapter to match the IP. Got to VirtualBox -> File -> Preferences -> Network -> Host-only Networks - > right click on VirtualBox Host-Only Ethernet Adapter (Edit Host-only Network). Change IPv4 address to:

      192.168.42.1

提交回复
热议问题