It was surprisingly tricky to setup an Arch LXC on top of Proxmox. Some notes:

  • The latest template is here. And I found that link from the official Arch wiki.
  • I had to enable nesting, before I started the container for the first time. Otherwise, it never seemed to connect to the network.
  • The template doesn’t have OpenSSH in it. So, I had to use a password for the root user during setup and disable it later.

First time setup, from the Proxmox LXC console:

pacman-key --init
pacman-key --populate archlinux

pacman -Syu

pacman -S openssh python	# Python, so that I could use Ansible going forward.
systemctl enable sshd
systemctl start sshd

vi .ssh/authorized_keys		# Add my public SSH key.