Closed karcaw closed 7 months ago
Looks like a crash on the console.
I poked around in the shell and found that the DNS config is not getting copied in into the /tmp/tmpXXXX/mount directories, such that chrooting in there and running apt-get is failing.
did you build and install the latest version of bento?
I have bento 3.0.0, running it directly out of the repository. is there a newer version?
trying bento 4.0.2 now
yes it's up to bento 4.0.2 now. If you checkout main and run gem build bento.gemspec
then gem install bento-4.0.2.gem
that'll install it. There is also a version command now bento version
to verify version installed.
The install has the same issue. There just seems to be no DNS config in the chroots under /tmp/tmp*/mount. any idea what part of the installer is supposed to put something there?
it seems there are resolv.conf files, but they point at a stub version, and not a useful one, as it is empty
the command you posted shows trying to run it for vitrualbox-iso.vm only but the output says it's running for qemu.vm? When I run the command you posted for virtualbox everything works as expected. libvirt or qemu are still experimental and may still need extra work to get them working for many OS's.
doh.. I'm having the same issue with both of them, I can get you a log from the VirtualBox one as well... the console logs look a little different now that i have installed the new bento:
build log would help
This Build log? ubuntu.build.log
I'm not sure what's going on there. It works on my intel mac mini and on Ubuntu 22.04 github actions machine. https://github.com/chef/bento/actions/runs/8540903336/job/23399029339
what version of virtualbox is on that machine?
vbox: 7.0.14 vagrant: 2.4.1 packer: 1.10.2
Ok, I've moved over to a Rocky9 based system to attempt building on, with a fresh git checkout. Seems to be failing in a different place now. Looks like it time related:
2024-04-03T09:02:02-07:00: ==> virtualbox-iso.vm: E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 6h 21min 11s). Updates for this repository will not be applied.
So it may just be something about my host box, or VirtualBox config that is causing the timeout
sounds like it. I'm going to close this issue then.
Version
bento main/292fdc63dafc8244a792221960273ec921daa4e7 Packer v1.10.2
Environment
Ubuntu 22.04
Scenario
Build the ubuntu20.04 bento box
Steps to Reproduce
bin/bento build -o virtualbox-iso.vm os_pkrvars/ubuntu/ubuntu-20.04-x86_64.pkrvars.hcl
Expected Result
A built .box in the builds directory
Actual Result