RFE: Optional `virt-customize` pre-step for appropriate cloud images before booting.
- Dominant language
- Go
- Stars
- 15.8k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
#### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
#### Description
A lot of pre-packaged cloud images in QCOW2 or AMI formats (not ISO) ship without SSH or credentials configured and require customization by the users before booting. It would be nice if we could include an optional pre-boot step for `virt-customize` commands to prepare the images with credentials or passwords before boot. This includes distros like CoreOS and/or Fedora/RHEL Atomic and also some of the Amazon Linux 2 releases.
Examples include setting up users offline before booting an image: http://smoogespace.blogspot.com/2022/02/how-to-install-centos-stream-9-cloud.html
#### Use Case(s)
This is largely helpful with the QEMU builder with `disk_image = false` where you can clone an image and skip the ISO install.
Note this step should happen after disk checksum verification and clone but before boot. It should not write or modify the image cache.
#### Potential configuration
```
virt-customize = [
"--ssh-inject root:file:/home/ssmoogen/.ssh/id_ecdsa.pub",
"--root-password random"
]
```
#### Potential References
Contributor guide
Assessment
This issue has not been assessed yet.