qm importdisk 401 /tank/cloud-init-images/CentOS-7-x86_64-GenericCloud-1808.qcow2 tank
qm set 401 --scsihw virtio-scsi-pci --scsi0 tank:401/vm-401-disk-1.raw
qm set 401 --ide2 tank:cloudinit
qm set 401 --boot c --bootdisk scsi0
qm template 401
mount it instead of using cat, it is an iso inside with the cloudinit configsIf I cat the /dev/sr0, I get some odd output and some readable text that looks like cloud-init yaml file.
mount it instead of using cat, it is an iso inside with the cloudinit configs
this is not possible with our tools, but in general you can make your own iso and put it in one of the vms cdrom driveHow can I extend the contents of the iso and add the full cloud-init spec options, like arbitrary user-data puppet/chef?
can you post your vm config?I don't understand how this worked/works for you guys. I tested a lot on Proxmox 5.2-11 using all sorts of Ubuntu Cloud Images, and all of them return:
error: no such device: root
Unless I create the template manually, I`m afraid none of this works. Not even the docs: https://pve.proxmox.com/wiki/Cloud-Init_Support
Unless something changed and you guys can tell me ?
can you post your vm config?
I can't reproduce it here with either 18.04 or 18.10 cloud images. Could you provide some more information about your environment? (pveversion -v and the output of qm config <VMID>)
proxmox-ve: 5.2-2 (running kernel: 4.15.18-8-pve)
pve-manager: 5.2-11 (running version: 5.2-11/13c2da63)
pve-kernel-4.15: 5.2-11
pve-kernel-4.15.18-8-pve: 4.15.18-28
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-41
libpve-guest-common-perl: 2.0-18
libpve-http-server-perl: 2.0-11
libpve-storage-perl: 5.0-31
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.0.2+pve1-3
lxcfs: 3.0.2-2
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-20
pve-cluster: 5.0-30
pve-container: 2.0-30
pve-docs: 5.2-9
pve-edk2-firmware: 1.20181023-1
pve-firewall: 3.0-14
pve-firmware: 2.0-6
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.14.1-1
pve-qemu-kvm: 2.12.1-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-40
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
boot: c
bootdisk: scsi0
cores: 2
cpu: cputype=kvm64
description: Ubuntu 18.04 cloud image
ide2: local:9001/vm-9001-cloudinit.qcow2,media=cdrom
kvm: 1
memory: 2048
name: ubuntu-cloud-image
net0: virtio=E6:02:8E:55:83:30,bridge=vmbr0
numa: 0
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=32b3f665-16f3-4bd1-a2bf-d21495ae65ca
sockets: 1
virtio0: local:9001/vm-9001-disk-0.raw,size=2252M
vmgenid: dd10341b-36a0-4e28-b711-332ca3594616
Looks like it's a bug in the 18.04 cloudimg. Could you try the 18.10 version to see if it is fixed for you? In my tests it only delayed the boot by at most 10 seconds.