{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/915","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/915/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/915/events","html_url":"https://github.com/mitchellh/packer/issues/915","id":28368605,"number":915,"title":"Packer fails to cleanup after interrupt with virtualbox","user":{"login":"jameskyle","id":8234,"avatar_url":"https://avatars0.githubusercontent.com/u/8234?v=3","gravatar_id":"","url":"https://api.github.com/users/jameskyle","html_url":"https://github.com/jameskyle","followers_url":"https://api.github.com/users/jameskyle/followers","following_url":"https://api.github.com/users/jameskyle/following{/other_user}","gists_url":"https://api.github.com/users/jameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/jameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameskyle/subscriptions","organizations_url":"https://api.github.com/users/jameskyle/orgs","repos_url":"https://api.github.com/users/jameskyle/repos","events_url":"https://api.github.com/users/jameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/jameskyle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2014-02-26T20:55:09Z","updated_at":"2017-03-14T14:36:18Z","closed_at":"2014-03-01T15:21:03Z","body":"If you Ctrl-C during a vbox build, packer is unable to clean up. Until it is manually cleaned up, it is also unable to create that build target:\n\n==> centos-6.5-x86_64: Unregistering and deleting virtual machine...\n==> centos-6.5-x86_64: Error deleting virtual machine: VBoxManage error: VBoxManage: error: Cannot unregister the machine 'centos-6.5-x86_64' while it is locked\n==> centos-6.5-x86_64: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports\n==> centos-6.5-x86_64: VBoxManage: error: Context: \"Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))\" at line 158 of file VBoxManageMisc.cpp\n==> centos-6.5-x86_64: Deleting output directory...\nBuild 'centos-6.5-x86_64' errored: Build was cancelled.\nCleanly cancelled builds after being interrupted.\n\njkyle at metaverse in ~/Projects/ISOs/galra (feature/virtualbox●●●)\n(packer)$ packer build -only=centos-6.5-x86_64  -var 'proxy=http://172.16.101.186:8000/' templates/redhat_virtualbox.json\ncentos-6.5-x86_64 output will be in this color.\n\n==> centos-6.5-x86_64: Downloading or copying Guest additions checksums\n    centos-6.5-x86_64: Downloading or copying: http://download.virtualbox.org/virtualbox/4.3.6/SHA256SUMS\n==> centos-6.5-x86_64: Downloading or copying Guest additions\n    centos-6.5-x86_64: Downloading or copying: http://download.virtualbox.org/virtualbox/4.3.6/VBoxGuestAdditions_4.3.6.iso\n==> centos-6.5-x86_64: Downloading or copying ISO\n    centos-6.5-x86_64: Downloading or copying: http://mirror.stanford.edu/yum/pub/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso\n==> centos-6.5-x86_64: Creating virtual machine...\n==> centos-6.5-x86_64: Error creating VM: VBoxManage error: VBoxManage: error: Machine settings file '/Users/jkyle/VirtualBox VMs/centos-6.5-x86_64/centos-6.5-x86_64.vbox' already exists\n==> centos-6.5-x86_64: VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Machine, interface IMachine, callee nsISupports\n==> centos-6.5-x86_64: VBoxManage: error: Context: \"CreateMachine(bstrSettingsFile.raw(), bstrName.raw(), ComSafeArrayAsInParam(groups), bstrOsTypeId.raw(), createFlags.raw(), machine.asOutParam())\" at line 275 of file VBoxManageMisc.cpp\n==> centos-6.5-x86_64: Deleting output directory...\nBuild 'centos-6.5-x86_64' errored: Error creating VM: VBoxManage error: VBoxManage: error: Machine settings file '/Users/jkyle/VirtualBox VMs/centos-6.5-x86_64/centos-6.5-x86_64.vbox' already exists\nVBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Machine, interface IMachine, callee nsISupports\nVBoxManage: error: Context: \"CreateMachine(bstrSettingsFile.raw(), bstrName.raw(), ComSafeArrayAsInParam(groups), bstrOsTypeId.raw(), createFlags.raw(), machine.asOutParam())\" at line 275 of file VBoxManageMisc.cpp\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/286440558","html_url":"https://github.com/mitchellh/packer/issues/915#issuecomment-286440558","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/915","id":286440558,"user":{"login":"tkambler","id":4448053,"avatar_url":"https://avatars2.githubusercontent.com/u/4448053?v=3","gravatar_id":"","url":"https://api.github.com/users/tkambler","html_url":"https://github.com/tkambler","followers_url":"https://api.github.com/users/tkambler/followers","following_url":"https://api.github.com/users/tkambler/following{/other_user}","gists_url":"https://api.github.com/users/tkambler/gists{/gist_id}","starred_url":"https://api.github.com/users/tkambler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkambler/subscriptions","organizations_url":"https://api.github.com/users/tkambler/orgs","repos_url":"https://api.github.com/users/tkambler/repos","events_url":"https://api.github.com/users/tkambler/events{/privacy}","received_events_url":"https://api.github.com/users/tkambler/received_events","type":"User","site_admin":false},"created_at":"2017-03-14T14:36:18Z","updated_at":"2017-03-14T14:36:18Z","body":"Still happening for me. Running the latest packer (0.12.3) and VirtualBox (5.1.16)."}}
{"actor":{"display_login":"tkambler"}}