esxi 8.0,Ubuntu 20.04(焦点)。我用hdiutil -iso cidata.ico -o cidata.iso cidata -iso -joliet创建了
用户数据内容:
#cloud-config
users:
- name: demo
groups: sudo
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACA... 获取
[ 5.671765] cloud-init[680]: 2022-11-02 01:06:00,248 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.任何方式,这样我就能看到更多关于这个错误的细节?谢谢!
发布于 2022-11-02 08:54:32
root@me:~# cloud-init schema --system
Cloud config schema deprecations:
Error:
Cloud config schema errors: users.0: {'groups': 'sudo', 'name': 'demo', 'shell': '/bin/bash', 'ssh-authorized-keys': ['ssh-rsa AAAAB3NzaC1yc2EA'], 'sudo': 'ALL=(ALL) NOPASSWD:ALL'} is not valid under any of the given schemas如果您查看云init文档,您会发现ssh-authorized-keys不是一个有效的密钥。它已被废弃,并被ssh_authorized_keys所取代。
https://askubuntu.com/questions/1438646
复制相似问题