alpine version 3.17.4 cloud-init version 22.4
Download alpine-virt-3.17.4-x86_64.iso Uploda to PVE Create a VM Boot From ISO
SWAP_SIZE=0 setup-alpine
keyboard: us
variant: us
hostname: alpine
interface: eth0
ip: dhcp
timezone: Asia/Shanghai
proxy: none
mirrors: 51
network: DHCP
reboot
- add cloud-init device
- enable qemu guest agent
- remove iso device
apk add vim
vim /etc/apk/repositories
apk add cloud-init qemu-guest-agent e2fsprogs-extra ca-certificates
echo iso9660 > /etc/modules-load.d/iso9660.conf
wget "" -o /etc/cloud/cloud.cfg
cd /etc/profile.d
mv color_promot.sh.disable color_promot.sh
rc-update add qemu-guest-agent boot
setup-cloud-init
## Tweak
cloud-init status -l
cloud-init clean --logs
cloud-init query userdata
poweroff
If anyone else is wondering what they're supposed to do in /etc/apk/repositories:
You need to uncomment the community repo