The reason why I am asking this question is because I am stuck. I am trying to create a custom Ubuntu Desktop image, and when this is done I want to constantly be able to update the image either through CI/CD or a cronjob. This image is supposed to be used as a VM template, but also for PXE boot.
I have been thinking about:
- Having a VM running a desktop image (e.g Ubuntu Desktop 18.04)
- Run a cronjob that updates the machine (security updates)
- Create an image of that VM using
dd if=/dev/sdX of=/home/user/customIso.iso, and then distribute this image.
What do the community think is an optimal way to administrate/update a client desktop image with the minimum human interactions needed.
Goal: Keep an up-to-date version of a client desktop image in an automated way.
Dream: Use Packer to create a custom Desktop image through unattended installation, and keeping the image up-to-date with the use of CI/CD pipeline.
(From what I understand from an earlier question (Unattended installation Ubuntu desktop) it is not possible with an automatic installation of a desktop image).
NOTE: The reason why it is important that everything is automated as much as possible is to reduce the risk of an image getting outdated, but also so I do not have to do it manually…