{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/1014","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/1014/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/1014/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/1014/events","html_url":"https://github.com/mitchellh/vagrant/issues/1014","id":5547187,"number":1014,"title":"Host-Only-Adapter has wrong IP and subnetmask ","user":{"login":"athiele","id":1597524,"avatar_url":"https://avatars.githubusercontent.com/u/1597524?v=3","gravatar_id":"","url":"https://api.github.com/users/athiele","html_url":"https://github.com/athiele","followers_url":"https://api.github.com/users/athiele/followers","following_url":"https://api.github.com/users/athiele/following{/other_user}","gists_url":"https://api.github.com/users/athiele/gists{/gist_id}","starred_url":"https://api.github.com/users/athiele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athiele/subscriptions","organizations_url":"https://api.github.com/users/athiele/orgs","repos_url":"https://api.github.com/users/athiele/repos","events_url":"https://api.github.com/users/athiele/events{/privacy}","received_events_url":"https://api.github.com/users/athiele/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2012-07-11T12:40:06Z","updated_at":"2015-09-30T00:14:36Z","closed_at":"2013-09-02T22:58:25Z","body":"When starting a box with host-only-networking, sometimes the created virtual network adapter in VirtualBox has a different IP and subnetmask than specified. That causes the problem, that if I start an other box of our Vagrant environment, VirtualBox registers a \"Virtualbox Host Only Adapter #2\", #3, etc. This prevents the different VMs from communicating with each other, because the first VMs network card is \"Virtualbox Host Only Adapter\", and the second VMs adapter is \"Virtualbox Host Only Adapter #2\".\n\nThis problem occurs sporadically on different hosts with Windows 7. After rebooting the host machine, the error usually does not occur anymore.\n\n\nThe Vagrantfile we use:\n\n```\nVagrant::Config.run do |config|\n  config.vm.define :management do |man_config|\n\n    [...]\n    man_config.vm.boot_mode = :headless\n    man_config.vm.network :hostonly, \"192.168.0.10\", :netmask => \"255.255.255.0\"\n    man_config.vm.customize [\"modifyvm\", :id, \"--memory\", 2200]\n    man_config.vm.customize [\"modifyvm\", :id, \"--cpus\", 2]\n    [...]\n  end\n[..] \nend\n\n```\n\nIn the Virtualbox Console, \"VirtualBox Host-Only Ethernet Adapter\" has the following properties:\n```\nIPv4 address: 169.254.130.104\nIPv4 netmask: 255.255.0.0\n\n```\n\nWe found this workaround, to force the VMs to use one network adapter, even if it has the wrong ip data :\n``` man_config.vm.customize [\"modifyvm\", :id, \"--nic2\", \"hostonly\", \"--cableconnected2\", \"on\", \"--hostonlyadapter2\", \"VirtualBox Host-Only Ethernet Adapter\"] ```\n\nThis workaround is very helpful but it seems to be not a clean solution for permanent usage. \n\nSoftware in Use:\nWindows 7 64bit\nVagrant 1.0.3\nVirtualBox 4.1.16\n\n\n\nThanks in advance and kind regards\nAimo  \n\n\n\n\n "},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/144226458","html_url":"https://github.com/mitchellh/vagrant/issues/1014#issuecomment-144226458","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/1014","id":144226458,"user":{"login":"rogersanctus","id":1813125,"avatar_url":"https://avatars.githubusercontent.com/u/1813125?v=3","gravatar_id":"","url":"https://api.github.com/users/rogersanctus","html_url":"https://github.com/rogersanctus","followers_url":"https://api.github.com/users/rogersanctus/followers","following_url":"https://api.github.com/users/rogersanctus/following{/other_user}","gists_url":"https://api.github.com/users/rogersanctus/gists{/gist_id}","starred_url":"https://api.github.com/users/rogersanctus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogersanctus/subscriptions","organizations_url":"https://api.github.com/users/rogersanctus/orgs","repos_url":"https://api.github.com/users/rogersanctus/repos","events_url":"https://api.github.com/users/rogersanctus/events{/privacy}","received_events_url":"https://api.github.com/users/rogersanctus/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T00:14:36Z","updated_at":"2015-09-30T00:14:36Z","body":"Well, I had the same problem on windows 8.1, but I just had to rerun the vagrant up command again and it worked xD."}}