-
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
Kernel panic in bento/ubuntu-22.04 for libvirt #1558
Comments
Did you try increasing the memory allocated to the VM? It looks like 512M is not enough for Ubuntu 22.04? |
also have this problem, with enough resource: Specs = [
{ "name" => "meta" , "ip" => "10.10.10.10" , "cpu" => "20" , "mem" => "40960" , "image" => "bento/ubuntu-22.04" },
{ "name" => "node-1" , "ip" => "10.10.10.11" , "cpu" => "10" , "mem" => "20480" , "image" => "bento/ubuntu-22.04" },
{ "name" => "node-2" , "ip" => "10.10.10.12" , "cpu" => "10" , "mem" => "20480" , "image" => "bento/ubuntu-22.04" },
{ "name" => "node-3" , "ip" => "10.10.10.13" , "cpu" => "10" , "mem" => "20480" , "image" => "bento/ubuntu-22.04" },
] And hang at "Waiting for domain to get an IP addresses" for a long time
|
This is probably not the same problem actually.. the libvirt image got busted with the latest release.. reported already as #1604. You can pin back your box image to 202309.08.0 and it should boot fine with enough resources. vm.box_version = 202309.08.0 |
Thanks, looks like it:
Can the box be configured with an appropriate default? |
I wish I knew how.. from what I've read there is a Vagrantfile that is generated with This project used to be a lot more straightforward with specific .json files for each build but now it's all gone into ruby and it seems like all the packer files are being dynamically generated.. I don't have time to figure it out nor does there seem to be any CI logs published so I guess they are internal to Progress on a private Github instance maybe?.. possibly just built locally by the current maintainer?.. anyhow there isn't even tags in this repository representing the builds since 2023 so I really think this whole project is likely becoming stale sadly. |
The project has always been a ruby project, but the bento ruby gem is simply a wrapper for packer to loop through all the OS configs and build images for each OS type/version. Packer deprecated the .json config files in favor of their more universal HCL2 language and all the templates in the $BENTO_DIR/packer_templates and in $BENTO_DIR/os_pkrvars folders have been upgraded to hcl2 standards now. Everything is public here, this repo is using Github Actions CI system. We don't have any internal CI system for this project. But due to limitations the CI system is still a work in progess. In the past all the releases have been built locally on mine or my predecessors mac systems and uploaded. Past maintainers have left the company and I'm the only maintainer now for past 2 years doing it on the side when I have extra time or on my off time. In 2023 I stopped releasing based on dated versions. The decision to switch to semantic versioning was for the bento gem itself as it better communicates changes. This project should of really been 2 separate repos. 1 for the packer templates and 1 for the bento app itself. The boxes are still published based on dated versioning scheme as that best communicates to users age of the image in use and sets an expected patch level based on date of release. We strive for out of box support for parallels, vmware-fusion/workstation, virtualbox for arm64 and x86_64. Libvirt, qemu, hyper-v have always been best effort I'm happy to review PR submissions to fix issues you find and can help contribute fixes for. qemu i've found to be a bit more tricky due to the lack of knowledge on my part and it's plethora of configuration options for a system. Especially for EFI based systems it seems to be even harder due to packaging and file location differences in macs and linux distros for the efi var files. |
@Stromweld it's much appreciated the effort you are able to put in.. having only one maintainer on an open source project also presents significant risks to it's long term existence, I guess that's a budget thing or lack of interest / expertise in the community? But this is what has happened with the "roboxes" stream of images.. the single maintainer seems to have just gone AWOL and stopped responding to the community.. It seems like vagrant ecosystem is stale in general no idea what IBM has in store for it.. maybe it's partially due to Kubernetes eating the DevOps world.. but please know that there are still plenty of use cases for these images and it would be really nice to get it setup to be maintainable long term. To close off this issue we need to increase it because the 512MB default is non functional in some OS's.. I've seen some previous commits in this project increasing the build instances to 1024+.. but this doesn't seem to persist with libvirt images. Vagrant itself sets the default to 2048 but only for 3 of the providers: The libvirt plugin is still using 512MB which is where I believe these boxes are getting their config from. One way to fix this would be to use the |
Version
Environment
Scenario
Run an Ubuntu LTS release in Vagrant
Steps to Reproduce
Expected Result
Provisioned Vagrant machine
Actual Result
Kernel panic at boot:
The text was updated successfully, but these errors were encountered: