Headscale & Tailscale – Hassio Installation
There is a process to add Hassio (Home Assistant OS) to your Headscale network. Additionally, I wrote this blog post in French.
First, install the Tailscale add-on from the Add-on Store and enter the URL of our Headscale server in the “Login server” field on the configuration page.
https://hs.xxxx.xxx
In the “info” part”, activate “Start on boot”, “Watchdog”, “Auto update” and “Show in sidebar”.
Click on Tailscale in the sidebar and authentication.
Go to the log of the Tailscale add-on to retrieve the authentication URL line.
2024-05-09T10:53:48-04:00 INF home/runner/work/headscale/headscale/hscontrol/auth.go:27 > Successfully sent auth url: https://hs.xxxx.xxx/register/mkey:xxxxxxxxxx expiry=-62135596800 followup=https://hs.xxxx.xxx/register/mkey:xxxxxxxxxx machine_key=[P7Zx/] node=homeassistant node_key=[JqfVJ] node_key_old=
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”.
That is, everything should work well now.
Adding Hassio to my Tailnet network allows me to access Home Assistant from the outside and also save my Home Assistant installation on my remote NAS. I don’t use the roads or the exit node of this node, I prefer to have this feature deployed in my VM Tailscale.
I invite you to read or return to the Headscale and Tailscale post.
Leave a Reply