Skip to content

Commit daeaa8e

Browse files
committed
moved environment variables
1 parent d851c78 commit daeaa8e

File tree

2 files changed

+39
-27
lines changed

2 files changed

+39
-27
lines changed

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

Lines changed: 38 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,31 @@ 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_X86_64`
122+
123+
- **Description**: Path to the `qemu-system-x86_64` binary.
124+
- **Default**: `qemu-system-x86_64` found in `$PATH`
125+
- **Usage**:
126+
```sh
127+
export QEMU_SYSTEM_X86_64=/usr/local/bin/qemu-system-x86_64
128+
```
129+
130+
### `QEMU_SYSTEM_AARCH64`
131+
132+
- **Description**: Path to the `qemu-system-aarch64` binary.
133+
- **Default**: `qemu-system-aarch64` found in `$PATH`
134+
- **Usage**:
135+
```sh
136+
export QEMU_SYSTEM_AARCH64=/usr/local/bin/qemu-system-aarch64
137+
```
138+
139+
### `QEMU_SYSTEM_ARM`
140+
141+
- **Description**: Path to the `qemu-system-arm` binary.
142+
- **Default**: `qemu-system-arm` found in `$PATH`
143+
- **Usage**:
144+
```sh
145+
export QEMU_SYSTEM_ARM=/usr/local/bin/qemu-system-arm
146+
```
147+

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

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

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

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

208182
![](/images/internals/lima-sequence-diagram.png)
209183

210-
(based on Lima 0.8.3)
184+
(based on Lima 0.8.3)

0 commit comments

Comments
 (0)