Make create_vm work on all OS versions in use #653
Reference in New Issue
Block a user
Delete Branch "bugfix/create_vm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes it work with the same cloudinit code on Ubuntu 20.04 by mounting it from a custom ISO as CD-ROM.
Tested/running on:
I asked a question about the create_vm template
@@ -83,3 +84,30 @@ virt-install \--autostart \--import \--cloud-init root-password-generate=off,disable=on,meta-data=$CIDATA_PATH/meta-data,user-data=$CIDATA_PATH/user-data<% else -%>I wonder if it wouldn't be better to avoid duplicating all these arguments, only add
--osinfoand--cloud-initon modern Ubuntu and add a conditionalcloud-localdscommand before it for legacy? Other than that looks good to meI like the clarity of having explicit commands there. Also, they're slightly different arguments.
👍