[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which tool should I use to customize a vm ?



> Is there a reason to prefer packer instead of fai  for this second customization process.
The primary reason is the ease of post processing the image, to clean it up before uploading it to OpenStack Glance.
I do it this way because of the requirements from my stakeholders needing images setup a specific way, as close to upstream operating system default minimal installations.

Being totally honest, I have yet to fully look into fai to see if it is a potential replacement that I can use.

I originally started with custom python scripts that wrapped the hypervisor CLIs.

-Brian

On Mon, May 30, 2022, 9:36 AM PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:
Hello Brian

> If you are starting from scratch there are two ways to go:
> 1.) Start with the Cloud images available here:
> https://cloud.debian.org/images/cloud/
> Spin up a VM in openstack, make your needed modifications, then create an
> image of that VM.

not interesting for me since I need to script all the process.

>
> 2.) Start fresh with the Debian ISO and use hashicorp packer to preseed a
> VM with the qemu plugin.  This will allow you to script out creation of the
> image, allow for post processing of the vm through SSH and then you can
> pass the output image through qemu-img to convert it to the image format
> you need to upload to Openstack Glance.

You speaks about packer, but the initial cloud images are generated with fai.
Is there a reason to prefer packer instead of fai  for this second customization process.

this is realy a naiv question, do not suppose a bad faith from my part.

thanks

Frederic

Reply to: