{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/packer/issues/4993","repository_url":"https://api.github.com/repos/hashicorp/packer","labels_url":"https://api.github.com/repos/hashicorp/packer/issues/4993/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/packer/issues/4993/comments","events_url":"https://api.github.com/repos/hashicorp/packer/issues/4993/events","html_url":"https://github.com/hashicorp/packer/issues/4993","id":234783276,"node_id":"MDU6SXNzdWUyMzQ3ODMyNzY=","number":4993,"title":"How do I get access to the IP address of the machine under build?","user":{"login":"sandersaares","id":9914262,"node_id":"MDQ6VXNlcjk5MTQyNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/9914262?v=4","gravatar_id":"","url":"https://api.github.com/users/sandersaares","html_url":"https://github.com/sandersaares","followers_url":"https://api.github.com/users/sandersaares/followers","following_url":"https://api.github.com/users/sandersaares/following{/other_user}","gists_url":"https://api.github.com/users/sandersaares/gists{/gist_id}","starred_url":"https://api.github.com/users/sandersaares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandersaares/subscriptions","organizations_url":"https://api.github.com/users/sandersaares/orgs","repos_url":"https://api.github.com/users/sandersaares/repos","events_url":"https://api.github.com/users/sandersaares/events{/privacy}","received_events_url":"https://api.github.com/users/sandersaares/received_events","type":"User","site_admin":false},"labels":[{"id":33051539,"node_id":"MDU6TGFiZWwzMzA1MTUzOQ==","url":"https://api.github.com/repos/hashicorp/packer/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":33051542,"node_id":"MDU6TGFiZWwzMzA1MTU0Mg==","url":"https://api.github.com/repos/hashicorp/packer/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-06-09T10:15:13Z","updated_at":"2018-06-05T10:04:05Z","closed_at":"2017-06-10T06:42:19Z","author_association":"CONTRIBUTOR","body":"To work around https://github.com/hashicorp/packer/issues/2648 I am considering simply opening up some shared folders (SMB) on the machine being built and uploading files using the local shell provisioner. Alternatively, using PowerShell remoting file transfers. However, I do not seem to find any variables documented that would enable me to obtain the relevant IP address to actually connect to.\r\n\r\nI would like to know how I can provide this information to my local shell provisioner and to request that this information be added to the documentation."},"comment":{"url":"https://api.github.com/repos/hashicorp/packer/issues/comments/394654170","html_url":"https://github.com/hashicorp/packer/issues/4993#issuecomment-394654170","issue_url":"https://api.github.com/repos/hashicorp/packer/issues/4993","id":394654170,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY1NDE3MA==","user":{"login":"ladar","id":1434008,"node_id":"MDQ6VXNlcjE0MzQwMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/1434008?v=4","gravatar_id":"","url":"https://api.github.com/users/ladar","html_url":"https://github.com/ladar","followers_url":"https://api.github.com/users/ladar/followers","following_url":"https://api.github.com/users/ladar/following{/other_user}","gists_url":"https://api.github.com/users/ladar/gists{/gist_id}","starred_url":"https://api.github.com/users/ladar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ladar/subscriptions","organizations_url":"https://api.github.com/users/ladar/orgs","repos_url":"https://api.github.com/users/ladar/repos","events_url":"https://api.github.com/users/ladar/events{/privacy}","received_events_url":"https://api.github.com/users/ladar/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T10:04:05Z","updated_at":"2018-06-05T10:04:05Z","author_association":"CONTRIBUTOR","body":"Have you tried running:\r\n\r\n```\r\n PACKER_LOG=1 packer build template.json\r\n```\r\n\r\nThat will force packer to output additional information, including (I believe) the guest IP address (assuming it is able to discover the guest address). You can, of course, write the output to a file, for easier parsing, with:\r\n\r\n```\r\nset PACKER_LOG=1\r\nset PACKER_LOG_FILE=log.txt\r\npacker build template.json\r\n```\r\n\r\nNote, it's been awhile since I looked for this info, and different builders output different information. Not all of them output the guest IP address, but _I think_ the HyperV provider does.\r\n"}}
{"actor":{"display_login":"ladar"}}