{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/59","labels_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/59/comments","events_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/59/events","html_url":"https://github.com/MSOpenTech/packer-azure/issues/59","id":66032037,"number":59,"title":"Packer dies while waiting for SSH to become available","user":{"login":"ldanielw1","id":1388215,"avatar_url":"https://avatars.githubusercontent.com/u/1388215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldanielw1","html_url":"https://github.com/ldanielw1","followers_url":"https://api.github.com/users/ldanielw1/followers","following_url":"https://api.github.com/users/ldanielw1/following{/other_user}","gists_url":"https://api.github.com/users/ldanielw1/gists{/gist_id}","starred_url":"https://api.github.com/users/ldanielw1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldanielw1/subscriptions","organizations_url":"https://api.github.com/users/ldanielw1/orgs","repos_url":"https://api.github.com/users/ldanielw1/repos","events_url":"https://api.github.com/users/ldanielw1/events{/privacy}","received_events_url":"https://api.github.com/users/ldanielw1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-02T23:31:06Z","updated_at":"2015-04-13T18:40:12Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having issues getting packer-azure to work from a mac, as it boots up a machine, but cannot connect to it. I'm getting this output:\r\nDebug mode enabled. Builds will not be parallelized.\r\nazure output will be in this color.\r\n\r\n==> azure: Preparing builder...\r\n    azure: Creating a new request manager...\r\n==> azure: Validating Azure Options...\r\n    azure: Checking Storage Account...\r\n    azure: Checking OS image with the label 'OpenLogic 6.5' exists...\r\n    azure: Found 2 image(s).\r\n    azure: Take the most recent:\r\n    azure: OS Image Label: OpenLogic 6.5\r\n    azure: OS Image Family:\r\n    azure: OS Image Name: 5112500ae3b842c8b9c604889f8753c3__OpenLogic-CentOS-65-20150325\r\n    azure: OS Image PublishedDate: 2015-03-25T00:00:00Z\r\n==> azure: Creating Temporary Certificate...\r\n    azure: Creating Temporary Directory...\r\n    azure: CertPath: /var/folders/yf/cwnpl2wx6638n239y_7jgjx000089n/T/packer_cert874104718/cert.pem\r\n    azure: thumbprint: 2B50B7420215714ACA6699CA046979CAD5A713AA\r\n==> azure: Pausing after run of step 'StepCreateCert'. Press enter to continue. \r\n==> azure: Creating Temporary Azure Service...\r\n==> azure: Pausing after run of step 'StepCreateService'. Press enter to continue. \r\n==> azure: Uploading Temporary Certificate...\r\n==> azure: Pausing after run of step 'StepUploadCertificate'. Press enter to continue. \r\n==> azure: Creating Temporary Azure VM...\r\nload: 1.29  cmd: packer-provision 75986 running 0.00u 0.00s\r\n==> azure: Pausing after run of step 'StepCreateVm'. Press enter to continue. \r\n==> azure: Polling Temporary Azure VM is ready...\r\n    azure: VM Endpoint: 104.45.214.160:%!d(string=22)\r\n    azure: VM DiskName: PkrVMxf08xjdn0o-PkrVMxf08xjdn0o-0-201504022044240891\r\n    azure: VM MediaLink: https://packertest.blob.core.windows.net/test/PkrVMxf08xjdn0o.vhd\r\n==> azure: Pausing after run of step 'StepPollStatus'. Press enter to continue. \r\n==> azure: Waiting for SSH to become available...\r\n==> azure: Timeout waiting for SSH.\r\n==> azure: Pausing before cleanup of step 'StepPollStatus'. Press enter to continue.      \r\n==> azure: Pausing before cleanup of step 'StepCreateVm'. Press enter to continue. \r\n==> azure: Pausing before cleanup of step 'StepUploadCertificate'. Press enter to continue. \r\n==> azure: Pausing before cleanup of step 'StepCreateService'. Press enter to continue. \r\n==> azure: Removing Temporary Azure Service and It's Deployments If Any...\r\n==> azure: Pausing before cleanup of step 'StepCreateCert'. Press enter to continue. \r\n==> azure: Deleting Temporary Certificate...\r\n    azure: Deleting Temporary Directory...\r\nBuild 'azure' errored: Timeout waiting for SSH.\r\n\r\n==> Some builds didn't complete successfully and had errors:\r\n--> azure: Timeout waiting for SSH.\r\n\r\n==> Builds finished but no artifacts were created.\r\n\r\n\r\nand my JSON is:\r\n{\r\n    \"builders\":\r\n        [{\r\n                \"type\": \"azure\",\r\n                \"publish_settings_path\":    \"test.publishsettings\",\r\n                \"subscription_name\":    \"XXXXX\",\r\n                \"storage_account\":  \"XXXXX\",\r\n                \"storage_account_container\":    \"test\",\r\n                \"os_type\":  \"Linux\",\r\n                \"os_image_label\":   \"OpenLogic 6.5\",\r\n                \"location\": \"West US\",\r\n                \"instance_size\":    \"Small\",\r\n                \"user_image_label\": \"testcentos\"\r\n        }],\r\n    \"provisioners\":\r\n        [{\r\n            \"type\": \"shell\",\r\n            \"execute_command\":  \"chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'\",\r\n            \"inline\": [ \"sudo apt-get update\",\r\n                        \"sudo apt-get install -y mc\",\r\n                        \"sudo apt-get install -y nodejs\",\r\n                        \"sudo apt-get install -y npm\",\r\n                        \"sudo npm install azure-cli -g\"\r\n                      ],\r\n            \"inline_shebang\":   \"/bin/sh -x\"\r\n        }]\r\n}\r\n\r\nDo you guys know why this might be happening? Am I doing something wrong with my json file? All I'm doing is calling:\r\n    packer build test.json"},"comment":{"url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/comments/92455926","html_url":"https://github.com/MSOpenTech/packer-azure/issues/59#issuecomment-92455926","issue_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/59","id":92455926,"user":{"login":"ldanielw1","id":1388215,"avatar_url":"https://avatars.githubusercontent.com/u/1388215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldanielw1","html_url":"https://github.com/ldanielw1","followers_url":"https://api.github.com/users/ldanielw1/followers","following_url":"https://api.github.com/users/ldanielw1/following{/other_user}","gists_url":"https://api.github.com/users/ldanielw1/gists{/gist_id}","starred_url":"https://api.github.com/users/ldanielw1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldanielw1/subscriptions","organizations_url":"https://api.github.com/users/ldanielw1/orgs","repos_url":"https://api.github.com/users/ldanielw1/repos","events_url":"https://api.github.com/users/ldanielw1/events{/privacy}","received_events_url":"https://api.github.com/users/ldanielw1/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T18:40:12Z","updated_at":"2015-04-13T18:40:12Z","body":"@cyrille-leclerc Sry, yes, that is what I meant. Packer works fine for me in publishing to Softlayer and AWS. I only have issues with packer-azure"}}