lima-vm / lima-vm/lima

Home directory doesn't get mounted again on reboot

Open
#2,186 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

When rebooting, we lose access to the mount of the host machine home directory (`/Users/`).

Stopping and starting the vm again seems to fix the issue, it's probably because rebooting skips a few steps that starting and stopping does not, namely:
```bash
INFO[0007] [hostagent] Mounting "/Users/ze" on "/Users/ze"
```

Minimal repro:
```bash
INFO[0007] READY. Run `limactl shell debian` to open the shell.

$ limactl shell debian
ze@lima-debian:/Users/ze/Projects$ sudo reboot

$ limactl shell debian
bash: line 1: cd: /Users/ze/Projects: No such file or directory
ze@lima-debian:/Users/ze$
```

Using debian-11 template.

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.