DHCP Problem while generating an image on ESXi

15 views
Skip to first unread message

Thorsten Baumeister

unread,
Sep 2, 2019, 11:58:34 AM9/2/19
to Packer
Hi,
I use packer 1.4.3 on Unbuntu 16.04 to build an Ubuntu 18.05 VM on an ESXi-Server 6.0.0. 
The "vmware-iso" builder manages to create, register and boot the VM and it starts the installation. I can follow the steps at the console of the vSphere Client. 
After the DHCP-query the installation stalls: the last output the Ubuntu installer generates is the success statement of the DHCP-query. After that the text vanishes and nothing else happens until the time limit is reached and the builder destroys the VM.
If I interrupt the network configuration via DHCP (by clicking "Cancel" in the installer) and fill in the network parameters by hand, everything works fine. The builder generates the machine and it get's exported.
Has anyone a tip for me?

Regards,
Thorsten

Rickard von Essen

unread,
Sep 2, 2019, 1:52:24 PM9/2/19
to packe...@googlegroups.com
What's the exact output when you say there is a successful dhcp message?

If you log into the ESXi, in the excli is the machine listed in:
network ip interface list

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a617b2c1-9077-4119-83b7-3b574697f04f%40googlegroups.com.

Thorsten Baumeister

unread,
Sep 3, 2019, 5:04:34 AM9/3/19
to Packer
The Ubuntu Installer prints: "Network autoconfiguration has succeeded".

The command 'esxcli network ip interface list' just lists the network interace of the server, but if I do a 'esxcli vm process list', the machine gets listed between all the others VMs running on the server.
xxxx-ubuntu-18.04
   World ID: 27543498
   Process ID: 0
   VMX Cartel ID: 27543497
   UUID: 56 4d a2 2c 40 4e 41 08-7d 3c 34 86 57 dc fa 9b
   Display Name: xxxx-ubuntu-18.04
   Config File: /vmfs/volumes/59c0ffa0-c794a290-37b2-001cc4972452/xxxx-ubuntu-18.04/xxxx-ubuntu-18.04.vmx

The problem exists regardless using a E1000 or a VMXNET3 NIC.


Am Montag, 2. September 2019 19:52:24 UTC+2 schrieb Rickard von Essen:
What's the exact output when you say there is a successful dhcp message?

If you log into the ESXi, in the excli is the machine listed in:
network ip interface list

On Mon, Sep 2, 2019, 17:58 Thorsten Baumeister <Thorsten_...@gmx.de> wrote:
Hi,
I use packer 1.4.3 on Unbuntu 16.04 to build an Ubuntu 18.05 VM on an ESXi-Server 6.0.0. 
The "vmware-iso" builder manages to create, register and boot the VM and it starts the installation. I can follow the steps at the console of the vSphere Client. 
After the DHCP-query the installation stalls: the last output the Ubuntu installer generates is the success statement of the DHCP-query. After that the text vanishes and nothing else happens until the time limit is reached and the builder destroys the VM.
If I interrupt the network configuration via DHCP (by clicking "Cancel" in the installer) and fill in the network parameters by hand, everything works fine. The builder generates the machine and it get's exported.
Has anyone a tip for me?

Regards,
Thorsten

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.

Rickard von Essen

unread,
Sep 4, 2019, 3:44:50 PM9/4/19
to packe...@googlegroups.com
Did you follow the instructions here?


With the excli command mentioned above you should get the IP of the VM if guestiohack have been enabled. 

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/addfa1b9-8404-4d39-ac7c-1975bfb2bce4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages