- Visit Alpine Linux Downloads and copy the URL for the Virtual image associated with your Proxmox architecture.
- Paste the URL in to download on your ISO Images storage drive in your Proxmox datacenter.
- Wizard Tabs
- General
- VM ID:
9001(or next available in the 9000 series. - Name:
alpine-3.22-cloudinit - Tags:
alpine,alpine-3.22
- VM ID:
- OS
- Use the ISO image
- Keep the defaults for Guest OS
- System
- Machine:
q35 - BIOS:
SeaBIOS - Qemu Agent checked
- Machine:
- Disks
- Storage:
zfs-iscsi(or whichever you use) - Disk size:
1(1gb is a sane start, can change later per VM)
- Storage:
- CPU
- Sockets:
1 - Cores:
1(these can be changed later per VM) - Type:
host
- Sockets:
- Memory
- Memory:
1024(default to a low 1024mb, can be changed later per VM) - Ballooning Device unchecked
- Memory:
- General
- Boot it up.
- Login as
rootand there is no password required. setup-alpine- Select keyboard layout:
us - Select variant:
us - Hostname:
alpine-3.22-cloudinit - Interface:
eth0 - SSH:
openssh - Disk:
sda-->sys
- Select keyboard layout:
reboot- Login as
rootusing your password apk updateapk add -u apk-tools nanonano /etc/apk/repositoriesand uncomment the communityapk updateapk upgrade --availablesync
apk add docker docker-composerc-update add docker bootapk add cloud-init util-linux sudo openssh-server-pam e2fsprogs-extra qemu-guest-agent nfs-utils cfdiskrc-update add qemu-guest-agentservice qemu-guest-agent startrc-update add nfsmount bootecho 'UsePAM yes' > /etc/ssh/sshd_config.d/usepam.confservice sshd restartsyncsetup-cloud-initecho "datasource_list: ['NoCloud']" > /etc/cloud/cloud.cfg.d/02-datasource.cfgpoweroff
- Hardware --> Add --> CloudInit Drive
- Storage:
zfs-iscsi
- Storage:
- Click Cloud-Init
- User:
admin - Password: something secret
- IP Config:
DHCP
- User:
Now convert it to a template.
- Setup NFS
apk add nfs-utilsrc-update add nfsmount bootrc-service nfsmount start- Make NFS mount points (i.e.
mkdir -p /nfs/media) - Setup
/etc/fstab(i.e.192.168.13.10:/mnt/tank/media /nfs/media nfs rsize=8192,wsize=8192,timeo=14,intr 0 0) mount -a