{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/8004","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8004/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8004/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8004/events","html_url":"https://github.com/mitchellh/vagrant/issues/8004","id":189109567,"number":8004,"title":"[Windows 10] - Vagrant seems to truncate host-only network name if it ends with #[num] causing virtualbox not to find it","user":{"login":"Jayflux","id":936006,"avatar_url":"https://avatars.githubusercontent.com/u/936006?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayflux","html_url":"https://github.com/Jayflux","followers_url":"https://api.github.com/users/Jayflux/followers","following_url":"https://api.github.com/users/Jayflux/following{/other_user}","gists_url":"https://api.github.com/users/Jayflux/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayflux/subscriptions","organizations_url":"https://api.github.com/users/Jayflux/orgs","repos_url":"https://api.github.com/users/Jayflux/repos","events_url":"https://api.github.com/users/Jayflux/events{/privacy}","received_events_url":"https://api.github.com/users/Jayflux/received_events","type":"User","site_admin":false},"labels":[{"id":25816,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/bug","name":"bug","color":"e11d21","default":true},{"id":218286867,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/host/windows","name":"host/windows","color":"d4c5f9","default":false},{"id":425128607,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/networking","name":"networking","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-14T13:15:41Z","updated_at":"2016-11-30T00:46:34Z","closed_at":null,"body":"Please note that the Vagrant issue tracker is reserved for bug reports and\r\nenhancements. For general usage questions, please use the Vagrant mailing list:\r\nhttps://groups.google.com/forum/#!forum/vagrant-up. Thank you!\r\n\r\n### Vagrant version\r\nVagrant 1.8.7\r\n\r\n### Virtualbox Version\r\nVersion 5.1.8 r111374 (Qt5.5.1)\r\n\r\n### Host operating system\r\nOS Name\tMicrosoft Windows 10 Pro\r\nVersion\t10.0.14393 Build 14393\r\n\r\n### Guest operating system\r\nCentos 7\r\n\r\n### Vagrantfile\r\n```ruby\r\n\r\nrequire 'base64'\r\nrequire 'yaml'\r\nrequire 'json'\r\n\r\nVagrant.require_version \">= 1.8.0\"\r\n\r\nVagrant.configure(\"2\") do |config|\r\n\r\n  env_file = File.dirname(__FILE__) + \"/env.json\"\r\n  if File.exists?(env_file)\r\n    env = JSON.parse(IO.read(env_file))\r\n  else\r\n    env = {}\r\n  end\r\n\r\n  box_url = (env['centos_version'] == \"centos6\") ? \"https://myshare.box.com/shared/static/s0jvhavqu7jqukn48jnqab40ed1ff4kn.box\" : \"https://myshare.box.com/shared/static/51hsyyeunsebzgejp5g4kfdxo9k4sx0p.box\"\r\n  ip_addr = (env['centos_version'] == \"centos6\") ? '192.168.193.10' : '192.168.193.22'\r\n  hostname = (env['centos_version'] == \"centos6\") ? 'sandbox.foo.co.uk' : 'cloud7.sandbox.foo.co.uk'\r\n\r\n  config.vm.box       = (env['centos_version'] == \"centos6\") ? \"centos6-sandbox\" : \"centos7-sandbox\" \r\n  config.ssh.username = \"developer\"\r\n  config.ssh.host = hostname\r\n  config.ssh.port = 22\r\n  config.ssh.forward_agent = true\r\n  config.vm.network :forwarded_port, guest: 22, host: 2223, id: \"ssh\", disabled: \"true\"\r\n  config.vm.network \"private_network\", ip: ip_addr, name: 'VirtualBox Host-Only Ethernet Adapter #7', adapter: 1\r\n\r\n  config.vm.box_url   = box_url\r\n  config.vm.box_download_insecure = true\r\n\r\n  #cert in pem format\r\n  if ENV['cert_path'] || env['cert_path']\r\n    cert = ENV['cert_path'] || env['cert_path']\r\n    config.vm.box_download_client_cert = \"#{cert}\"\r\n    #puts \"#{cert}:#{pw}\"\r\n    env['certificate'] = {\r\n      \"file\" => Base64.encode64(IO.read(cert))\r\n    }\r\n  end\r\n\r\n  workspace = \"~/workspace\"\r\n\r\n  if ENV['workspace'] || env['workspace']\r\n    workspace = ENV['workspace'] || env['workspace']\r\n  end\r\n\r\n  config.vm.synced_folder workspace, \"/mnt/hgfs/workspace\", :mount_options => [\"dmode=777\", \"fmode=666\"]\r\n\r\n\r\n\r\n  # config.vm.provision \"shell\", inline: \"sudo -u developer -H -i /usr/sbin/reithproxies $1\", args: reithproxies\r\n  config.vm.provision \"file\", source: \"repos/\", destination: \"/tmp/\"\r\n  config.vm.provision \"file\", source: \"configFiles/\", destination: \"/tmp/\"\r\n  # file provisioner doesn't have access to /etc but shell does\r\n  config.vm.provision \"shell\", inline: \"mv /tmp/repos/*.repo /etc/yum.repos.d/\"\r\n  config.vm.provision \"shell\", path: \"guest_setup_script.py\", args: [env['cert_path']]\r\n\r\n\r\n  config.vm.provider :virtualbox do |vb|\r\n    vb.name = (env['centos_version'] == \"centos6\") ? \"CentOS-6-Sandbox\" : \"CentOS-7-Sandbox\"\r\n    vb.customize [\"modifyvm\", :id, \"--usbehci\", \"off\"]\r\n  end\r\nend\r\n\r\n```\r\n\r\nPlease note, if you are using Homestead or a different Vagrantfile format, we\r\nmay be unable to assist with your issue. Try to reproduce the issue using a\r\nvanilla Vagrantfile first.\r\n\r\n### Debug output\r\nhttps://gist.github.com/Jayflux/6ff1aa5b2b48fb97f65f4e85f8d94d66\r\n\r\n### Expected behavior\r\nVagrant/virtualbox should be using the host-only name i set in the vagrantfile.\r\n\r\n### Actual behavior\r\nVirtualbox seems to be looking for \"VirtualBox Host-Only Ethernet Adapter\" instead of \"VirtualBox Host-Only Ethernet Adapter #7\" unfortunately i cannot rename the adapters on windows.\r\nIf i remove the # then it searches for \"VirtualBox Host-Only Ethernet Adapter 7\" (which still does not exist), it looks like the pound sign is causing some truncation\r\n\r\n### Screenshot\r\n![host-only-7](https://cloud.githubusercontent.com/assets/936006/20266162/d0869190-aa6c-11e6-947c-f362f01e8c07.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/263748383","html_url":"https://github.com/mitchellh/vagrant/issues/8004#issuecomment-263748383","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8004","id":263748383,"user":{"login":"kenfusion","id":10200470,"avatar_url":"https://avatars.githubusercontent.com/u/10200470?v=3","gravatar_id":"","url":"https://api.github.com/users/kenfusion","html_url":"https://github.com/kenfusion","followers_url":"https://api.github.com/users/kenfusion/followers","following_url":"https://api.github.com/users/kenfusion/following{/other_user}","gists_url":"https://api.github.com/users/kenfusion/gists{/gist_id}","starred_url":"https://api.github.com/users/kenfusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenfusion/subscriptions","organizations_url":"https://api.github.com/users/kenfusion/orgs","repos_url":"https://api.github.com/users/kenfusion/repos","events_url":"https://api.github.com/users/kenfusion/events{/privacy}","received_events_url":"https://api.github.com/users/kenfusion/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T00:46:34Z","updated_at":"2016-11-30T00:46:34Z","body":"Have you tried to escape the '#'?  \r\nSomething like:\r\n`\r\nname: 'VirtualBox Host-Only Ethernet Adapter \\#7'`\r\n\r\n"}}
{"actor":{"display_login":"kenfusion"}}