guestartifacts

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package guestartifacts serves the guest boot artifacts (the Linux kernel and the vminitd initfs) that ossein hands to Virtualization.framework.

Both are EMBEDDED into the ossein binary at build time and EXTRACTED to a content-addressed cache on first use (VZ's bootloader/disk APIs take file paths, not bytes). `just build` fetches + cosign/sha verifies the pinned ossein-kernel release and builds the initfs, then `go build` bundles them via //go:embed — so trust is settled at build time and the runtime carries no network, cosign, or GitHub dependency. A fresh binary's artifacts hash differently and land in a new cache dir, so they never collide with a previous build's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initfs

func Initfs(cacheRoot string) (string, error)

Initfs extracts the embedded vminitd initfs and returns its cache path.

func Kernel

func Kernel(cacheRoot string) (string, error)

Kernel extracts the embedded guest kernel to a content-addressed cache path under cacheRoot and returns it. Idempotent: a matching cached file is reused.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL