Cloudinit SSH Error on Startup

jsterr

Well-Known Member
Jul 24, 2020
680
162
53
32
Hello Proxmox Community,

did anyone notice some changes and errors regarding cloudinit in PVE? Im setting up a VM via cloud-init template and after cloning it via web-ui, the vm has errors on starting up the ssh deamon on first boot (see screenshot). I have a pubkey set in the cloudinit drive. Heres the snippet Im using for the cloudinit: https://www.thomas-krenn.com/de/wiki/Cloud_Init_Templates_in_Proxmox_VE_-_Quickstart

The ssh log states;

1708339775124.png

This also happens on debian ci images. Does anyone know why this errors appear? This did work few months ago without any issues.
 

Attachments

  • 1708337381496.png
    1708337381496.png
    222.6 KB · Views: 4
  • 1708337542539.png
    1708337542539.png
    194.4 KB · Views: 4
If you examine your entire boot log (qm start ID ; qm terminal ID) you will notice that there is no mention of CloudInit at all.
You can confirm it by logging in to the booted instance as "root" from the console (qm terminal ID) , since your procedure calls for manually setting root password prior to boot.
You will also notice that you cant mount /dev/cdrom as its not present as a device.

The cause of all of it is an incompatibility between IDE and OVMF bios. You will find a few threads where its been discussed, and perhaps even a bugzilla report.
The solution is:
a) use SCSI for CloudInit device
b) dont use OVMF bios

So in summary, your posted procedure may need to be updated :)

Good luck

https://forum.proxmox.com/threads/i...are-not-usable-when-cold-booting-a-vm.117345/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
If you examine your entire boot log (qm start ID ; qm terminal ID) you will notice that there is no mention of CloudInit at all.
You can confirm it by logging in to the booted instance as "root" from the console (qm terminal ID) , since your procedure calls for manually setting root password prior to boot.
You will also notice that you cant mount /dev/cdrom as its not present as a device.

The cause of all of it is an incompatibility between IDE and OVMF bios. You will find a few threads where its been discussed, and perhaps even a bugzilla report.
The solution is:
a) use SCSI for CloudInit device
b) dont use OVMF bios

So in summary, your posted procedure may need to be updated :)

Good luck

https://forum.proxmox.com/threads/i...are-not-usable-when-cold-booting-a-vm.117345/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thank you Sir, tried with sata that also did not work, hadn't thought of trying scsi... pulled my hair out on this one.
 

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 yours easily in our online shop.

Buy now!