mounting cloud-init seed.iso #6201
Replies: 6 comments 1 reply
-
I have the same issue, but with Debian bullseye. The cloud init configuration is valid, because it does configure a vm on my proxmox server just fine. Any hints on how to debug this issue would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
TL;DR: try using a virtio drive, readonly and nonremovable, and importing the ISO. Make sure to set the 'Image Type' for the device to 'CD/DVD (ISO) Image'. I experienced the same issue with Ubuntu 20.04, 22.04, and 24.04. I was able to get cloud-init to see my seed iso by:
The only things remotely helpful for debugging was confirmation that my seed iso indeed worked by launching it with plain-old cli qemu. I also removed the 'Display' device and instead attached a serial device, which allowed me to scroll back and see the output of cfn-init after it ran. When using virtio for the seed image, the ISO is apparently converted to the qcow2 format, but the process works. Edit: This is on a MacBook Air M2, using Ubuntu LTS cloud images (20, 22, 24), UTM v 4.4.5. |
Beta Was this translation helpful? Give feedback.
-
I am facing this issue as well (with Amazon Linux 2023). I removed the Display device and attached a serial device, but no matter what I do with the |
Beta Was this translation helpful? Give feedback.
-
I got it working with this config: In
In
AL2023 ships with cloud-init 22.2.2 so make sure to read the right version of docs. Also, cloud-init only runs on the first boot, so every time you make a change to seed.iso, make sure to remove both the drives and reattach them. |
Beta Was this translation helpful? Give feedback.
-
Alternatively, if your VM has a NIC, you can use the nocloud-net data source by adding a QEMU argument. |
Beta Was this translation helpful? Give feedback.
-
I found even easier way to use cloud-init in UTM by following this guide.
When Voilà! Cloud-init will be triggered after booting up the machine. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to run Amazon Linux 2 on UTM on my MacBook Pro (M1 Pro Max, Ventura 13.6.2, UTM 4.4.5) AWS Linux 2 credentials are added to a new machine using cloud-init. I have followed instructions from Amazon, Canonical and others to try to properly create my user-data file, save it as seed.iso and have those credentials be the ones the VM uses when it is first booted, and so far it’s not working. I’ve even tried using a bare-bones template with a plain text password, just so I could troubleshoot the way I’m using cloud-init and UTM.
I right-click on the VM on the left side of the main UTM window, scroll down to Drives, and add the .qcow2 file and the seed.iso file. I’ve tried various combinations of “Image Type” and “Interface” options.
I can launch Amazon Linux 2 from the .qcow2 file provided at https://cdn.amazonlinux.com/os-images/2.0.20240223.0/ but no matter what I’ve tried over many hours and days, the Linux VM boots up in the virtual UTM display, but the password and login attempts come back as “Login incorrect”.
Does anyone have experience using cloud-init with UTM? Maybe I’m doing something wrong with the UTM GUI when I add the .iso file.
Beta Was this translation helpful? Give feedback.
All reactions