mfanjie / tips

0 stars 0 forks source link

failed to build k8s with error "VirtualBox is configured with multiple host-only interfaces with the same IP. Please remove all of them but one." #4

Open mfanjie opened 8 years ago

mfanjie commented 8 years ago

KUBE_RELEASE_RUN_TESTS=n build/release.sh +++ [0215 14:56:44] Verifying Prerequisites.... +++ [0215 14:56:44] No docker host is set. Checking options for setting one... +++ [0215 14:56:44] docker-machine was found. Host does not exist: "kube-dev" +++ [0215 14:56:44] Creating a machine to build Kubernetes Error creating machine: Error in driver during machine creation: VirtualBox is configured with multiple host-only interfaces with the same IP. Please remove all of them but one. !!! [0215 14:56:49] Something went wrong creating a machine. !!! [0215 14:56:49] Try the following: !!! [0215 14:56:49] docker-machine create -d virtualbox kube-dev !!! Error in build/release.sh:30 'return 1' exited with status 1 Call stack: 1: build/release.sh:30 main(...) Exiting with status 1 make: *\ [quick-release] Error 1

mfanjie commented 8 years ago

Root cause: Somehow the vboxnet0 still exists after I remove the VM.

LM-SHC-16501199:kubernetes fmeng$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=3<RXCSUM,TXCSUM> inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=1 gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether ac:bc:32:c1:2e:53 inet 10.249.75.108 netmask 0xfffffe00 broadcast 10.249.75.255 media: autoselect status: active en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500 options=60<TSO4,TSO6> ether 6a:00:01:4b:ca:a0 media: autoselect status: inactive en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500 options=60<TSO4,TSO6> ether 6a:00:01:4b:ca:a1 media: autoselect status: inactive bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=63<RXCSUM,TXCSUM,TSO4,TSO6> ether ae:bc:32:1c:b1:00 Configuration: id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200 root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0 ipfilter disabled flags 0x2 member: en1 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 5 priority 0 path cost 0 member: en2 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 6 priority 0 path cost 0 media: status: inactive p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 ether 0e:bc:32:c1:2e:53 media: autoselect status: inactive awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484 ether 3e:99:f2:db:ea:42 inet6 fe80::3c99:f2ff:fedb:ea42%awdl0 prefixlen 64 scopeid 0x9 nd6 options=1 media: autoselect status: active vboxnet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:00 vboxnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:01 inet 10.245.1.1 netmask 0xffffff00 broadcast 10.245.1.255 vboxnet2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:02 inet 192.168.99.1 netmask 0xffffff00 broadcast 192.168.99.255

mfanjie commented 8 years ago

Solution VBoxManage hostonlyif remove vboxnet1