Hello,
Each time I reboot a vm with cloud init in proxmox, cloud init is started as the fist time (init). In the log we can see :
2022-12-01 09:42:03,763 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: New instance first boot
2022-12-01 09:44:47,808 -...
https://pve.proxmox.com/wiki/Cloud-Init_Support
The link above refers refers to the example below:
# download the image
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
# create a new VM with VirtIO SCSI controller
qm create 9000 --memory 2048 --net0...
Hey guys!
New to proxmox so sorry if I'm not clear on some terms... and also thanks for all the great posts and insights here so far it has been great reading lots of past posts!
To my issues and questions. Thanks in advance for any guidance
Backstory
I Recently upgraded a single node of...
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:
-...
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"...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.