Cobbler
Latest cobbler does not have a functional (web) ui. So all interaction goes via the commandline tool cobbler
Import first distro
LXC/LXD does not allow mounting loop devices. So iso files need to be unpacked on hitchcock.
root@hitchcock# cd /var/lib/pve/local-btrfs/images/112/subvol-112-disk-0.subvol/srv/iso root@hitchcock# wget https://mintlinux.mirror.wearetriple.com/iso/stable/20.3/linuxmint-20.3-cinnamon-64bit.iso root@hitchcock# mount linuxmint-20.3-cinnamon-64bit.iso /mnt/loop0 root@hitchcock# mkdir linuxmint-20.3-cinnamon-64bit root@hitchcock# cd linuxmint-20.3-cinnamon-64bit root@hitchcock# tar -C /mnt/loop0 -cf - . | tar -xvf -
Then on the cobbler container the actual import can be done
root@cobbler# cobbler import --arch x86_64 --breed ubuntu --os-version focal --path /srv/iso/linuxmint-20.3-cinnamon-64bit --name mint-20.3-x86_64 root@cobbler# cobbler distro rename --name mint-20.3-casper-x86_64 --newname mint-20.3-x86_64 root@cobbler# cobbler profile rename --name mint-20.3-casper-x86_64 --newname mint-20.3-x86_64 root@cobbler# cobbler profile edit --name mint-20.3-x86_64 --autoinstall=mint-desktop.seed root@cobbler# cobbler sync
Cobbler install on ubuntu
clone https://github.com/noharm/cobbler.git dpkg-buildpackage install cobbler pip install django==1.6
Ubuntu 22.04 auto install
https://www.molnar-peter.hu/en/ubuntu-jammy-netinstall-pxe.html
A ubiquity preseed file has been ``/var/lib/cobbler/templates/mint-desktop.seed`` The iso named after the distro file needs to be stored at webroot.
/images vs /images/dev
On image creation, /images/dev is mounted. Upon completion, images are moved to /images via ftp. During deployment /images is mounted. For that reason, postdownloadscripts
resides in /images, while postinitscripts
must reside in /images/dev.
Backlinks: