{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2449","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2449/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2449/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2449/events","html_url":"https://github.com/mitchellh/packer/issues/2449","id":95053414,"number":2449,"title":"Qemu builder in 0.8.1 fails to create disk image","user":{"login":"tylert","id":152904,"avatar_url":"https://avatars.githubusercontent.com/u/152904?v=3","gravatar_id":"","url":"https://api.github.com/users/tylert","html_url":"https://github.com/tylert","followers_url":"https://api.github.com/users/tylert/followers","following_url":"https://api.github.com/users/tylert/following{/other_user}","gists_url":"https://api.github.com/users/tylert/gists{/gist_id}","starred_url":"https://api.github.com/users/tylert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylert/subscriptions","organizations_url":"https://api.github.com/users/tylert/orgs","repos_url":"https://api.github.com/users/tylert/repos","events_url":"https://api.github.com/users/tylert/events{/privacy}","received_events_url":"https://api.github.com/users/tylert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/qemu","name":"builder/qemu","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-14T22:07:45Z","updated_at":"2015-07-16T07:27:35Z","closed_at":null,"body":"With the template found at...\r\nhttps://github.com/tylert/packer-build/blob/a81f4a22331f968b33c85eb8b3667a6034fdafa7/debian/jessie/base-64.json\r\n... the qemu builder fails with the following output:\r\n```\r\npacker-build$ CHECKPOINT_DISABLE=1 PACKER_LOG=1 PACKER_LOG_PATH=./qemu.log packer build -only=qemu debian/jessie/base-64.json \r\nqemu output will be in this color.\r\n\r\n==> qemu: Downloading or copying ISO\r\n    qemu: Downloading or copying: http://cdimage.debian.org/cdimage/release/8.1.0/multi-arch/iso-cd/debian-8.1.0-amd64-i386-netinst.iso\r\n==> qemu: Creating hard drive...\r\n==> qemu: Starting HTTP server on port 8081\r\n==> qemu: Found port for SSH: 6887.\r\n==> qemu: Looking for available port between 5900 and 6000\r\n==> qemu: Found available VNC port: 5947\r\n==> qemu: Starting VM, booting from CD-ROM\r\n==> qemu: Overriding defaults Qemu arguments with QemuArgs...\r\n==> qemu: Error launching VM: Qemu failed to start. Please run with logs to get more info.\r\n==> qemu: Deleting output directory...\r\nBuild 'qemu' errored: Build was halted.\r\n\r\n==> Some builds didn't complete successfully and had errors:\r\n--> qemu: Build was halted.\r\n\r\n==> Builds finished but no artifacts were created.\r\n```\r\n\r\nThe pertinent lines would appear to be:\r\n```\r\n2015/07/14 17:42:34 packer-builder-qemu: 2015/07/14 17:42:34 Executing /usr/bin/qemu-system-x86_64: []string{\"-display\", \"sdl\", \"-hda\", \"build/2015-07-14-21-42/base-jessie-64.raw\", \"-boot\", \"once=d\", \"-cdrom\", \"/home/horrible/packer-build/packer_cache/e42f8a2b9a6c7d0a1d06f8e097721676ef69c9919404745d51c228e59e9e8183.iso\", \"-vnc\", \"0.0.0.0:47\", \"-machine\", \"type=pc,accel=kvm\", \"-name\", \"base-jessie-64\", \"-drive\", \"file=build/2015-07-14-21-42/base-jessie-64,if=virtio,cache=writethrough,discard=ignore\", \"-m\", \"512M\", \"-smp\", \"1\", \"-netdev\", \"user,id=user.0,hostfwd=tcp::6887-:22\", \"-device\", \"virtio-net,netdev=user.0\"}\r\n2015/07/14 17:42:34 packer-builder-qemu: 2015/07/14 17:42:34 Started Qemu. Pid: 31203\r\n2015/07/14 17:42:34 packer-builder-qemu: 2015/07/14 17:42:34 Qemu stderr: qemu-system-x86_64: -hda build/2015-07-14-21-42/base-jessie-64.raw: could not open disk image build/2015-07-14-21-42/base-jessie-64.raw: Could not open 'build/2015-07-14-21-42/base-jessie-64.raw': No such file or directory\r\n```\r\n\r\nFull capture of failure output:\r\n  https://gist.github.com/tylert/16bbbc74c28dda5abc21\r\n\r\nThe template linked above works fine with Packer 0.7.5 (on Debian 8.1.0 amd64) if you strip out the \"communicator\", \"ssh_pty\" and \"ssh_timeout\" lines.  I can't test it with Packer 0.8.0 since that one crashes (https://github.com/mitchellh/packer/issues/2311).\r\n\r\nPlease let me know if you would like me to attempt to provide a more minimal template that reproduces the problem."},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/121858798","html_url":"https://github.com/mitchellh/packer/issues/2449#issuecomment-121858798","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2449","id":121858798,"user":{"login":"vtolstov","id":481307,"avatar_url":"https://avatars.githubusercontent.com/u/481307?v=3","gravatar_id":"","url":"https://api.github.com/users/vtolstov","html_url":"https://github.com/vtolstov","followers_url":"https://api.github.com/users/vtolstov/followers","following_url":"https://api.github.com/users/vtolstov/following{/other_user}","gists_url":"https://api.github.com/users/vtolstov/gists{/gist_id}","starred_url":"https://api.github.com/users/vtolstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtolstov/subscriptions","organizations_url":"https://api.github.com/users/vtolstov/orgs","repos_url":"https://api.github.com/users/vtolstov/repos","events_url":"https://api.github.com/users/vtolstov/events{/privacy}","received_events_url":"https://api.github.com/users/vtolstov/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T07:27:35Z","updated_at":"2015-07-16T07:27:35Z","body":"Or best - remove hda completely\r\n"}}