Last active
July 15, 2023 21:03
-
-
Save matutter/bf3ac42e28413e91f93676427162e190 to your computer and use it in GitHub Desktop.
Create a UnifiController LXC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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