Skip to content

Instantly share code, notes, and snippets.

@matutter
Last active July 15, 2023 21:03
Show Gist options
  • Save matutter/bf3ac42e28413e91f93676427162e190 to your computer and use it in GitHub Desktop.
Save matutter/bf3ac42e28413e91f93676427162e190 to your computer and use it in GitHub Desktop.
Create a UnifiController LXC
# Assume logged in as `root` in ProxMox 8
cd /root
# Install prereqs
apt install -y skopeo umoci jq -y
# Download and extract RootFS
lxc-create unifi-controller-7.4.162 -t oci --lxcpath /root/lxc -- --url docker://linuxserver/unifi-controller:7.4.162
# Add directories LXC expects
mkdir -p lxc/unifi-controller-7.4.162/rootfs/etc/networks
# Compress the rootfs
tar czf unifi-controller-7.4.162.tar.gz -C lxc/unifi-controller-7.4.162/rootfs/ .
# Move it to the templates folder that ProxMox can see
mv unifi-controller-7.4.162.tar.gz /var/lib/vz/template/cache
# Go the ProxMox UI, Create CT, and select archive we just created
@matutter
Copy link
Author

Also you can just copy these instructions from linuxserver: https://github.com/linuxserver/docker-unifi-controller/blob/master/Dockerfile

Bases on Ubuntu-focal (20.04) LXC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment