I have been playing with cloud-init support in PVE and am loving it ... however, one of the things I want to disable on certain VMS (for good or for bad, please don't lecture on security) is to enable the root user to be able to ssh into the VMs (at least while we're building them and scp'ing large amounts of data between nodes with relayed ssh-agent credentials)
I've googled and searched and beyond changing the line in /etc/cloud/cloud.cfg to disable_root: false ... I can't see what else needs to be done to make the config change take hold
I've tried re-adding the ssh keys using qm set <vmid> but that still adds the "no login" bit
I've tried editing /etc/cloud/cloud.cfg on the pve but that didn't help
Do I need to do something specific on the host node, or inside the VM? Ideally I'd like to be able to do this during creation, but am happy to do it retrospectively ... Currently I'm using OpenStack images so doing it during creation would mean (I'm guessing) editing the OS image directly and changing the cloud.cfg file inside the image - but would that work anyway? Is this setting controlled somewhere else that I simply haven't identified as yet?
Any pointers would be gratefully received
I've googled and searched and beyond changing the line in /etc/cloud/cloud.cfg to disable_root: false ... I can't see what else needs to be done to make the config change take hold
I've tried re-adding the ssh keys using qm set <vmid> but that still adds the "no login" bit
I've tried editing /etc/cloud/cloud.cfg on the pve but that didn't help
Do I need to do something specific on the host node, or inside the VM? Ideally I'd like to be able to do this during creation, but am happy to do it retrospectively ... Currently I'm using OpenStack images so doing it during creation would mean (I'm guessing) editing the OS image directly and changing the cloud.cfg file inside the image - but would that work anyway? Is this setting controlled somewhere else that I simply haven't identified as yet?
Any pointers would be gratefully received