-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
478 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
+++ | ||
title = "Educational resources" | ||
description = "Beginner tutorials and educational material" | ||
template = "docs/section.html" | ||
sort_by = "weight" | ||
weight = 1 | ||
draft = false | ||
+++ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,15 @@ draft = false | |
If this VM is meant to have High availability, please read the setup for that | ||
before starting. The setup can be found [here](../ha-setup) | ||
|
||
1. Koble til wireguard | ||
1. Gå til proxmox [https://10.100.10.1:8006](https://10.100.10.1:8006) | ||
1. Koble til tailscale | ||
1. Gå til proxmox | ||
[https://pluto.vpn.fribyte.no:8006](https://pluto.vpn.fribyte.no:8006) | ||
alternativt: | ||
[https://proxmox.fribyte.no:8006](https://proxmox.fribyte.no:8006) | ||
1. Clone templaten `6000 (Clone me ubuntu)` på Skaftetrynet eller | ||
`1000 (VM 1000)` på Fergus (høyreklikk -> clone) | ||
1. Definer navn, gjerne navn på kunde | ||
1. Velg en ledig VM-ID | ||
1. Sett mode til full clone | ||
1. Sett target storage til `basseng` | ||
1. Klikk "Clone" | ||
1. Brukernavn: fribyte | ||
|
@@ -41,13 +42,17 @@ before starting. The setup can be found [here](../ha-setup) | |
1. Start vm og vent på at den er klar. Se progress ved å trykke på `Console` og | ||
se at den booter. | ||
|
||
- Det er ofte problemer på dette steget, fordi template man kopierer fra ikke | ||
virker som den skal. Spør gjerne om hjelp her. | ||
- Det er ofte problemer på dette steget, fordi template man kopierer fra ikke | ||
virker som den skal. Spør gjerne om hjelp her. | ||
|
||
1. Legg gjerne inn en DNS peker på DNS slik at man kan bruke | ||
`ssh [email protected]`. | ||
1. Du skal nå kunne `ssh` inn til den via skaftetrynet med `ssh {ip-addresse}` | ||
eller `ssh {definert-navn}` | ||
1. Registrer serveren i tailscale nettverket vårt. Dette kan du se her: | ||
[/docs/instrukser/tailscale](/docs/instrukser/tailscale) | ||
|
||
## Registrer VMen i HA | ||
|
||
Dersom denne VMen er kritisk for kunde, bør den registreres i High Availibility | ||
i clusteret vårt. Dette kan du se | ||
[/docs/instrukser/ha-setup](/docs/instrukser/ha-setup) | ||
|
||
## Tildel mer lagringsplass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
+++ | ||
title = "Ny VM Tailscale" | ||
description = "Koble ny VM til tailscale nettet" | ||
template = "docs/page.html" | ||
sort_by = "weight" | ||
weight = 5 | ||
draft = false | ||
+++ | ||
|
||
## How to connect a new VM to the tailscale network so we can ssh to it | ||
|
||
1. Install tailscale following their official guide | ||
- [https://tailscale.com/download](https://tailscale.com/download) | ||
1. Then connect to the tailscale mesh VPN by running this command | ||
|
||
``` | ||
sudo tailscale up --login-server https://headscale.fribyte.no --ssh --accept-dns=false | ||
``` | ||
|
||
1. Then you want to copy the key from the output, it should look something like | ||
follows | ||
|
||
``` | ||
mkey:27d04d3c1c5e9........ | ||
``` | ||
|
||
1. Then while keeping that terminal active, ssh into the headscale VM | ||
|
||
``` | ||
ssh fribyte@headscale | ||
``` | ||
|
||
1. Then run this command where NAME=name of VM and the `mkey:cccfdsdsfds.....` | ||
|
||
``` | ||
sudo ~/join.sh <NAME> <Machine Key> | ||
``` | ||
|
||
1. Check that the VM is accessible over tailscale by running | ||
|
||
``` | ||
ssh fribyte@<NAME> | ||
``` | ||
|
||
## Empty output | ||
|
||
If for some reason you get an empty output when running `tailscale up` you can | ||
get it from the journal log of the headscale VM. This can be seen with the | ||
command | ||
|
||
``` | ||
sudo journalctl -xeu headscale.service | ||
``` | ||
|
||
It should be within one of the last log entries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters