[PVE-User] With cloud-init some bug?

lyt_yudi lyt_yudi at icloud.com
Fri Mar 23 07:28:12 CET 2018


1. Use --sshkey  issue:
# qm set 111 --sshkey ~/.ssh/id_rsa.pub 
400 Parameter verification failed.
sshkeys: invalid format - invalid urlencoded string: /root/.ssh/id_rsa.pub

qm set 111 --sshkey /root/.ssh/id_rsa.pub <vmid> [OPTIONS]


2. Can't setup static ip address for vm's by cloud-init
Test not passed:
CentOS-6(CentOS-6-x86_64-GenericCloud.qcow2)
CentOS-7(CentOS-7-x86_64-GenericCloud.qcow2)

Debian-9(debian-9-openstack-amd64.qcow2)
only dhcp? configuration static mode is still used in DHCP!

Test passed:
Ubuntu-16.04(xenial-server-cloudimg-amd64-disk1.img)
Ubuntu-18.04(bionic-server-cloudimg-amd64.img)

Can’t use the static ip for some Linux OS, is it the reason why the cloud-init version is too low?  must be with cloudinit >= 17.1?

Thanks!



More information about the pve-user mailing list