Hi,
I've been playing with cloud-init initially using the cloud images provided by Ubuntu. Works very well and great way to create faster images by having them on the smaller SSD due to the VMs being linked.
I've been following https://pve.proxmox.com/wiki/Cloud-Init_Support and its worked great for the cloud images.
However, I want to create my templates with some default options, default packages etc so I decided to create my own image. Starting with a Ubuntu 1804 server install I set it up how I want it, didnt need to install cloud-init as Ubuntu 1804 server installs this by default regardless.
Shut the server down and then added a cloud-init device as directed. Converted to template and then created a linked clone. Edited the cloud-init settings on this new VM, booted and logged in (using the configured user I created on the template). However the networking has not been set by cloud-init. I then tried changing the password via cloud-init (I know not recommended as it is less secure than using keys) and that didnt work either - the original password was still used.
I mounted the CDROM and checked the settings there - and they are as I set them in the cloud-init setup in the proxmox so the problem seems to be that cloud-init is not using the cdrom as its data store.
Can anyone give me a push in the right direction as to how to get this to work? I am sure I am missing something obvious - but after spending several hours looking for information on this I have no idea what it is!
Regards
Tim
I've been playing with cloud-init initially using the cloud images provided by Ubuntu. Works very well and great way to create faster images by having them on the smaller SSD due to the VMs being linked.
I've been following https://pve.proxmox.com/wiki/Cloud-Init_Support and its worked great for the cloud images.
However, I want to create my templates with some default options, default packages etc so I decided to create my own image. Starting with a Ubuntu 1804 server install I set it up how I want it, didnt need to install cloud-init as Ubuntu 1804 server installs this by default regardless.
Shut the server down and then added a cloud-init device as directed. Converted to template and then created a linked clone. Edited the cloud-init settings on this new VM, booted and logged in (using the configured user I created on the template). However the networking has not been set by cloud-init. I then tried changing the password via cloud-init (I know not recommended as it is less secure than using keys) and that didnt work either - the original password was still used.
I mounted the CDROM and checked the settings there - and they are as I set them in the cloud-init setup in the proxmox so the problem seems to be that cloud-init is not using the cdrom as its data store.
Can anyone give me a push in the right direction as to how to get this to work? I am sure I am missing something obvious - but after spending several hours looking for information on this I have no idea what it is!
Regards
Tim