-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] v21.09.x Ubuntu Server 20.04 IP changes after reboot causing failures #56
Comments
v21.09 release or a clone of today's Ryan |
If you're not a clone, can you test with Ryan |
Hi there, The lock issue I had was with version 21.08. It was weird that it worked fine for while and suddenly breaks. The IP change issue I had was with the latest version 21.09.1 main |
Thanks for the update. It seems that these would be two separate issues and should be tracked separately. With regards to "v21.09.1 Apologies, I'm trying to determine where on the commit timeline to investigate when time permits. Ryan |
Also, there's a recent commit (#53) in Ryan |
I did I couldn't verify the locking issue still exists in ver21.09.1 because IP changes after reboot |
If you perform a Could you please download v21.09.01 from Releases and let me know if you experience the same issue. Ryan |
I can confirm that I'm seeing a similar issue in In v21.09.x it seems to have an issue after installing the desired packages. Ryan |
FYI, one thing I was thinking while troubleshooting: At the beginning , I thought it was my DHCP issue, because I setup DHCP IP expires in 30 mins, for testing purpose I only have a range of 20 IPs for DHCP. So I changed the expire setting to 3 days and the issue still the same. |
Addressed in #61 for You can patch v21.09.x with the following in The locking issue should also be resolved with this change.
Ryan |
Thanks, I see the only change is ens192 to ens33 |
Thanks, waiting for the next release. :) |
Just off the topic, can we have an option to choose where the templates stay? currently it goes to "content lib" , can it just stay in the "template" folder? Thx |
While the intent for this project was adjacent to my work as an architect on the VMware Validated Designs and VMware Validated Solutions and use with vRealize Automation's integration with the content library, this enhancement was added and approved in #44. You'd modify
You can always discuss in the GitHub Discussions. Ryan |
OK, confirmed, all working fine. Nice work!! `==> Wait completed after 8 minutes 7 seconds ==> Builds finished. The artifacts of successful builds are: |
Excellent! Thanks for testing! |
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. |
Code of Conduct
VMware vSphere
7.0.2
HashiCorp Packer
1.7.4
HashiCorp Packer Plugin for VMware vSphere
1.0.1
Guest Operating System
Ubuntu 20.04
Environment Details
Building ubunto 20.04 image
vSphere 7.0.2
Packer 1.7.4
Terraform 1.0.7
Remote PC: Win10
Everything is in the same subnet: 172.16.2.x including: DNS, DHCP, vCetner, ESXI & Win10PC
Description
The previous release worked fine till today. I built images 20 days ago, but failed today, nothing changed....It failed at below
So I downloaded the new release to try it out. the issue is DHCP IP address changes after server reboot.
==> vsphere-iso.linux-ubuntu-server: HTTP server is working at http://172.16.2.200:8078/ ==> vsphere-iso.linux-ubuntu-server: Typing boot command... ==> vsphere-iso.linux-ubuntu-server: Waiting for IP... ==> vsphere-iso.linux-ubuntu-server: IP address: 172.16.2.249 ==> vsphere-iso.linux-ubuntu-server: Using SSH communicator to connect: 172.16.2.249 ==> vsphere-iso.linux-ubuntu-server: Waiting for SSH to become available...
First I got an IP 172.16.2.249, then waiting for SSH to connect, there was no response after a long time waiting, so I logged in and checked the IP, turned out the server got a different IP address.
172.16.2.250
I tired 3 times, all the same issue.
Expected Behavior
Expected behavior:
Stay with the same IP
Actual Behavior
Server got a different IP after reboot
Steps to Reproduce
I only changed the vcenter variables in the code, everything else remained the same.
Log Fragments and Files
==> vsphere-iso.linux-ubuntu-server: Creating VM...
==> vsphere-iso.linux-ubuntu-server: Customizing hardware...
==> vsphere-iso.linux-ubuntu-server: Adding SATA controller...
==> vsphere-iso.linux-ubuntu-server: Mounting ISO images...
==> vsphere-iso.linux-ubuntu-server: Adding configuration parameters...
==> vsphere-iso.linux-ubuntu-server: Starting HTTP server on port 8078
==> vsphere-iso.linux-ubuntu-server: Set boot order...
==> vsphere-iso.linux-ubuntu-server: Power on VM...
==> vsphere-iso.linux-ubuntu-server: Waiting 5s for boot...
==> vsphere-iso.linux-ubuntu-server: HTTP server is working at http://172.16.2.200:8078/
==> vsphere-iso.linux-ubuntu-server: Typing boot command...
==> vsphere-iso.linux-ubuntu-server: Waiting for IP...
==> vsphere-iso.linux-ubuntu-server: IP address: 172.16.2.249
==> vsphere-iso.linux-ubuntu-server: Using SSH communicator to connect: 172.16.2.249
==> vsphere-iso.linux-ubuntu-server: Waiting for SSH to become available...
==> vsphere-iso.linux-ubuntu-server: Timeout waiting for SSH.
==> vsphere-iso.linux-ubuntu-server: Power off VM...
==> vsphere-iso.linux-ubuntu-server: Destroying VM...
Build 'vsphere-iso.linux-ubuntu-server' errored after 31 minutes 12 seconds: Timeout waiting for SSH.
==> Wait completed after 31 minutes 12 seconds
==> Some builds didn't complete successfully and had errors:
--> vsphere-iso.linux-ubuntu-server: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
Done.
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: