Movatterモバイル変換


[0]ホーム

URL:


gokrazy

commandmodule
v0.0.0-...-951d711Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License:BSD-3-ClauseImports:14Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

README

Tailscale Appliance Gokrazy Image

This is (as of 2024-06-02) aWORK IN PROGRESS (pre-alpha) experiment topackage Tailscale as aGokrazy appliance imagefor use on both VMs (AWS, GCP, Azure, Proxmox, ...) and Rasperry Pis.

Seehttps://github.com/tailscale/tailscale/issues/1866

Overview

It makes a ~70MB image (about the same size astailscale-setup-full-1.66.4.exe and smaller than the combinedTailscale Android APK) that combines the Linux kernel and Tailscaleand that's it. Nothing written in C. (except optional busybox fordebugging) So no operating system to maintain. Gokrazy has threepartitions: two read-only ones (one active at a time, the other forupdates for the next boot) and one optional stateful, writablepartition that survives upgrades (/perm/)

Initial bootstrap configuration of this appliance will be over eitherserial or configuration files (auth keys, subnet routes, etc) baked intothe image (for Raspberry Pis) or in cloud-init/user-data (for AWS, etc).As of 2024-06-02, AWS user-data config files work.

Quick start

Install dependencies:

$ brew install qemu e2fsprogs

Build + launch:

$ make qemu

That puts serial on stdio. To exit the serial console and escape tothe qemu monitor, typeCtrl-a c. Then typequit in the monitor toquit.

Building

make image to build just the image (tsapp.img), without uploading it.

UTM

You can also use UTM, but the qemu path above is easier.For UTM, see theUTM instructions.

AWS

Build an AMI

go run build.go --bucket=your-S3-temp-bucket to build an AMI. Makesure your "aws" command is in your path and has access.

Creating an instance

When creating an instance, you need a Nitro machine type to get avirtual serial console. Notably, that means thet2.* instance typesthat AWS pushes as a free option are not new enough. Uset3.* at least.

As of 2024-06-02 this builder tool only supports x86_64 (arm64 shouldbe trivial and will come soon), so don't use a Graviton machine type.

To connect to the serial console, you can either use the web console, oruse the CLI like:

$ aws ec2-instance-connect send-serial-console-ssh-public-key --instance-id i-0b4a0eabc43629f13 --serial-port 0 --ssh-public-key file:///your/home/.ssh/id_ed25519.pub --region us-west-2{    "RequestId": "a93b0ea3-9ff9-45d5-b8ed-b1e70ccc0410",    "Success": true}$ ssh i-0b4a0eabc43629f13.port0@serial-console.ec2-instance-connect.us-west-2.aws

Documentation

Overview

This program builds the Tailscale Appliance Gokrazy image.

As of 2024-06-02 this is a exploratory work in progress and isnot intended for serious use.

Tracking issue ishttps://github.com/tailscale/tailscale/issues/1866

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp