Skip to content

Commit

Permalink
Add documentation and example for ext
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <[email protected]>
  • Loading branch information
afbjorklund committed Jul 11, 2024
1 parent dc05c8d commit b3090d8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Distro:
- [`experimental/gentoo`](./experimental/gentoo.yaml): [experimental] Gentoo
- [`experimental/opensuse-tumbleweed`](./experimental/opensuse-tumbleweed.yaml): [experimental] openSUSE Tumbleweed

External:
- [`experimental/ext`](./experimental/ext.yaml): [experimental] External Raspberry Pi Zero

Container engines:
- [`apptainer`](./apptainer.yaml): Apptainer
- [`apptainer-rootful`](./apptainer-rootful.yaml): Apptainer (rootful)
Expand Down
14 changes: 14 additions & 0 deletions examples/experimental/ext.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
vmType: ext

arch: "aarch64"
cpus: 4
memory: 512MiB
disk: 32GiB

mounts:
- location: "~"
- location: "/tmp/lima"
writable: true

ssh:
address: raspberrypi.local
3 changes: 3 additions & 0 deletions pkg/limayaml/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ func warnExperimental(y *LimaYAML) {
if *y.VMType == VZ {
logrus.Warn("`vmType: vz` is experimental")
}
if *y.VMType == EXT {
logrus.Warn("`vmType: ext` is experimental")
}
if *y.Arch == RISCV64 {
logrus.Warn("`arch: riscv64` is experimental")
}
Expand Down
11 changes: 11 additions & 0 deletions website/content/en/docs/Config/VMType/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Lima supports two ways of running guest machines:
- [qemu](#qemu)
- [vz](#vz)

Lima also supports connecting to external machines:
- [ext](#ext)

The vmType can be specified only on creating the instance.
The vmType of existing instances cannot be changed.

Expand Down Expand Up @@ -110,3 +113,11 @@ containerd:
- When running lima using "wsl2", `${LIMA_HOME}/<INSTANCE>/serial.log` will not contain kernel boot logs
- WSL2 requires a `tar` formatted rootfs archive instead of a VM image
- Windows doesn't ship with ssh.exe, gzip.exe, etc. which are used by Lima at various points. The easiest way around this is to run `winget install -e --id Git.MinGit` (winget is now built in to Windows as well), and add the resulting `C:\Program Files\Git\usr\bin\` directory to your path.

## EXT
> **Warning**
> "ext" mode is experimental

"ext" option makes use of an external machine, either a virtual machine or a physical machine.

It is accessed using an address (for SSH), the keys are supposed to be set up for it already.

0 comments on commit b3090d8

Please sign in to comment.