Skip to content

Instantly share code, notes, and snippets.

@mark05e
Created October 15, 2022 04:20
Show Gist options
  • Save mark05e/5c4eaafed0f17891696ca7a9c7cc05a6 to your computer and use it in GitHub Desktop.
Save mark05e/5c4eaafed0f17891696ca7a9c7cc05a6 to your computer and use it in GitHub Desktop.

Install Zerotier inside Ubuntu LXC container on Proxmox

Inside Proxmox shell

# Edit VM/LXC Configuration located at /etc/pve/lxc/XXX.conf

echo "lxc.cgroup.devices.allow: c 10:200 rwm" >> /etc/pve/lxc/XXX.conf
echo "lxc.mount.entry: /dev/net dev/net none bind,create=dir" >> /etc/pve/lxc/XXX.conf

Inside Ubuntu LXC Container

mkdir /dev/net

curl -s https://install.zerotier.com | sudo bash

sudo zerotier-cli join longerrandomid
# Verify
sudo zerotier-cli status
sudo zerotier-cli listnetworks
sudo systemctl status zerotier-one.service

References

@mark05e
Copy link
Author

mark05e commented Oct 15, 2022

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