lima icon indicating copy to clipboard operation
lima copied to clipboard

Adds `volume` command and allows multiple disks

Open sam-berning opened this issue 3 years ago • 1 comments

https://github.com/lima-vm/lima/issues/722

After looking through the discussion on https://github.com/lima-vm/lima/pull/759, I implemented a basic volume command. Volumes are stored under a _volumes directory under $LIMA_HOME and can be attached by name to an instance in its LimaYAML.

Also added a boot script that performs some setup for volumes. So far, it creates a filesystem labeled with the volume name if it's the first time the volume has been attached to an instance. In the future, we could expand it to bind-mount the volume to specific directories.

sam-berning avatar Sep 23 '22 00:09 sam-berning

Please fix linter errors (run make lint locally to verify).

jandubois avatar Oct 07 '22 23:10 jandubois

Please rebase the PR to resolve merge conflicts!

jandubois avatar Oct 18 '22 07:10 jandubois

Please squash commits and make sure to keep the PR title consistent with the actual code

AkihiroSuda avatar Oct 21 '22 01:10 AkihiroSuda

This PR also needs to be rebased on latest master so it can pass integration tests.

jandubois avatar Nov 03 '22 00:11 jandubois