Closed igor58-repo closed 5 years ago
Hello, Have you enabled the following option ? esxcli system settings advanced set -o /Net/GuestIPHack -i 1
Please supply the information requested in the issue template:
This is most likely you guests network not properly starting. Access the VM's console and troubleshoot the network.
Added gitst.github with jason-files https://gist.github.com/ArchontPnz/1dafccfd00ae75acc701044a8f8a0349
And pressed.cfg
And what do your VM's console show?
The guest VM's console.
The guest VM builds normally and remains workable. But because of the error "Error getting SSH address: No interface on the VM has an IP address ready ...." the packer-provision does not work after build the VM.
I made a comment earlier that this might be related to the insecurehostkey issue, but this is the wrong version of packer for that.
ESXi never detects an IP for the guest. This is clearly a config error.
You mean the ESXi-config?
Your packer template and preseed.cfg doesn't result in that the VM brings up it's NIC. If you access the guests console (VNC or VMware Remote Console) and check where it's stopping or trouble shoot the network from the guest side you will probably find the problem.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I'm using a ESXi 6.0 host for testing packer and I've been trying to get the vmware-iso remote ESXi builder to work. With packer 1.0. I get to the point where packer tries to retrieve the guest IP with "esxcli --formatter csv network vm port list -w #######" but errors out saying it cannot find the ip.
Packer log: