-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Ubuntu 20.04.3 - Build with hcl #11275
Comments
Seems that I might have similar issue. The network seems to not bring up. Then Packer is waiting for ssh and after few minutes timeouts. |
@talheim-it Hi, I dont know which hypervisor you are using but i have two perfecetly tested and working buils for both proxmox and vsphere here: https://github.com/it-pappa Try adding |
@it-pappa what image did you use? since ubuntu is only using live images it is a bit hard. I am primarly using libvirt/kvm. |
@talheim-it Im using this: https://releases.ubuntu.com/focal/ubuntu-20.04.3-live-server-amd64.iso Check my Ubuntu Packer repo and take a look at the start of my http file. Stop ssh server since i think Ubuntu will use the ssh for itself while installing. I will update my repo today so it works better with Terraform/Vagrant. But to get it to work you need to stop the ssh server like you see in my http file. |
@it-pappa thanks I am already building, just checked that I have increase the ssh_timeout. Keep you updated. |
@talheim-it I would remove: |
👋 it looks like this issue has been resolved and may have been a combination for network and ssh timeout changes to get it working. But it is not clear. Is there anything that needs to change in Packer to or the Vagrant plugin to make this easier to work with? |
Hi there 👋 , I'm going to close this issue since there hasn't been any updates to it. But if you are still running into issues please feel free to leave a comment on the issue and we will gladly reopen. |
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. |
Hello Community!
I tried to create a new Ubuntu20.04.3 box by myself. The builder runs completely through without issues what I can see.
But when I am adding it to vagrant, it is not coming up, no ssh connection can be established. I guess I did anything wrong in the packer build so I wanted to share it first before digging into vagrant, since the build for CentOS, Fedora, AlmaLinux, RockyLinux worked.
Build with:
Fedora 34 Workstation
Packer v1.7.5
ubuntu2004.pkr.hcl:
File: variables.pkr.hcl:
File: http/user-data:
The text was updated successfully, but these errors were encountered: