{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2990","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2990/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2990/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2990/events","html_url":"https://github.com/mitchellh/packer/issues/2990","id":121395216,"number":2990,"title":"Capture screenshot of VM on failed builds","user":{"login":"cbednarski","id":649798,"avatar_url":"https://avatars.githubusercontent.com/u/649798?v=3","gravatar_id":"","url":"https://api.github.com/users/cbednarski","html_url":"https://github.com/cbednarski","followers_url":"https://api.github.com/users/cbednarski/followers","following_url":"https://api.github.com/users/cbednarski/following{/other_user}","gists_url":"https://api.github.com/users/cbednarski/gists{/gist_id}","starred_url":"https://api.github.com/users/cbednarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbednarski/subscriptions","organizations_url":"https://api.github.com/users/cbednarski/orgs","repos_url":"https://api.github.com/users/cbednarski/repos","events_url":"https://api.github.com/users/cbednarski/events{/privacy}","received_events_url":"https://api.github.com/users/cbednarski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/virtualbox","name":"builder/virtualbox","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/vmware","name":"builder/vmware","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-10T03:38:02Z","updated_at":"2015-12-11T06:59:00Z","closed_at":null,"body":"For virtual box and vmware builds it's possible to capture a screenshot of the OS state when a build fails. This would help debug early build failures in headless mode during the OS installation process, for example when a kickstart file gets stuck and SSH cannot connect to the VM.\r\n\r\nLater in the build (when running script provisioners, for example) the VM state will only show the login prompt so this is not very interesting.\r\n\r\nThe following commands can do this:\r\n\r\n```\r\nVBoxManage controlvm [vm name] screenshotpng [image]\r\nvmrun captureScreen [path to vmx] [image]\r\n```"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/163859594","html_url":"https://github.com/mitchellh/packer/issues/2990#issuecomment-163859594","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2990","id":163859594,"user":{"login":"StefanScherer","id":207759,"avatar_url":"https://avatars.githubusercontent.com/u/207759?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanScherer","html_url":"https://github.com/StefanScherer","followers_url":"https://api.github.com/users/StefanScherer/followers","following_url":"https://api.github.com/users/StefanScherer/following{/other_user}","gists_url":"https://api.github.com/users/StefanScherer/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanScherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanScherer/subscriptions","organizations_url":"https://api.github.com/users/StefanScherer/orgs","repos_url":"https://api.github.com/users/StefanScherer/repos","events_url":"https://api.github.com/users/StefanScherer/events{/privacy}","received_events_url":"https://api.github.com/users/StefanScherer/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T06:59:00Z","updated_at":"2015-12-11T06:59:00Z","body":"For Atlas maybe something like this would be cool to have a look at the display while packer runs: https://github.com/paimpozhil/docker-novnc\r\n"}}