Skip to content

Commit 87636a3

Browse files
committed
move environment variables
1 parent 1f787fb commit 87636a3

File tree

2 files changed

+65
-27
lines changed

2 files changed

+65
-27
lines changed

website/content/en/docs/config/environment-variables.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ weight: 80
77

88
This page documents the environment variables used in Lima.
99

10+
### `LIMA_HOME`
11+
12+
- **Description**: Specifies the Lima home directory.
13+
- **Default**: `~/.lima`
14+
- **Usage**:
15+
```sh
16+
export LIMA_HOME=~/.lima-custom
17+
lima
18+
```
19+
1020
### `LIMA_INSTANCE`
1121

1222
- **Description**: Specifies the name of the Lima instance to use.
@@ -107,3 +117,57 @@ This page documents the environment variables used in Lima.
107117
```
108118
- **Note**: It is an experimental setting and has no guarantees being ever promoted to stable. It may be removed
109119
or changed at any stage of project development.
120+
121+
### `QEMU_SYSTEM_AARCH64`
122+
123+
- **Description**: Path to the `qemu-system-aarch64` binary.
124+
- **Default**: `qemu-system-aarch64` found in `$PATH`
125+
- **Usage**:
126+
```sh
127+
export QEMU_SYSTEM_AARCH64=/usr/local/bin/qemu-system-aarch64
128+
```
129+
130+
### `QEMU_SYSTEM_ARM`
131+
132+
- **Description**: Path to the `qemu-system-arm` binary.
133+
- **Default**: `qemu-system-arm` found in `$PATH`
134+
- **Usage**:
135+
```sh
136+
export QEMU_SYSTEM_ARM=/usr/local/bin/qemu-system-arm
137+
```
138+
139+
### `QEMU_SYSTEM_PPC64`
140+
141+
- **Description**: Path to the `qemu-system-ppc64` binary.
142+
- **Default**: `qemu-system-ppc64` found in `$PATH`
143+
- **Usage**:
144+
```sh
145+
export QEMU_SYSTEM_PPC64=/usr/local/bin/qemu-system-ppc64
146+
```
147+
148+
### `QEMU_SYSTEM_RISCV64`
149+
150+
- **Description**: Path to the `qemu-system-riscv64` binary.
151+
- **Default**: `qemu-system-riscv64` found in `$PATH`
152+
- **Usage**:
153+
```sh
154+
export QEMU_SYSTEM_RISCV64=/usr/local/bin/qemu-system-riscv64
155+
```
156+
157+
### `QEMU_SYSTEM_S390X`
158+
159+
- **Description**: Path to the `qemu-system-s390x` binary.
160+
- **Default**: `qemu-system-s390x` found in `$PATH`
161+
- **Usage**:
162+
```sh
163+
export QEMU_SYSTEM_S390X=/usr/local/bin/qemu-system-s390x
164+
```
165+
166+
### `QEMU_SYSTEM_X86_64`
167+
168+
- **Description**: Path to the `qemu-system-x86_64` binary.
169+
- **Default**: `qemu-system-x86_64` found in `$PATH`
170+
- **Usage**:
171+
```sh
172+
export QEMU_SYSTEM_X86_64=/usr/local/bin/qemu-system-x86_64
173+
```

website/content/en/docs/dev/internals.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -130,32 +130,6 @@ The directory contains the following files:
130130
- `<ALGO>.digest`: digest of the data, in OCI format.
131131
e.g., file name `sha256.digest`, with content `sha256:5ba3d476707d510fe3ca3928e9cda5d0b4ce527d42b343404c92d563f82ba967`
132132

133-
## Environment variables
134-
135-
- `$LIMA_HOME`: The "Lima home directory" (see above).
136-
- Default : `~/.lima`
137-
138-
- `$LIMA_INSTANCE`: `lima ...` is expanded to `limactl shell ${LIMA_INSTANCE} ...`.
139-
- Default : `default`
140-
141-
- `$LIMA_SHELL`: `lima ...` is expanded to `limactl shell --shell ${LIMA_SHELL} ...`.
142-
- No default : will use the user's shell configured inside the instance
143-
144-
- `$LIMA_TEMPLATES_PATH`: A list of directories to locate templates via
145-
the `template://` schema.
146-
- Default: the `/usr/local/share/lima/templates` directory.
147-
148-
- `$LIMA_WORKDIR`: `lima ...` is expanded to `limactl shell --workdir ${LIMA_WORKDIR} ...`.
149-
- No default : will attempt to use the current directory from the host
150-
151-
- `$QEMU_SYSTEM_X86_64`: path of `qemu-system-x86_64`
152-
- Default: `qemu-system-x86_64` in `$PATH`
153-
154-
- `$QEMU_SYSTEM_AARCH64`: path of `qemu-system-aarch64`
155-
- Default: `qemu-system-aarch64` in `$PATH`
156-
157-
- `$QEMU_SYSTEM_ARM`: path of `qemu-system-arm`
158-
- Default: `qemu-system-arm` in `$PATH`
159133

160134
## Ansible
161135
The instance directory contains an inventory file, that might be used with Ansible playbooks and commands.
@@ -213,4 +187,4 @@ The volume label is "cidata", as defined by [cloud-init NoCloud](https://docs.cl
213187

214188
![](/images/internals/lima-sequence-diagram.png)
215189

216-
(based on Lima 0.8.3)
190+
(based on Lima 0.8.3)

0 commit comments

Comments
 (0)