- Name: Ubuntu Mirror
- Path: http://archive.ubuntu.com/ubuntu
- Operating System Family: Debian
- Name: Ubuntu22
- Major version: 22.04
- Minor version: 3
- Description Ubuntu 22.04
- Family: Debian
- Release Name: jammy
- Architectures: x86_64
- Name: cloud-init LVM
- Operating System Family: Debian
- Association > Ubuntu22
- Content: ubuntu22.ptable
- NOTE: only works for nvme disk. For sata replace 'nvme0n1' with 'sda'
- Name: Ubuntu22 cloud-init
- Type: Provisioning template
- Association > Ubuntu22
- Content: ubuntu22.cloud-init
- Name: Ubuntu22 cloud-init
- Type: Provisioning template
- Association > Ubuntu22
- Content: ubuntu22.grub2
- Change content inside <> to match your setup
Download Ubuntu ISO and extract kernel and initrd
wget https://releases.ubuntu.com/22.04.3/ubuntu-22.04.3-live-server-amd64.iso
mkdir /mnt/ubuntu
mkdir /var/lib/tftpboot/boot/ubuntu22
mount ubuntu-22.04.3-live-server-amd64.iso /mnt/ubuntu
cp /mnt/ubuntu22/casper/vmlinuz /var/lib/tftpboot/boot/ubuntu22/
cp /mnt/ubuntu22/casper/initrd /var/lib/tftpboot/boot/ubuntu22/
In my case I have different Operating Systems to provision with Foreman, for that I have a virtual machine with the intallation ISO's.
dnf install -y httpd
systemctl enable --now httpd
mkdir -p /var/www/html/pub/ubuntu22
cp ubuntu-22.04.3-live-server-amd64.iso /var/www/html/pub/ubuntu22/