Skip to content

Instantly share code, notes, and snippets.

@undali
Created August 21, 2026 09:50
Show Gist options
  • Select an option

  • Save undali/76b0232c190f87d8713341e142694309 to your computer and use it in GitHub Desktop.

Select an option

Save undali/76b0232c190f87d8713341e142694309 to your computer and use it in GitHub Desktop.
proxmox, lxc, alpine os

Managing LXC Templates - from proxmox cli

pveam update

# View available templates (optional)
pveam available

# Download a standard Ubuntu template


pveam download local alpine-3.24-default_20260714_amd64.tar.xz

Setup Alpine on proxmox as LXC


pct create 104 local:vztmpl/alpine-3.24-default_20260714_amd64.tar.xz \
  -hostname alpine-lxc \
  -cores 2 \
  -memory 2048 \
  -swap 512 \
  -storage local-lvm \
  -rootfs volume=local-lvm:50 \
  -net0 name=eth0,bridge=vmbr0,firewall=1,ip=dhcp \
  -ostype alpine \
  -unprivileged 1 \
  -password

## OS Type:
'debian, devuan, ubuntu, centos, fedora, opensuse, archlinux, alpine, gentoo, nixos, unmanaged'

Setup SSHD

apk update && apk add openssh && rc-update add sshd && echo '
PasswordAuthentication yes
PermitRootLogin yes
' >> /etc/ssh/sshd_config && service sshd start

Managing LXC from proxmox terminal

pct start 234
pct stop 234
pct destroy 33333
pct enter 234 # enter terminal of 234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment