Files
home-docs/docs/labdocs/ArchLXC.md

1012 B

Install Arch LXC on Proxmox

Install

  1. Download the lxc image
  2. During the install set a password, the network and ssh are not enabled by default
  3. After install set a special feature
  4. SSH to proxmox host
  5. Edit /etc/pve/nodes/proxmox/lxc/<id>.conf
  6. Add features: nesting=1
  7. Reboot the container

Arch Setup

  1. Log into the console
  2. Set pacman mirror
  3. Edit /etc/pacman.d/mirrorlist
  4. Uncomment the mirror closest to you
  5. Initialize pacman
pacman-key --init
pacman-key --populate archlinux 
pacman-key --refresh-keys
  1. Run the updater and install some packages
pacman -Syu
pacman -S openssh vim sudo
  1. Setup a new user, sudo, and ssh access
useradd -m -shell /bin/bash <username>
passwd <username>
usermod -aG sudo <username>
systemctl restart sshd
systemctl enable sshd
  1. Copy over ssh keys
  2. Setup sudo access
visudo
<username> ALL=(ALL) ALL
  1. Set .vimrc
set mouse=
set tabstop=4
set shiftwidth=4
set expandtab
syntax on