cloud init

  1. J

    [SOLVED] Custom Cloud-innit file backup issues

    Hey folks. So I made myself a custom cloud-init file, because the UI cloud-init is limited. Actually, each time I create a VM I run a script to customize a final cloud-init file (so each VM can be different). I save the file to /var/lib/vz/snippets/ubuntu-homelab-cloud-init.yml. (so far I am...
  2. M

    [SOLVED] SSH with password in Vm created from Cloud-init

    I created an Ubuntu 24 CloudInit template and deployed multiple VMs from it. Everything is working fine, except for one issue: SSH with password authentication. I tried editing the sshd_config file to allow password-based login by making the following changes: Set PasswordAuthentication yes...
  3. R

    Custom user-data via --cicustom not applied on VM boot in Proxmox

    Hi all, I am trying to deploy a VM with a custom QCOW2 image in Proxmox and want to use a custom cloud-init user-data file to provision it. I have created my custom user-data file and uploaded it under the local:snippets storage as userdata.yaml. Then I applied it to the VM using the command...
  4. C

    cloud-init brain dump

    Greetings, I've been fighting with cloud-init with templates on Proxmox for the last few hours, and I want to capture what I've learned, and maybe be told where I'm doing it wrong, or taking the hard way. First off, a few specific things that I've learned. Proxmox has it's own cloud-init...
  5. G

    [TUTORIAL] PVE9 Create a VM Template for a Debian Trixie Server with Cloud-Init

    Just wanted to share my (successful) procedure for creating in PVE9 a VM Template for a Debian Trixie Server with Cloud-Init, which I have done in the past for previous Debian versions in PVE8. This is most useful to quickly spin up a Debian server for any purpose. The following procedure was...
  6. V

    [SOLVED] Set static IP to cloned VM with Cloud-init initialisation.

    Dear all, I am trying to clone my VM template while setting up a static ip. As I am using Ansible, I try to use the community.general.proxmox_kvm module. However, I do not get the VM to have a static ip. For the template I use a Debian 12 (bookworm) template using Learn Linux Tv's guide. Below...
  7. T

    Cloud-init NIC name override

    When importing an Ubuntu cloudimage VM from VMware I noticed that the networkinterface name has changed, and potentially happens again in the future. So I want to make it static inside the VM. Context is that the VM originally is configured by VMWare's Cloud-init approach (...
  8. Z

    Proxmox VE 8 HDD LVM Thin and Template Cloud-init

    Hello, on new Proxmox (on Hetzner) 8.3.5, i setup LVM-Thin storage like this : wipefs -a /dev/sda4 /dev/sdb wipefs -a /dev/sda4 /dev/sdb pvcreate /dev/sda4 /dev/sdb vgcreate data_hdd /dev/sda4 /dev/sdb lvcreate -T -l +100%FREE --poolmetadatasize 16G -Zn data_hdd And add to LVM-Thin storage...
  9. D

    cloud-init snippets hostname is no longer the vm name

    I am using the proxmox api to clone a template. When I create a custom user snippet with all the same information from the cloud init file when created from the gui and adding to it, customization commands. proxmox no longer makes the host name the same as the vm name. Is there a way to bring...
  10. L

    CLOSED

    CLOSED
  11. P

    [FEATURE REQUEST] Web GUI for cloud-init MTU configuration

    I want to configure the MTU of VMs with cloud-init, but there is no Web GUI to apply MTU value into automatically generated configs. I don't want to manage custom config files myself for that. Please let us configure cloud-init MTU value with Web GUI.
  12. D

    Question about the --cicustom (custom cloud-init) feature

    I have been working on my process of spinning up new templates/instances from cloud images for various distros. All is going good so far. Where I am struggling is with the --cicustom switch when applying to a VM instance, it appears I am not able to seed the user-data and the network config...
  13. V

    Is there some standard procedure to retrofit cloud-init on an existing VM?

    I have a VM with a lot of custom configurations I want to turn into a template with cloud-init configuration. Is that possible or permissible? If it is are there some start up time settings or scripts I have to disable initially to allow the cloud-init do its thing, like some crontab or...
  14. U

    Cloud Init user data script field

    With using the Linux cloud-init settings is there any way to add another input field for a user data script so that I dont have to boot a VM and run the commands i need to install a few applications before turning it into a replicatable template because many of the cloud-init features only work...
  15. W

    Automate vm build with bitbucket

    Hi all, bit of a weird one in terms of direction with this issue but that's what I need help with, the direction. I'm using a Proxmox node (love it) just started using Cloud init and VM templates more. I'm getting a bit overwhelmed with what to do about automation in regards to deploying using...
  16. U

    NoCloud CloudInit Datasource Not Functional

    I see countless Youtube videos online that when they refer to cloud-init with proxmox they assume that you will be creating a template and inside that template you are going to attach a configdrive2 disk with the dynamic cloud init data that proxmox provides because the native Linux...
  17. F

    Block changing IP of VM when using cloud-init

    Hi, I have some VMs on my node and i'm using cloud-init to assign IPv4 to every VM. However it's possible to change IP from VM to IP of another VM. I want to block user being able to change IPv4 assigned by cloud-init, how the easiest I can do that? I was trying with ip filter but it didn't work.
  18. A

    [TUTORIAL] Proxmox automator for deploy LXC and QEMU guests, with Cloud-init

    Good evening everyone, I've just released a small command line utility for Proxmox v7, 8 to automate the provisioning and deployment of your containers and virtual machines with Cloud-init. Key features: Unified configuration of LXC and QEMU/KVM guests via Cloud-init. Flexible guest...
  19. M

    [SOLVED] Proxmox cloud-init not working on Ubuntu 24 Server/Desktop

    Hello all, I'm in the process of adopting Ubuntu 24 as the next upgrade in my infra but on validation it looks like cloud-init doesn't work anymore. My host: root@proxmox-server:~# pveversion pve-manager/8.1.4/ec5affc9e41f1d79 (running kernel: 6.5.11-8-pve) Later edit: Turns out that...
  20. L

    Serial console stops working.

    Hello everybody. I'm running Proxmox in its latest and most updated version and I'm migrating my Linux virtual machines to Cloud-init. With everything, I have been experiencing some bugs that I still haven't found a solution or the reason for. When accessing machines through the proxmox...