Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mikejcKS/78c84f07757b6596052d3c45cab7046f to your computer and use it in GitHub Desktop.

Select an option

Save mikejcKS/78c84f07757b6596052d3c45cab7046f to your computer and use it in GitHub Desktop.
Setting up Arch Linux LXC on ProxMox
1. Edit the mirror list located at /etc/pacman.d/mirrorlist and uncomment a preferred mirror (preferrably closest to you)
2. Initialize Pacman GPG Keys
- $> pacman-key --init
- $> pacman-key --populate archlinux
- $> pacman-key --refresh-keys -u --keyserver hkps.pool.sks-keyservers.net
*The use of the --keyserver flag is due to an error that currently occurs when using the default keyserver
3. Reinstall Arch keyring
- $> pacman -S archlinux-keyring
4. Install Yay (if desired)
- Create a user (you cannot run makepkg as root, you must be signed in as a user)
- $> sudo pacman -S --needed git base-devel
- $> git clone https://aur.archlinux.org/yay.git
* if git fails, complaining about libc.so missing run $> pacman -S glibc
- $> cd yay
- $> makepkg -si
* during the install an error came up for a missing so file (libffi), resolve with $> sudo pacman -S libffi
5. Run a full system update
- $> yay -Syu
6. If after a full system update and reboot networking is missing from your container you can resolve it
by setting the nesting feature on Options of the container in your ProxMox datacenter admin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment