Skip to content

Past mounts are persisted through stop/start cycles #2370

@moenodedev

Description

@moenodedev

Description

Instructions:

  1. Stop the lima instance
  2. Change your home mount point
 mounts: - location: "~" - mountPoint: "/home/development" + mountPoint: "/home/trojan1" writable: true
  1. Start the lima instance
  2. Repeat with /home/trojan2, /home/trojan3, /home/trojan4

After doing this 4 times:

  • /home/trojan1 is empty (not mounted) and owned by root
  • /home/trojan2 is empty (not mounted) and owned by root
  • /home/trojan3 is mounted and owned by $USER
  • /home/trojan4 is mounted and owned by $USER
$ ls -lA /home total 5 drwxr-sr-x 2 alpine alpine 1024 Jan 28 14:51 alpine drwxr-xr-x 3 root root 1024 May 25 13:16 development drwxr-xr-x 3 development development 1024 May 25 12:49 development.linux drwxr-xr-x 2 root root 1024 May 25 13:04 trojan1 drwxr-xr-x 2 root root 1024 May 25 13:13 trojan2 drwx------ 11 development development 320 May 25 13:22 trojan3 drwx------ 11 development development 320 May 25 13:22 trojan4 
$ mount | grep ^mount mount0 on /home/trojan3 type virtiofs (rw,relatime) mount1 on /tmp/lima type virtiofs (rw,relatime) mount0 on /home/trojan4 type virtiofs (rw,relatime) 

Discussion: #2359

Configuration:

disk: "15GiB" mountType: "virtiofs" mounts: - location: "~" mountPoint: "/home/development" writable: true - location: "/tmp/lima" writable: true vmType: "vz" os: "Linux" arch: "aarch64" audio: device: "vz" video: display: "none" networks: - vzNAT: true images: - location: "https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/cloud/nocloud_alpine-3.19.1-aarch64-uefi-cloudinit-r0.qcow2" digest: "sha512:d5e69cff0ecb0fd3850bd78f56f66131115934df27b2373c35a85a74b9def52822134dd43f90b4fabe239fdd4452026cb45f1c8f0b36a43af69335a26f0959b5" arch: "aarch64" containerd: system: false user: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions