Headscale & Tailscale – Proxmox LXC Installation
Hereβs how to install Tailscale on a Proxmox LXC with a Headscale server. This post is available in French too.
For an easy installation, I used one of the tools of the beautiful Proxmox VE Helper-Scripts suite. This script must be executed directly in the terminal of the Proxmox interface. Be careful, do not execute in the terminal of the LXC.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/add-tailscale-lxc.sh)"
Select the LXC container(s) for which you want to install Tailscale

Then, in a terminal of the LXC, execute this command:
tailscale up --login-server https://hs.xxxx.xxx --accept-dns=false
Retrieve the value of mkey, then open a terminal on the Headscale machine and execute this command:
docker exec headscale headscale nodes register --user USERNAME ---key mkey:xxxxxxxxxxxxxxxxxxxxxxxx
To do this via the HeadPlane interface, on the “Machinery” page, click “Add Device”, add the character string mkey:xxx, choose the user and click “Register”.

You can found more information on this topic on Tailscale documentation.
I invite you to read or return to the Headscale and Tailscale post.
Leave a Reply
