Skip to content
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

Add Ubuntu 24.04 LTS #1567

Closed
fsimonis opened this issue Apr 26, 2024 · 6 comments
Closed

Add Ubuntu 24.04 LTS #1567

fsimonis opened this issue Apr 26, 2024 · 6 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@fsimonis
Copy link

fsimonis commented Apr 26, 2024

Describe the Enhancement

Add support for creating boxes for Ubuntu 24.04 LTS.

Describe the Need

Newest release

Current Alternative

Latest supported release is 23.10

Can We Help You Implement This

I did some initial work on my fork:
I added the necessary os_pkrvars for Ubuntu 24.04 LTS (noble). The boot command seems to work fine.

Currently, autoinstall fails during the following late_command because /target/etc/netplan/ is empty:

- 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'

Removing the command results in a successful build.

Testing

I tested the build using qemu:

bundle exec bento build --cpus 20 --only qemu.vm --mem 4000 --gui os_pkrvars/ubuntu/ubuntu-24.04-x86_64.pkrvars.hcl

I was able to run the libvirt and the qemu version, login, and access the network:

$ cd builds
$ vagrant init ./ubuntu-24.04-x86_64.libvirt.box
$ vagrant up --provider=libvirt
$ vagrant ssh
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Fri Apr 26 11:53:13 AM UTC 2024

  System load:  0.8                Processes:             111
  Usage of /:   16.1% of 30.34GB   Users logged in:       0
  Memory usage: 38%                IPv4 address for eth0: 192.168.121.117
  Swap usage:   0%


This system is built by the Bento project by Chef Software
More information can be found at https://github.com/chef/bento
vagrant@vagrant:~$ sudo apt install binutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  binutils-common binutils-x86-64-linux-gnu libbinutils libctf-nobfd0 libctf0 libgprofng0 libsframe1
Suggested packages:
  binutils-doc gprofng-gui
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu libbinutils libctf-nobfd0 libctf0 libgprofng0 libsframe1
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,356 kB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Testing this on noble is a bit tricky as vagrant doesn't provide packages for noble yet and the virtualbox-dkms package for noble doesn't support the kernel.

@fsimonis fsimonis added the Status: Untriaged An issue that has yet to be triaged. label Apr 26, 2024
@Stromweld
Copy link
Collaborator

Stromweld commented Apr 26, 2024

I just released an update now that fixes the late-command. I tested and built new Ubuntu 24.04 boxes and uploaded them to vagrant cloud.

@fsimonis
Copy link
Author

@Stromweld could you please also upload a libvirt box? 🙏

@Stromweld
Copy link
Collaborator

I just pushed libvirt builds for x86_64 if you want to give them a try.

@fsimonis
Copy link
Author

Works fine! Thanks a lot!

@darensipes
Copy link

Would it be possible to also get arm64 versions also pushed out to vagrant cloud?

@Stromweld
Copy link
Collaborator

There are https://app.vagrantup.com/bento/boxes/ubuntu-24.04. You need to use vagrant 2.4.0+ to use the new arch setting. It defaults to the cpu arch of the workstation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants