{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/8104","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8104/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8104/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8104/events","html_url":"https://github.com/mitchellh/vagrant/issues/8104","id":194658397,"number":8104,"title":"Vagrant attempts to destroy VM and drives too soon","user":{"login":"gtirloni","id":5902830,"avatar_url":"https://avatars.githubusercontent.com/u/5902830?v=3","gravatar_id":"","url":"https://api.github.com/users/gtirloni","html_url":"https://github.com/gtirloni","followers_url":"https://api.github.com/users/gtirloni/followers","following_url":"https://api.github.com/users/gtirloni/following{/other_user}","gists_url":"https://api.github.com/users/gtirloni/gists{/gist_id}","starred_url":"https://api.github.com/users/gtirloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtirloni/subscriptions","organizations_url":"https://api.github.com/users/gtirloni/orgs","repos_url":"https://api.github.com/users/gtirloni/repos","events_url":"https://api.github.com/users/gtirloni/events{/privacy}","received_events_url":"https://api.github.com/users/gtirloni/received_events","type":"User","site_admin":false},"labels":[{"id":218286940,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/host/redhat","name":"host/redhat","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"kikitux","id":1255709,"avatar_url":"https://avatars.githubusercontent.com/u/1255709?v=3","gravatar_id":"","url":"https://api.github.com/users/kikitux","html_url":"https://github.com/kikitux","followers_url":"https://api.github.com/users/kikitux/followers","following_url":"https://api.github.com/users/kikitux/following{/other_user}","gists_url":"https://api.github.com/users/kikitux/gists{/gist_id}","starred_url":"https://api.github.com/users/kikitux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikitux/subscriptions","organizations_url":"https://api.github.com/users/kikitux/orgs","repos_url":"https://api.github.com/users/kikitux/repos","events_url":"https://api.github.com/users/kikitux/events{/privacy}","received_events_url":"https://api.github.com/users/kikitux/received_events","type":"User","site_admin":false},"assignees":[{"login":"kikitux","id":1255709,"avatar_url":"https://avatars.githubusercontent.com/u/1255709?v=3","gravatar_id":"","url":"https://api.github.com/users/kikitux","html_url":"https://github.com/kikitux","followers_url":"https://api.github.com/users/kikitux/followers","following_url":"https://api.github.com/users/kikitux/following{/other_user}","gists_url":"https://api.github.com/users/kikitux/gists{/gist_id}","starred_url":"https://api.github.com/users/kikitux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikitux/subscriptions","organizations_url":"https://api.github.com/users/kikitux/orgs","repos_url":"https://api.github.com/users/kikitux/repos","events_url":"https://api.github.com/users/kikitux/events{/privacy}","received_events_url":"https://api.github.com/users/kikitux/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-09T17:57:10Z","updated_at":"2016-12-10T21:03:51Z","closed_at":null,"body":"### Vagrant version\r\n\r\n1.9.1\r\n\r\n### Host operating system\r\n\r\nCentOS 7.2\r\nVirtualBox 5.1.10\r\n\r\n### Guest operating system\r\n\r\nFedora 24\r\nVirtualBox 5.1.10 Guest Additions\r\n\r\n### Debug output\r\n\r\n```\r\nvagrant destroy -f\r\n==> fedora: Forcing shutdown of VM...\r\n==> fedora: Destroying VM and associated drives...\r\nThere was an error while executing `VBoxManage`, a CLI used by Vagrant\r\nfor controlling VirtualBox. The command and stderr is shown below.\r\n\r\nCommand: [\"unregistervm\", \"55b1d781-d3d5-4732-96d3-94a8eed5bbc2\", \"--delete\"]\r\n\r\nStderr: VBoxManage: error: Cannot unregister the machine 'gpii-pouchdb-lucene-tests_fedora_1481303873647_68219' while it is locked\r\nVBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports\r\nVBoxManage: error: Context: \"Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))\" at line 155 of file VBoxManageMisc.cpp\r\n```\r\n\r\n### Expected behavior\r\n\r\nVM gets deleted.\r\n\r\n### Actual behavior\r\n\r\nVagrant proceeded to unregister the VM while shutdown has still not completed (the 'VirtualBox' process is still running).\r\n\r\nRunning `vagrant destroy -f` a few seconds later completes successfully.\r\n\r\n### Steps to reproduce\r\n1. vagrant up\r\n2. vagrant destroy -f"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/266239542","html_url":"https://github.com/mitchellh/vagrant/issues/8104#issuecomment-266239542","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/8104","id":266239542,"user":{"login":"gtirloni","id":5902830,"avatar_url":"https://avatars.githubusercontent.com/u/5902830?v=3","gravatar_id":"","url":"https://api.github.com/users/gtirloni","html_url":"https://github.com/gtirloni","followers_url":"https://api.github.com/users/gtirloni/followers","following_url":"https://api.github.com/users/gtirloni/following{/other_user}","gists_url":"https://api.github.com/users/gtirloni/gists{/gist_id}","starred_url":"https://api.github.com/users/gtirloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtirloni/subscriptions","organizations_url":"https://api.github.com/users/gtirloni/orgs","repos_url":"https://api.github.com/users/gtirloni/repos","events_url":"https://api.github.com/users/gtirloni/events{/privacy}","received_events_url":"https://api.github.com/users/gtirloni/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T21:03:51Z","updated_at":"2016-12-10T21:03:51Z","body":"It only happens when the machine is running. In fact, we added  `vagrant halt && sleep 10 && vagrant destroy -f` to our scripts with good results."}}
{"actor":{"display_login":"gtirloni"}}