lima-vm / lima-vm/lima

additionalDisks: support for optional and customizable mount point

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

Description

### Description

Currently, the additional disks are always mounted at `/mnt/lima-` and expected to be one of the support fileystem formats e.g. ext2-4, xfs

The current behaviour when the filesystem type specified is unsupported is that the disk is simply ignored by Lima during startup.

I would like to propose that we provide explicit option to disable mounting the disk, and an extra option to customize the mount point, which should give us a configuration option similar to the following.

```yaml
additionalDisks:
- name: string
format: bool
mount: bool # if the disk should be auto-mounted by Lima
mountPoint: string # custom mountPoint for the disk
fsType: string
```
**PS:** Colima relies on the current behaviour to prevent Lima from mounting a disk.

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.