Proxmox VEにtailscaleをinstallする

https://tailscale.com/kb/1151/what-is-tailscale

tailnetの説明いい感じ。traditional VPNとの違いもなんとなくわかりやすい。


https://tailscale.com/download/linux

まずはtailscale CLIをPVEにインストールする。PVEのweb dashboardからPVEのshellにアクセスしてtailscale CLIをインストールする。

curl -fsSL https://tailscale.com/install.sh | sh

と思ったらapt updateあたりが通らない。subscriptionに加入していない場合は特定のsubscritpion repositoryを無効化しておく必要があるぽい。


https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_package_repositories

proxmox veのpackage managementについては上記で解説されている。


結果的にドキュメントに従って

- /etc/apt/sources.list

- /etc/apt/sources.list.d/ceph.list

- /etc/apt/sources.list.d/pve-enterprise.list

の3つをno-subscription用に書き換えた。


この状態でtailscaleのinstallスクリプトを実行すると成功する。

Created symlink /etc/systemd/system/multi-user.target.wants/tailscaled.service → /lib/systemd/system/tailscaled.service.
+ [ false = true ]
+ set +x
Installation complete! Log in to start using Tailscale by running:

tailscale up


root@proxmox-ve-1:~# tailscale up

To authenticate, visit:

https://login.tailscale.com/xxx

Success.

login用のURLが表示されるのでこれにアクセスしてログインすることで対象のpve nodeをtailnetさせることができる。


https://tailscale.com/kb/1133/proxmox?q=proxmox

に従って

sudo tailscale serve --bg https+insecure://localhost:8006

を実行することによってtailnet経由でpveのdashboardにアクセスできるようになる。


このserverのprocessをsystemdなりで立ち上げるようにしておかないとproxmox ve自体の再起動時にtailnetに乗らなくなってしまうと思うのでTODO

Related Articles