Packer build web se...
 
Notifications
Clear all

Packer build web server uses 169 address

1 Posts
1 Users
0 Reactions
330 Views
Brandon Lee
Posts: 395
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

If you are using Hashicorp (IBM Smile ) Packer and you notice the web server it spins up for your packer build to connect back to is using a 169 address which is an automatic private address, it will cause issues. I have run into this situation where I have virtualization solutions of some sort installed, whether Hyper-V, VMware Workstation, or Docker.ย 

However, there is a workaround if Packer "chooses" to use a 169 address instead of your connectable address. You can add the following line to your main Packer build file, replacing the IP address with your IP address you want Packer to "listen" on.

http_ip = "10.1.149.27"