Make create_vm work on all OS versions in use #653

Merged
raucao merged 2 commits from bugfix/create_vm into master 2026-07-24 17:14:45 +00:00
Owner

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:

  • draco (20.04)
  • fornax (20.04)
  • her (22.04)
  • leo (24.04)
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: * [x] draco (20.04) * [x] fornax (20.04) * [x] her (22.04) * [x] leo (24.04)
raucao added the enhancementbugkredits-1ops labels 2026-07-24 13:26:11 +00:00
raucao added 1 commit 2026-07-24 13:26:12 +00:00
Makes it work with the same cloudinit code on Ubuntu 20.04 by mounting
it from a custom ISO as CD-ROM
raucao marked the pull request as work in progress 2026-07-24 13:26:21 +00:00
raucao added 1 commit 2026-07-24 13:27:35 +00:00
raucao marked the pull request as ready for review 2026-07-24 14:31:30 +00:00
greg requested changes 2026-07-24 16:08:53 +00:00
Dismissed
greg left a comment
Owner

I asked a question about the create_vm template

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 -%>
Owner

I wonder if it wouldn't be better to avoid duplicating all these arguments, only add --osinfo and --cloud-init on modern Ubuntu and add a conditional cloud-localds command before it for legacy? Other than that looks good to me

I wonder if it wouldn't be better to avoid duplicating all these arguments, only add `--osinfo` and `--cloud-init` on modern Ubuntu and add a conditional `cloud-localds` command before it for legacy? Other than that looks good to me
Author
Owner

I like the clarity of having explicit commands there. Also, they're slightly different arguments.

I like the clarity of having explicit commands there. Also, they're slightly different arguments.
greg marked this conversation as resolved
greg approved these changes 2026-07-24 16:49:44 +00:00
greg left a comment
Owner

👍

👍
raucao merged commit d9a59e064e into master 2026-07-24 17:14:45 +00:00
raucao deleted branch bugfix/create_vm 2026-07-24 17:14:45 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#653