How can I tell packer which IP should it connect to ?

29 views
Skip to first unread message

shellwhale

unread,
May 24, 2020, 5:54:35 PM5/24/20
to Packer
Hello.

I'm using the tool for the first time.
I managed to spin up a Debian 10 instance along with it's preseed file on my Windows 10 Hyper-V hypervisor.

I'm able to SSH manually to my instance, however the packer tool is stuck on "Waiting for SSH to become available..."


Is there something to setup in order for the tool to know which IP it should try to connect to ?

Regards.


Sylvia Moss

unread,
May 25, 2020, 5:08:36 AM5/25/20
to Packer
Hello there!

You can use these ssh fields https://www.packer.io/docs/builders/virtualbox/iso/#optional-ssh-fields to set the necessary ssh config. 
This is the virtualbox-iso docs but it uses the same config. I will update the Hyper-V docs with them. 

In this case you can use ssh_host to set the IP.  Let me know if this works for you! 

Cheers.
Reply all
Reply to author
Forward
0 new messages