Skip to content

Commit 19469eb

Browse files
committed
Add documentation and example for ext
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
1 parent b6ca04a commit 19469eb

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

examples/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Distro:
2929
- [`experimental/gentoo`](./experimental/gentoo.yaml): [experimental] Gentoo
3030
- [`experimental/opensuse-tumbleweed`](./experimental/opensuse-tumbleweed.yaml): [experimental] openSUSE Tumbleweed
3131

32+
External:
33+
- [`experimental/ext`](./experimental/ext.yaml): [experimental] External Raspberry Pi Zero
34+
3235
Container engines:
3336
- [`apptainer`](./apptainer.yaml): Apptainer
3437
- [`apptainer-rootful`](./apptainer-rootful.yaml): Apptainer (rootful)

examples/experimental/ext.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
vmType: ext
2+
3+
arch: "aarch64"
4+
cpus: 4
5+
memory: 512MiB
6+
disk: 32GiB
7+
8+
mounts:
9+
- location: "~"
10+
- location: "/tmp/lima"
11+
writable: true
12+
13+
ssh:
14+
address: raspberrypi.local

pkg/limayaml/validate.go

+3
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ func warnExperimental(y *LimaYAML) {
483483
if *y.MountType == VIRTIOFS && runtime.GOOS == "linux" {
484484
logrus.Warn("`mountType: virtiofs` on Linux is experimental")
485485
}
486+
if *y.VMType == EXT {
487+
logrus.Warn("`vmType: ext` is experimental")
488+
}
486489
if *y.Arch == RISCV64 {
487490
logrus.Warn("`arch: riscv64` is experimental")
488491
}

website/content/en/docs/config/vmtype/_index.md

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Lima supports two ways of running guest machines:
77
- [qemu](#qemu)
88
- [vz](#vz)
99

10+
Lima also supports connecting to external machines:
11+
- [ext](#ext)
12+
1013
The vmType can be specified only on creating the instance.
1114
The vmType of existing instances cannot be changed.
1215

@@ -113,3 +116,11 @@ containerd:
113116
- When running lima using "wsl2", `${LIMA_HOME}/<INSTANCE>/serial.log` will not contain kernel boot logs
114117
- WSL2 requires a `tar` formatted rootfs archive instead of a VM image
115118
- 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.
119+
120+
## EXT
121+
> **Warning**
122+
> "ext" mode is experimental
123+
124+
"ext" option makes use of an external machine, either a virtual machine or a physical machine.
125+
126+
It is accessed using an address (for SSH), the keys are supposed to be set up for it already.

0 commit comments

Comments
 (0)