Ubuntu 20.04 - Cloud-Init only runs with full clone, not linked clone

vRod

Active Member
Jan 11, 2012
34
1
28
Been working on this for over a day now. I am getting started with linked clones and cloud-init and I am having an issue with the first boot of linked clones. The cloud-init simply doesn't run at all if the vm is a linked clone. After the clone, I make sure to change the IP and such, then press "Regenerate Image" and start the VM. I saw something about this issue back in November 2019 but it should be fixed?

On a full clone, the cloud-init program runs just as expected. I am building a CUSTOM image on Ubuntu 20.04.

Bash:
root@pxnode01:~# pveversion -v
proxmox-ve: 6.2-1 (running kernel: 5.4.44-2-pve)
pve-manager: 6.2-10 (running version: 6.2-10/a20769ed)
pve-kernel-5.4: 6.2-4
pve-kernel-helper: 6.2-4
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.4.41-1-pve: 5.4.41-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph: 14.2.9-pve1
ceph-fuse: 14.2.9-pve1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.4
libpve-access-control: 6.1-2
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.1-5
libpve-guest-common-perl: 3.1-1
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.2-5
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.2-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.2-9
pve-cluster: 6.1-8
pve-container: 3.1-12
pve-docs: 6.2-5
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-2
pve-firmware: 3.1-1
pve-ha-manager: 3.0-9
pve-i18n: 2.1-3
pve-qemu-kvm: 5.0.0-11
pve-xtermjs: 4.3.0-1
qemu-server: 6.2-11
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.4-pve1

Followed the guide on the PVE Documentation Page, using this command to deploy the linked clones:

Bash:
root@pxnode01:~# qm clone 8100 1534 --name name
create full clone of drive ide0 (SSD1:vm-8100-cloudinit)
create linked clone of drive efidisk0 (SSD1:base-8100-disk-1)
clone base-8100-disk-1: base-8100-disk-1 snapname __base__ to vm-1534-disk-0
create linked clone of drive scsi0 (SSD1:base-8100-disk-0)
clone base-8100-disk-0: base-8100-disk-0 snapname __base__ to vm-1534-disk-1

Appreciate any help!

Chris
 

wolfgang

Proxmox Retired Staff
Retired Staff
Oct 1, 2014
6,496
499
103
Hi,

here it is working with linked close as full clones.
What kind of storage do you use for this template?
 

vRod

Active Member
Jan 11, 2012
34
1
28
Hey,

at the moment I am using a flash based ceph-storage (cephFS)
 

wolfgang

Proxmox Retired Staff
Retired Staff
Oct 1, 2014
6,496
499
103
CephFS has no support for KVM guests.
So you use the CephFS mount point as Dir Storage?
 

vRod

Active Member
Jan 11, 2012
34
1
28
Sorry, I misspoke. I am indeed using ceph but with rbd. CephFS is where I host my iso’s.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!