Environment Variables
Cubic reads the following environment variables from the host. None of them is required. Each one either overrides a default or tells Cubic something about the host it runs on.
To pass a variable of the host into a VM instance instead, see Forward Environment Variables.
QEMU and Firmware
These variables override the automatic detection described in QEMU and Firmware Detection.
Variable |
Description |
|---|---|
|
Directory of the QEMU install. Placed at the front of the search list for
the QEMU binaries, and used to locate the |
|
Path to a specific amd64 UEFI firmware (CODE) file. Overrides the descriptor based firmware selection for amd64 VM instances. |
|
Path to a specific arm64 UEFI firmware (CODE) file. Overrides the descriptor based firmware selection for arm64 VM instances. |
|
Searched for |
|
Adds |
File Locations
These variables decide where Cubic keeps VM instances and downloaded images. File Locations shows the resulting paths.
Variable |
Description |
|---|---|
|
Base directory on macOS. Fallback for the data and cache directory on
Linux. Also the |
|
Directory of the VM instances on Linux. Falls back to
|
|
Directory of the image cache on Linux. Falls back to |
|
Directory of the VM instances on Windows. Required on Windows. |
|
Directory of the image cache on Windows. Required on Windows. |
|
Directory of the VM instances in the snap package. Takes precedence over
|
|
Real home directory of the user in the snap package. Its |
|
Marks a run inside the snap package. Cubic then suggests
|
User and Terminal
Variable |
Description |
|---|---|
|
Default user name of a new VM instance. The first variable that is set
wins. A value of |
|
Terminal type requested for the SSH session of |
|
Turns off colored output when it is set to any value, including an empty one. See no-color.org. |
Network Proxy
Cubic downloads images over HTTPS and honors the usual proxy variables. Each
name also works in lower case, such as https_proxy. The upper case name wins
when both are set.
Variable |
Description |
|---|---|
|
Proxy URL for HTTPS requests, such as |
|
Proxy URL for plain HTTP requests. |
|
Proxy URL for both. A matching |
|
Comma separated list of hosts that bypass the proxy, such as
|
SSL_CERT_FILE and SSL_CERT_DIR have no effect, because Cubic ships its
own root certificates. Use a Proxy for Downloads covers the platform differences and
what to do when a proxy terminates TLS itself.
Variables Cubic Sets
Cubic sets these variables for the QEMU process it starts. Setting them on the host has no effect.
Variable |
Description |
|---|---|
|
Search list Cubic built for the QEMU binaries. |
|
Module directory of the QEMU install Cubic found. |