cloud init

  1. [SOLVED] Can't get cloud-init ssh_authorized_keys to work

    I'm trying to use cloud init to add my ssh key, I have generated one on my desktop PC using id_ed25519 after that I added the following to my cloud-init.yml users: - name: peter passwd: "..." # to enable auth using password until I get my key to work ssh_authorized_keys: -...
  2. [SOLVED] Can't get cloud init to work

    Hi I have created the following script to create a VM and with a cloud-init config: #!/bin/bash echo "Loading variables" VMID=230 STORAGE=storage IMAGE=debian-11-genericcloud-amd64.qcow2 SNIPPETNAME=debian-docker-cloud-init.yml echo "VMID: $VMID" echo "STORAGE: $STORAGE" echo "IMAGE: $IMAGE"...
  3. Prevent cloud-init from setting DNS domain/nameservers

    I want my machines to use the DNS settings obtained from DHCP, but /etc/resolv.conf gets statically set by cloud-init with the proxmox hosts settings because of the "use host settings" default. Can this be disabled without changing all the template vms and without loosing the ability to set the...
  4. FAI(me) .ISO for guests - with cloud-init suport?

    Good day I've stumbled on FAIme https://fai-project.org/FAIme/ which creates a "nice" ISO installer that mostly just work... except for the requirement/need of DHCP (not an option at present, unless you could advise a ISC KEA option/replacement with cost effective (for me) static host API...
  5. [SOLVED] Mount second disk in vm

    Hi. I'm creating a VM with two disks. After running the commands, this is how they look like in conf file: virtio0: local:1013255/vm-1013255-disk-0.qcow2,size=30G virtio1: local:1013255/vm-1013255-disk-1.qcow2,size=200G virtio0 works fine like always, but virtio1 needs to be mounted from inside...
  6. global proxy settings through snippets?

    Hi, does anybody know how to insert proxy-variables through snippets so my CI-vm can reach out to get it's updates during first boot? I'm looking for some documentation but cannot find it. Thanks in advance.
  7. Jemand Cloud-Init Debian 11 auf pve 7.0/7.1 zum laufen gebracht?

    Hallo liebe Community, hat es schon mal jemand geschafft ein funktionierendes Debian 11 cloud-init template in PVE 7.1/7.0 zum laufen zu bekommen? Ich erstelle es ähnlich wie in der Anleitung und was man so auf Github findet so: wget...
  8. cloud-init interfaces down during first boot

    Forgive me if I am missing something simple. I am using the snippets to attach the following net config to the machine: cat <<\EOF> /mnt/pve/ha-storage/snippets/test-network.yml version: 1 config: - type: physical mac_address: '32:52:38:6d:f0:dd' name: int0 subnets: - type...
  9. Proxmox windows cloud-init password problem after upgrade

    Hello everyone. I have created a VM using windows 2019 cloud-init image on PVE 6.3 and everything works fine. Now I make a change in hardware, for example upgrading ram. after stop / start operation, the password which had been set previously by cloud init, would not work and I cannot login into...
  10. [SOLVED] ubuntu 20.04 liest die cloud-init meta-data nicht

    Hallo, ich habe ein Template von Ubuntu 20.04.3 durch Packer (1.7.3 apple m1) auf Proxmox (6.4-9 - ich weiß, es ist ein bisschen alt) erstellt, wo ich unter anderem auch cloud-init benutzt habe. In der Kernel Command Line gibt Packer das Folgende ein: initrd=/casper/initrd quiet...
  11. Cloud-init image only applies configuration on second boot

    I am having a strange problem and I don't even know where to start debugging it. I followed the could init instructions (https://pve.proxmox.com/wiki/Cloud-Init_Support) on Proxmox documentation to create a cloud init template out of an ubuntu LTS cloud init image...
  12. Rerunning cloud-init

    Hi, I have a VM set up with cloud-init according to the instructions at https://pve.proxmox.com/wiki/Cloud-Init_Support using the Ubuntu Focal cloud image. This all worked flawlessly the first time I did it (thanks!). However, later I wanted to change the network configuration without...
  13. cloud-init not working when changing name of VM after clone

    I followed the instructions here -> https://pve.proxmox.com/wiki/Cloud-Init_Support to create a ubuntu 2004 template using the cloudimg https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img Running the following commands works consistently: qm clone 2004 100 --name...
  14. cloud-init github key

    Hi, I'm following a cloud-init / terraform walk-through (see link). Can i "qm set VMID --sshkey https://github.com/username.keys" for multiple users somehow? Thx, Martijn
  15. Cloud-Init can't open snippets/cloudinit.yaml

    Hi, I would like to load my clouding.yaml file at the start of my cloud init vm. qm set <VM_ID> -cicustom "user=local:snippets/cloundinit.yaml" However, when I start the vm, an error appears like that : TASK ERROR: can't open '/var/lib/vz/snippets/cloundinit.yaml' - No such file or directory...
  16. How to stop creating a user on Cloud-init template?

    Virtualization: KVM Is there any way to stop creating a new default user on newly created VM using Cloud-init template? Right now on my centos cloud-init template created by me has this config # nano /etc/cloud/cloud.cfg system_info: default_user: name: centos lock_passwd: false...
  17. [SOLVED] Windows cloud init latency

    Hi. I have created a windows 2019 cloud init image, following this tutorial, and using that image, I've created a VM using cloud init parameters for network and setting password. The VM works, but there is a big problem. It takes around 10 minutes for cloud parameters to apply. That is how log I...
  18. [TUTORIAL] windows cloud init working

    Hi guys, I have gotten cloud init to work with windows with some modification to proxmox and a windows template. since all of the other threads regarding this don't work anymore, at least i couldn't get them to, i thought i would share what i did. the part is making proxmox save windows...
  19. CentOS 7 Cloud-init Inserting Unexpected DNS Server

    Below is the cloud-init network configuration for the VM: But when the VM boots, there is an additional DNS server being inserted by cloud-init: The DNS server `192.168.122.1` is being added but is not apart of the configuration and is not functional: Here are the steps I used to create...
  20. How do I prepare a proper cloud-init image for CentOS 7?

    Hello, I want to prepare a cloud-init image, which is able to resize (grow) the HDD space and partitions. While it can grow the actual HDD space, it is not able to grow the partition.. I'm not sure, what I'm doing wrong... Is there a good tutorial about preparing a CentOS Cloud-Init image?

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!