lima-vm / lima-vm/lima

Mounting single files into the guest

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

Description

I would like to extend `mounts` in 2 ways:

1. Allow different host and guest locations
2. Allow mounting single files instead of directories

The first seems easy enough, but it is not clear to me if this is going to work with sshfs. Also given that #118 is WIP, this may be wasted effort (unless it is rather simple to implement).

Any hints of making single file mounts work with sshfs? And if not, will those be possible with samba?

One use case (I have others) would be adding custom CA certs to the guest:

```yaml
mounts:
- host: ~/company/root.crt
guest: /usr/local/share/ca-certificates/company.crt
writable: false
provision:
- mode: system
script: |
#!/bin/bash
update-ca-certificates
```

I guess I would like to have something similar to the capabilities of the docker `-v` option to define mounts.

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.