-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 22.04 bento virtual box build fails when curtin errors out (despite netplan fix) #1564
Comments
what version of packer and virtualbox are you running? Currently this is building fine on github hosted runners wich is running ubuntu 22.04 and latest packer/virtualbox versions https://github.com/chef/bento/actions/runs/8622371120/job/23633406501 |
I have Packer v1.10.2 and VirtualBox version 7.0.12 r159484. Let me upgrade to 7.0.14 and see what happens. |
I had this same issue in building for qemu. I edited
I get past the initial netplan provisioning, but some networking features don't work post reboot and the provision fails as the VM can't resolve DNS for EDIT: Got it working in the end by removing the netplan fix instead, image built without issues in the end and also worked without issues after importing it into vagrant, provisioning the VM and using it as normal. |
Confirming that removing
from Tested on Packer 1.9.4 Parallels Version 19.3.1 (54941) |
unfortunately removing that line causes other issues for bringing up multiple ubuntu boxes and them getting the same IP address. This netplan line is supposed to fix that. |
hopefully this is fixed now in #1572. feel free to reopen this issue if you find that it still has an issue. |
Version
ubuntu-22.04-x86_64
Environment
The host OS is Ubuntu also.
Scenario
I am using Bento to build an Ubuntu 22.04 box with virtualbox as a provider.
Steps to Reproduce
bento build --only virtualbox-iso.vm --gui os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl
Expected Result
The build should finish normally.
Actual Result
Instead, I get the following curtin error:
I already fixed my user-data file with the netplan fix, so that's not the issue:
The text was updated successfully, but these errors were encountered: