Replies: 1 comment
-
Converted to a discussion under help until verified as a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code of Conduct
Project Version
develop
VMware vSphere
7.0.3
HashiCorp Packer
1.11.2
HashiCorp Packer Plugin for VMware vSphere
1.4.2
Guest Operating System
Ubuntu Server 24.04.1 LTS
Environment Details
My client side is;
A macos with 15.0.1.
A vscode terminal.
Packer is installed by brew.
Description
static IP address settings applied in network.pkrvars.hcl
When creating an Ubuntu 24.04 image from ubuntu-24.04.1-live-server-amd64.iso ISO file, packer wait for the IP from WMware.
VMware set up the correct IP which is written in the network.pkrvars.hcl file but packer gets a DHCP related new IP.
Because of this difference SSH connection can not make to newly created vm.
Expected Behavior
In network.pkrvars.hcl file...
// VM Network Settings (default DHCP) vm_ip_address = "192.168.12.171" vm_ip_netmask = 24 vm_ip_gateway = "192.168.12.2" vm_dns_list = [ "192.168.10.100" ]
Packer must get the correct IP 192.168.12.171 and connect with SSH to the server.
Actual Behavior
Steps to Reproduce
Every run of build.sh is resulted the same.
The only difference is the wrong IP captured from vmware is lowering one by one.
192.168.12.236
192.168.12.235
192.168.12.234
Log Fragments and Files
network.pkrvars.hcl file
// VM Network Settings (default DHCP) vm_ip_address = "192.168.12.171" vm_ip_netmask = 24 vm_ip_gateway = "192.168.12.2" vm_dns_list = [ "192.168.10.100" ]
Screenshots
VMware gives the correct IP 192.168.12.171
PACKER_LOG=1 log output is like
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions