machine icon indicating copy to clipboard operation
machine copied to clipboard

VirtualBox is configured with multiple host-only adapters with the same IP

Open brgnepal opened this issue 10 years ago • 7 comments

Hi,

I started trying "docker-machine" in linux and hit by the error in the create step. Error

$ docker-machine -v
docker-machine version 0.7.0, build a650a40

$ docker-machine create --driver virtualbox dev
Running pre-create checks...
Error with pre-create check: "VirtualBox is configured with multiple host-only adapters with the same IP \"172.28.128.1\". Please remove one."

Any idea? I have already two VMs in stopped state.

$ VBoxManage list vms                          
"win7" {ade478d8-3080-409b-999f-a32f1cf40797}
"vagrant-service-manager_default_1467614255243_88024" {78929938-435f-4713-bb96-b1b0538494ad}

brgnepal avatar Jul 16 '16 14:07 brgnepal

I am getting this issue in Fedora 24. Windows 10 is working fine.

brgnepal avatar Jul 18 '16 07:07 brgnepal

What this error is telling you is that you have more that one host-only network adapter with the same same IP 172.28.128.1 If you open VirtualBox Panel and go to Settings/Network/Host-only Networks section, you can delete adapaters with duplicated IP addresses.

migaes avatar Jan 21 '17 13:01 migaes

@bormansquirrel Thank you. I opened VB and after removing all host-only networks in File>preferences>network>host-only networks, minikube was able to start

030 avatar Jul 13 '17 15:07 030

@bormansquirrel : this issue can happen with minikube as well. thanks for the solution.

Cryptophobia avatar Aug 15 '17 14:08 Cryptophobia

oc cluster up --create-machine gave me similar Error with pre-create check: "VirtualBox is configured with multiple host-only adapters with the same IP "192.168.56.1". Please remove one"

searched duplicated hostonly interfaces on 192.168.56.1: VBoxManage list -l hostonlyifs

found vboxnet0 and vboxnet1 both on 192.168.56.1; deleted only the second one: VBoxManage hostonlyif remove vboxnet1 now: oc cluster up --create-machine works fine

rondinif avatar Jan 27 '18 09:01 rondinif

@rondinif , that is a good solution as well. all done through the vboxmanage cli.

Cryptophobia avatar Jan 27 '18 14:01 Cryptophobia

Thanks @rondinif. I had the same issue and the solution you proffered fixed it.

femisystems avatar Jan 31 '18 00:01 femisystems