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

Ubuntu 22 & 24 image #237

Closed
Tracked by #227
PeterNashaat opened this issue May 9, 2024 · 3 comments
Closed
Tracked by #227

Ubuntu 22 & 24 image #237

PeterNashaat opened this issue May 9, 2024 · 3 comments

Comments

@PeterNashaat
Copy link
Member

PeterNashaat commented May 9, 2024

FullVM flist required for both ubuntu 22 and 24.04

@PeterNashaat
Copy link
Member Author

  • Ubuntu 22 flist created and tested
    image

  • Using

mkdir ubuntu-jammy
sudo debootstrap jammy ubuntu-jammy  http://archive.ubuntu.com/ubuntu
arch-chroot ubuntu-jammy/

export PATH=/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin:/bin
rm /etc/resolv.conf
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
apt-get update
apt-get install cloud-init openssh-server curl initramfs-tools -y
cloud-init clean
apt-get install linux-modules-extra-5.15.0-25-generic -y
echo 'fs-virtiofs' >> /etc/initramfs-tools/modules
update-initramfs -c -k all
apt-get clean

rm -rf ubuntu-jammy/dev/*

#extracting kernel 
sudo ./extract-vmlinux ubuntu-jammy/boot/vmlinuz | sudo tee ubuntu-jammy/boot/vmlinuz-5.15.0-25-generic.elf > /dev/null
sudo mv ubuntu-jammy/boot/vmlinuz-5.15.0-25-generic.elf ubuntu-jammy/boot/vmlinuz-5.15.0-25-generic

tar -czf ubuntu-jammy.tar.gz -C  ubuntu-jammy .

@PeterNashaat
Copy link
Member Author

PeterNashaat commented May 9, 2024

image
  • Using
mkdir ubuntu-noble
debootstrap noble ubuntu-noble http://archive.ubuntu.com/ubuntu
arch-chroot ubuntu-noble/

# Configure the environment within the chroot
export PATH=/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin:/bin
rm /etc/resolv.conf
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
apt-get update
apt-get install cloud-init openssh-server curl initramfs-tools -y
cloud-init clean
apt-get install linux-modules-extra-6.8.0-31-generic
echo 'fs-virtiofs' >> /etc/initramfs-tools/modules
update-initramfs -c -k all
apt-get clean
# Unmount and cleanup
rm -rf ubuntu-noble/dev/*

# extracting kernel 
sudo ./extract-vmlinux ubuntu-noble/boot/vmlinuz | sudo tee ubuntu-noble/boot/vmlinuz-5.15.0-25-generic.elf > /dev/null
# then replace original kernel
sudo mv ubuntu-noble/boot/vmlinuz-5.15.0-25-generic.elf ubuntu-noble/boot/vmlinuz-5.15.0-25-generic

tar -czf ubuntu-noble.tar.gz -C  ubuntu-noble .

@PeterNashaat
Copy link
Member Author

PeterNashaat commented May 14, 2024

  • Created a PR with updated ubuntu 22 and 24.04 full vm flists.
    • Updated flists directories with 2 sub directories Fullvm and microvm
    • Added automation script which automates the setup, configuration, archiving, and uploading of an Ubuntu system ready for use as an FLIST.
    • Testing Full vms for now is done through Terrafrom
    • Added readme.md file for Automated, Manual and Testing process

Flists links
https://hub.grid.tf/petep.3bot/ubuntu-22.04_fullvm.flist.md
https://hub.grid.tf/petep.3bot/ubuntu-24.04_fullvm.flist.md

Tested both

image image

@PeterNashaat PeterNashaat mentioned this issue May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant