Skip to content

Instantly share code, notes, and snippets.

View tabnul's full-sized avatar

Thijs van Nuland tabnul

View GitHub Profile
@tabnul
tabnul / microk8s_in_lxc.md
Created December 17, 2021 10:31 — forked from acj/microk8s_in_lxc.md
Installing microk8s in an LXC container

Installing microk8s in an LXC container

I wanted to run Microk8s on a Proxmox 6 host inside of an LXC container. These are my notes from the journey.

  1. Create a privileged LXC container through the Proxmox web interface
  • Enable nesting and FUSE
    • In Proxmox UI, select container, then Options > Features > Check nesting and FUSE boxes
  1. SSH into the Proxmox host and edit the container's config in /etc/pve/lxc/.conf
    • Add the following lines lxc.apparmor.profile: unconfined
@tabnul
tabnul / README.md
Created December 16, 2021 10:31 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a