{"action":"created","issue":{"url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/17","labels_url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/17/comments","events_url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/17/events","html_url":"https://github.com/tmatilai/packer-openbsd/issues/17","id":115186419,"number":17,"title":"OpenBSD 5.8 virtualbox-iso builder failing to shutdown","user":{"login":"aalmazan","id":800948,"avatar_url":"https://avatars.githubusercontent.com/u/800948?v=3","gravatar_id":"","url":"https://api.github.com/users/aalmazan","html_url":"https://github.com/aalmazan","followers_url":"https://api.github.com/users/aalmazan/followers","following_url":"https://api.github.com/users/aalmazan/following{/other_user}","gists_url":"https://api.github.com/users/aalmazan/gists{/gist_id}","starred_url":"https://api.github.com/users/aalmazan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalmazan/subscriptions","organizations_url":"https://api.github.com/users/aalmazan/orgs","repos_url":"https://api.github.com/users/aalmazan/repos","events_url":"https://api.github.com/users/aalmazan/events{/privacy}","received_events_url":"https://api.github.com/users/aalmazan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-05T01:06:26Z","updated_at":"2015-12-14T13:58:34Z","closed_at":null,"body":"When attempting to build a virtualbox box, the shutdown command does not seem to be sending properly. Error log below: \r\n\r\n```\r\n$ packer build -only=virtualbox-iso openbsd-5.8-amd64.json\r\n\r\n==> virtualbox-iso: Gracefully halting virtual machine...\r\n==> virtualbox-iso: Failed to send shutdown command: EOF\r\n==> virtualbox-iso: Unregistering and deleting virtual machine...\r\n==> virtualbox-iso: Deleting output directory...\r\nBuild 'virtualbox-iso' errored: Failed to send shutdown command: EOF\r\n```\r\n\r\nA workaround I found is to change line 56 in `openbsd-5.8-{amd64,i386}.json`:\r\n```\r\n- \"shutdown_command\": \"/sbin/halt -p\",\r\n+ \"shutdown_command\": \"/sbin/shutdown -h now\",\r\n```\r\n\r\nAfter the system halts and disks sync, I manually power off the VM. Is there something preventing `/sbin/halt -p` from working? \r\n\r\nEDIT: \r\nSystem details:\r\n* Xubuntu 15.04\r\n* VirtualBox 5.0.8 r103449"},"comment":{"url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/comments/164444438","html_url":"https://github.com/tmatilai/packer-openbsd/issues/17#issuecomment-164444438","issue_url":"https://api.github.com/repos/tmatilai/packer-openbsd/issues/17","id":164444438,"user":{"login":"zigg","id":56017,"avatar_url":"https://avatars.githubusercontent.com/u/56017?v=3","gravatar_id":"","url":"https://api.github.com/users/zigg","html_url":"https://github.com/zigg","followers_url":"https://api.github.com/users/zigg/followers","following_url":"https://api.github.com/users/zigg/following{/other_user}","gists_url":"https://api.github.com/users/zigg/gists{/gist_id}","starred_url":"https://api.github.com/users/zigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zigg/subscriptions","organizations_url":"https://api.github.com/users/zigg/orgs","repos_url":"https://api.github.com/users/zigg/repos","events_url":"https://api.github.com/users/zigg/events{/privacy}","received_events_url":"https://api.github.com/users/zigg/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T13:58:34Z","updated_at":"2015-12-14T13:58:34Z","body":"Another one to try if the my other suggested command doesn't work: `nohup halt -p && exit`. Just thinking through how this could fail… "}}