lima-vm / lima-vm/lima

The QEMU-based VM registered with `limactl start-at-login` in `launchd` does not start.

Open
#2,444 1 comment 1 reaction 0 assignees View on GitHub
area/homebrew component/qemu
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

`launchd` only sets the `PATH` environment variable to `/usr/bin:/bin:/usr/sbin:/sbin`, so `limactl` fails to start because it cannot find `qemu-system-`.

The VM can be started by adding the following configuration to `io.lima-vm.autostart..plist`:
```xml
EnvironmentVariables

PATH
/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin

```

It would be beneficial if one of the following were done:
- The above configuration is automatically added to `io.lima-vm.autostart..plist`.
- The path to the QEMU to be used can be set in `lima.yaml`, and `limactl` can utilize it.
- An equivalent to the `QEMU_SYSTEM_` environment variable can be set in `lima.yaml`, and `limactl` can utilize it.

Thanks,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.