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

50 lines
1012 B
Markdown

# 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
1. SSH to proxmox host
2. Edit `/etc/pve/nodes/proxmox/lxc/<id>.conf`
3. Add `features: nesting=1`
4. Reboot the container
## Arch Setup
1. Log into the console
2. Set pacman mirror
1. Edit `/etc/pacman.d/mirrorlist`
2. Uncomment the mirror closest to you
3. Initialize `pacman`
```
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys
```
4. Run the updater and install some packages
```
pacman -Syu
pacman -S openssh vim sudo
```
5. 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
```
6. Copy over ssh keys
7. Setup sudo access
```
visudo
<username> ALL=(ALL) ALL
```
8. Set `.vimrc`
```
set mouse=
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
```