Thanks if you can give me any help, I’m doing a packer testing on local servers.
The Server Env:
10.56.224.174 (a vm where packer installed and executed)
10.56.224.153 (ESXi host)
10.56.224.187 (vm named as pakcer)
Both vms are resided on the host 10.56.224.153
I enabled the packer log (attached the log: packer_test.log)
If you are able to analysis the log, do you think what is the reason of the issue ?
The issue seems happened in this step :
“==> vmware-iso: Waiting for SSH to become available...
2015/08/07 08:13:59 packer-builder-vmware-iso: 2015/08/07 08:13:59 starting remote command: esxcli --formatter csv network vm list
2015/08/07 08:14:00 packer-builder-vmware-iso: 2015/08/07 08:14:00 remote command exited with '0': esxcli --formatter csv network vm list
2015/08/07 08:14:00 packer-builder-vmware-iso: 2015/08/07 08:14:00 [DEBUG] Error getting SSH address: EOF
2015/08/07 08:14:05 packer-builder-vmware-iso: 2015/08/07 08:14:05 opening new ssh session
2015/08/07 08:14:05 packer-builder-vmware-iso: 2015/08/07 08:14:05 starting remote command: esxcli --formatter csv network vm list
2015/08/07 08:14:05 packer-builder-vmware-iso: 2015/08/07 08:14:05 remote command exited with '0': esxcli --formatter csv network vm list
2015/08/07 08:14:05 packer-builder-vmware-iso: 2015/08/07 08:14:05 [DEBUG] Error getting SSH address: EOF
….. repeat this for a long time until CTRL+C
If I also checked the vm console to see what's going on, I can see the process is hang in error window "Unable to download kickstart file", also I can get attached screenshot (CTRL-F3) shows "Unable to activate eth0", I suppose this is the reason since no IP set on the node, and not able to download kickstart file.
By vSphere client, I can see there shows the network connection issue in Network Conenction on the right panel of the screenshot as attached (network_adapter)
PS: if anything not clear, feel free to let me know.
Thanks
Br,Edward
"floppy_files": [ "/home/kickstart/ks.cfg" ], .. "boot_command": "<tab> text ks=floppy <enter><wait>", "boot_wait": "5s"
--
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/eb3d11c5-7302-4162-8040-82f20e18a176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
network --onboot yes --device eth0 --bootproto static --ip 10.56.224.187 --netmask 255.255.255.0 --gateway 10.56.224.1 --noipv6 --
Couple of options.
a. ensure the device is what the vm have. Since RH7 they get funny names, not longer eth0
b. tell the installer on the boot, to not use funny names, and use old names.
I can't suggest A or B, but I can share how you can do A or B and you make your way.
For A:
Update ks.cfg to use a device like:
--device=p2p1
For B:
Update template to include this in the boot line:net.ifnames=0 biosdevname=0
And update the kickstart to replace:
From:bootloader --location=mbr
To:
bootloader --location=mbr --boot-drive=sda --append="net.ifnames=0 biosdevname=0"
Any issue, let me know.
ThanksAlvaro.To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a3bc6c60-5069-4feb-b989-3466b1aad9b8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/022063db-ea1c-4dac-90bf-ef9a7a4f4b9d%40googlegroups.com.