View Issue Details

IDProjectCategoryView StatusLast Update
0000065AlmaLinux-8-OTHERpublic2021-04-24 09:26
ReporterZnuff Assigned Tosfokin  
Status assignedResolutionopen 
Summary0000065: virt-sysprep created images do not run the --firstboot script
DescriptionAs per title, we usually create our own templates/images for deployment.

Normally we just install the OS minimally, then install the packages that we need, dump to an image to a file, then run `virt-sysprep -a file.img --firstboot`.

This works fine with CentOS 8, Ubuntu 20 and so on -- as expected, on first boot the script runs via the installed `guestfs-firstboot.service` without issues.

On AlmaLinux 8.3 the initial script doesn't run at all.

I'm not sure what prevents it from running. I've run `virt-sysprep -v` against both CentOS 8 and AlmaLinux 8.3, and the output is the same in regards to the `--firstboot` part.
Steps To Reproduce1. Install AlmaLinux as a guest in a VM
2. Dump it to an image file (ie: qemu-img convert -O raw /block/device almalinux.img)
3. Run virt-sysprep on it -- virt-sysprep -a almalinux.img --firstboot
4. Deploy the newly created image in your environment
5. Expect to run via the installed guestfs-firstboot.service
6. Script doesn't run on first boot
Additional Information
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-04-21 16:14 Znuff New Issue
2021-04-24 09:26 alukoshko Assigned To => sfokin
2021-04-24 09:26 alukoshko Status new => assigned