vm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: EUPL-1.2 Imports: 14 Imported by: 0

Documentation

Overview

Package vm provides LinuxKit virtual machine management commands.

Commands:

  • run: Run a VM from image (.iso, .qcow2, .vmdk, .raw) or template
  • ps: List running VMs
  • stop: Stop a running VM
  • logs: View VM logs
  • exec: Execute command in VM via SSH
  • templates: Manage LinuxKit templates (list, build)

Uses qemu or hyperkit depending on system availability. Templates are built from YAML definitions and can include variables.

Package vm provides LinuxKit VM management commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVMCommands

func AddVMCommands(root *cobra.Command)

AddVMCommands adds container-related commands under 'vm' to the CLI.

func ParseVarFlags

func ParseVarFlags(varFlags []string) map[string]string

ParseVarFlags parses --var flags into a map. Format: --var KEY=VALUE or --var KEY="VALUE"

func RunFromTemplate

func RunFromTemplate(templateName string, vars map[string]string, runOpts container.RunOptions) error

RunFromTemplate builds and runs a LinuxKit image from a template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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