{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/7823","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7823/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7823/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7823/events","html_url":"https://github.com/mitchellh/vagrant/issues/7823","id":179028078,"number":7823,"title":"Vagrant hangs on all commands (Windows 7)","user":{"login":"mliebelt","id":520039,"avatar_url":"https://avatars.githubusercontent.com/u/520039?v=3","gravatar_id":"","url":"https://api.github.com/users/mliebelt","html_url":"https://github.com/mliebelt","followers_url":"https://api.github.com/users/mliebelt/followers","following_url":"https://api.github.com/users/mliebelt/following{/other_user}","gists_url":"https://api.github.com/users/mliebelt/gists{/gist_id}","starred_url":"https://api.github.com/users/mliebelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mliebelt/subscriptions","organizations_url":"https://api.github.com/users/mliebelt/orgs","repos_url":"https://api.github.com/users/mliebelt/repos","events_url":"https://api.github.com/users/mliebelt/events{/privacy}","received_events_url":"https://api.github.com/users/mliebelt/received_events","type":"User","site_admin":false},"labels":[{"id":218286867,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/host/windows","name":"host/windows","color":"d4c5f9","default":false},{"id":443900816,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/needs-repro","name":"needs-repro","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mitchellh/vagrant/milestones/20","html_url":"https://github.com/mitchellh/vagrant/milestones/Secondary","labels_url":"https://api.github.com/repos/mitchellh/vagrant/milestones/20/labels","id":2033220,"number":20,"title":"Secondary","description":"Primary issues to pull from for point releases. Main composition is non-critical bug reports and requests.","creator":{"login":"chrisroberts","id":266674,"avatar_url":"https://avatars.githubusercontent.com/u/266674?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroberts","html_url":"https://github.com/chrisroberts","followers_url":"https://api.github.com/users/chrisroberts/followers","following_url":"https://api.github.com/users/chrisroberts/following{/other_user}","gists_url":"https://api.github.com/users/chrisroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroberts/subscriptions","organizations_url":"https://api.github.com/users/chrisroberts/orgs","repos_url":"https://api.github.com/users/chrisroberts/repos","events_url":"https://api.github.com/users/chrisroberts/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroberts/received_events","type":"User","site_admin":false},"open_issues":212,"closed_issues":3,"state":"open","created_at":"2016-09-27T21:31:38Z","updated_at":"2016-11-20T10:48:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-24T12:34:55Z","updated_at":"2016-11-20T10:48:27Z","closed_at":null,"body":"I face currently the strange situation that (without any change that I have done), a VirtualBox image I use since years is now slow in startup. This image runs all the time on my host machine (Windows 7), and normally I don't reboot the computer too often, so I cannot say when it stopped working fast. \n\nThere are some details below, my impression is, that there is some timeout (30 seconds) active, and the log shows all the time lines like that:\n\n```\nDEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000\nDEBUG subprocess: Exit status: 0\nINFO subprocess: Starting process: [\"C:/Program Files/Oracle/VirtualBox/VBoxManage.exe\", \"showvminfo\", \"9c33633d-d8d0-422d-87b3-0ba5667053ed\", \"--machinereadable\"]\nINFO subprocess: Command not in installer, restoring original environment...\n```\n\nWhen I reinstall Vagrant, the first run is fast, all following are slow again. The output in the log is similar, but the timing is different.\n### Vagrant version\n\n1.7.4 (had the same problems with 1.8.4 and 1.8.5)\n### Host operating system\n\nWindows 7\n### Guest operating system\n\nubuntu/trusty64\n### Vagrantfile\n\n``` ruby\nVAGRANTFILE_API_VERSION = \"2\"\nVagrant.configure(VAGRANTFILE_API_VERSION) do |config|\n   config.vm.box_check_update = false\n   config.vm.boot_timeout = 900\n   config.vm.box = \"ubuntu/trusty64\"\n  config.vm.network :forwarded_port, guest: 4009, host: 5009\n  config.vm.network :forwarded_port, guest: 4008, host: 5008\n  ...\n  config.proxy.http     = \"http://<our-proxy>:8080\"\n  config.proxy.https    = \"http://<our-proxy>:8080\"\n  config.proxy.no_proxy = \"localhost,127.0.0.1\"\n  config.vm.synced_folder \"../data\", \"/vagrant_data\"\nend\n```\n### Debug output\n\nhttps://gist.github.com/mliebelt/18ce5e109ef9cd2f4494dbac178efb69\n\nThis contains 2 consecutive runs, the first one after a fresh install (first deinstalled, then reinstalled, restarted the computer). The second run was done immediate after the first one.\n### Expected behavior\n\nThe runtime behavior of Vagrant should be all the time similar. \n### Actual behavior\n\nCurrently I face the problem that Vagrant hangs a lot for all commands (even vagrant status needs some minutes). The only workaround I have found is to do a reinstall of Vagrant. The first run afterwards is then fast again, but only the first.\n\nI have further tried different things, here is a summary:\n- Same behavior for combination Vagrant 1.7.5 and VB 5.024, Vagrant 1.8.4 and VB 5.0.26, Vagrant 1.8.5 and VB 5.1.4\n- It has nothing to do if I have a network connection or not.\n- I can disable the VB network connectors as well, no difference.\n- The first run of Vagrant after a reinstall is fast, all following are slow.\n- There is no difference if I restart the machine in between.\n- When running the commands with the flag `--debug`, I see vagrant hanging all the time when the log shows: `INFO subprocess: Command not in installer, restoring original environment...`\n- I had to add a bigger timeout (see line `config.vm.boot_timeout = 900`) so that the commands could finish. Before that vagrant aborted.\n### Steps to reproduce\n\nI cannot say how others can reproduce it. For me the following steps are sufficient all the time:\n1. Reinstall vagrant\n2. Run `vagrant up` on an existing (or new) box\n3. This runs with normal speed (~ 30 seconds for the startup).\n   4- Run `vagrant ssh`  to login.\n4. This now runs slow with ~ 5-10 minutes for the login.\n5. Stop the VirtualBox image with the VirtualBox UI (`vagrant halt` needs too much time).\n6. Run `vagrant up` again.\n7. Startup time is now ~ 40 minutes\n### References\n\nAre there any other GitHub issues (open or closed) that should be linked here?\nFor example:\n- #6812: Tried the tip of @tlartaud, but did not help me.\n- #6242: Found that, will try to go back to version 1.7.2 to see if the timeout problem then goes away as well.\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/261770969","html_url":"https://github.com/mitchellh/vagrant/issues/7823#issuecomment-261770969","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7823","id":261770969,"user":{"login":"mliebelt","id":520039,"avatar_url":"https://avatars.githubusercontent.com/u/520039?v=3","gravatar_id":"","url":"https://api.github.com/users/mliebelt","html_url":"https://github.com/mliebelt","followers_url":"https://api.github.com/users/mliebelt/followers","following_url":"https://api.github.com/users/mliebelt/following{/other_user}","gists_url":"https://api.github.com/users/mliebelt/gists{/gist_id}","starred_url":"https://api.github.com/users/mliebelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mliebelt/subscriptions","organizations_url":"https://api.github.com/users/mliebelt/orgs","repos_url":"https://api.github.com/users/mliebelt/repos","events_url":"https://api.github.com/users/mliebelt/events{/privacy}","received_events_url":"https://api.github.com/users/mliebelt/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T10:48:27Z","updated_at":"2016-11-20T10:48:27Z","body":"Problem ist there again, so I gave it another try:\r\n\r\n* Installed latest Ruby version.\r\n* Ensured that it is in the path.\r\n* Started the following command with the the output then:\r\n`date +%s%N;ruby --version;date +%s%N`\r\n\r\n        1479637816796089000\r\n        ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]\r\n        1479637847225131600\r\n\r\nThe difference in Nanosecond is: 30429042\r\n\r\nSo my interpretation is: starting the Ruby interpreter needs > 30 seconds each time. So if I could measure the performance inside the Ruby interpreter, there could be a chance to find the reason for that behavior."}}
{"actor":{"display_login":"mliebelt"}}