pve ubuntu cloud-init

自己装的ubuntu,转成模板后,增加cloud-init支持。

root 下

truncate -s0 /etc/hostname
hostnamectl set-hostname localhost

rm -f /etc/netplan/50-cloud-init.yaml


truncate -s0 /etc/machine-id


cloud-init clean


truncate -s0 ~/.bash_history

history -c

shutdown -h now

关机后,hardware 增加 cloud-init drive。

修改 cloud-init 设置。

ubuntu 2404验证通过。

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *