You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be based on the guide from the Zos repo, which was written for Ubuntu 22.04. In Ubuntu 24.04 installing the extra modules package no longer triggers installation of the kernel itself. So that leaves us with no kernel.
extract-vmlinux ubuntu-noble/boot/vmlinuz | tee ubuntu-noble/boot/vmlinuz-6.8.0-31-generic.elf > /dev/null
The file ubuntu-noble/boot/vmlinuz doesn't exist, so the script gives an error, but the output file is created as an empty file anyway.
However, we don't need to manually decompress kernels anymore, so this code is extraneous.
Proposed fix
A nice way to address this, while also keeping our image pretty light, is to install the linux-virtual metapackage. This includes the latest available kernel and a minimal set of extras suitable for a virtualized environment. I've tested images based on this approach and they work well.
Using the metapackage also means that users can get kernel updates automatically with regular system updates, rather than being pinned to one version. Since Zos handles the compressed kernels without intervention now, there's no harm in letting apt update the kernel—and the kernel extraction code can be removed too.
I'll open a PR with the changes I suggest.
The text was updated successfully, but these errors were encountered:
I deployed the following flist via the full VM flow on the dashboard:
https://hub.grid.tf/tf-official-vms/ubuntu-24.04-full.flist
The machine boots and I can connect via SSH. But there are some clear signs this is actually a micro VM:
/boot/vmlinuz
onlyThe first problem in the build script is here:
tf-images/tfgrid3/ubuntu24.04/fullvm/ubuntu24-fullvm-flist-builder.sh
Line 34 in cfadb27
This appears to be based on the guide from the Zos repo, which was written for Ubuntu 22.04. In Ubuntu 24.04 installing the extra modules package no longer triggers installation of the kernel itself. So that leaves us with no kernel.
Then there's this line:
tf-images/tfgrid3/ubuntu24.04/fullvm/ubuntu24-fullvm-flist-builder.sh
Line 58 in cfadb27
The file
ubuntu-noble/boot/vmlinuz
doesn't exist, so the script gives an error, but the output file is created as an empty file anyway.However, we don't need to manually decompress kernels anymore, so this code is extraneous.
Proposed fix
A nice way to address this, while also keeping our image pretty light, is to install the
linux-virtual
metapackage. This includes the latest available kernel and a minimal set of extras suitable for a virtualized environment. I've tested images based on this approach and they work well.Using the metapackage also means that users can get kernel updates automatically with regular system updates, rather than being pinned to one version. Since Zos handles the compressed kernels without intervention now, there's no harm in letting
apt
update the kernel—and the kernel extraction code can be removed too.I'll open a PR with the changes I suggest.
The text was updated successfully, but these errors were encountered: