Access PiKVM from anywhere
PiKVM is a Raspberry Pi based KVM (keyboard, video, and mouse) over IP solution. It lets you connect to a computer remotely and use it as if you were in front of it. This guide shows you how to set up Tailscale on PiKVM.
To find out more about PiKVM, visit pikvm.org. We also have a video guide on how to set up Tailscale on PiKVM.
Prerequisites
- A PiKVM device or a Raspberry Pi with PiKVM installed.
- The PiKVM project recommends a Pi 4. The Pi 5 provides little to no performance improvement for this use case.
- A Tailscale account-the free Personal plan includes all you need to get started.
Install Tailscale
-
Access your PiKVM via the web interface and open the web terminal.
-
Elevate to root.
# default password is 'root' su -
-
Enable read-write mode.
rw
If you reboot your PiKVM during this process, you will need to re-enable read-write mode. -
Install the
tailscale-pikvm
package.pacman -Sy tailscale-pikvm
We recommend thetailscale-pikvm
package as a result of this issue -
Enable and start the Tailscale service.
systemctl enable --now tailscaled
-
Log in to Tailscale.
For more information on the available login options, see our Command Reference.
tailscale up
-
(Optional) Enable Tailscale SSH.
tailscale set --ssh
-
Revert to read-only mode.
ro
Access your PiKVM device
Once you have installed Tailscale on your PiKVM device, you can access it from anywhere using the Tailscale network.
Open the Tailscale admin console and find your PiKVM device.
You can access the web interface by visiting https://<your-pikvm>.<your-tailnet>.ts.net
. For example, if your PiKVM device is named pikvm
and your Tailscale network is named pango-lin
, you would visit https://pikvm.pango-lin.ts.net
.
Use Tailscale Serve to access your PiKVM device
You can set up Tailscale Serve to proxy your PiKVM's web interface. This provides a valid TLS certificate for your PiKVM device, preventing your browser from displaying a security warning.
To setup Tailscale Serve, follow the instructions below. You can also find more information on our Use Tailscale Funnel and Serve article.
tailscale serve --bg https+insecure://localhost:443
After running the command above, you can access your PiKVM device, as before, by visiting https://<your-pikvm>.<your-tailnet>.ts.net
. The difference is that the connection is proxied through your Tailscale Serve server, providing a valid TLS certificate for your PiKVM device.
Use your PiKVM node as an exit node or subnet router
Now that PiKVM is in your Tailnet, you can configure it to do other useful things, such as functioning an exit node or a subnet router.