Skip to content

--readonly has no effect #10

@MikkelSchubert

Description

@MikkelSchubert

Running agent-vm with the --readonly option has no effect, seemingly because fuse does not support remounting the project folder:

$ agent-vm --readonly shell
Mounting project directory as read-only...
fuse: unknown option(s): `-o relatime,user_id=1001,group_id=1001,remount'
  Resources: CPUs: 2, Memory: 4 GiB, Disk: 10 GiB
VM: agent-vm-dir-72262632 | Dir: /home/username/dir
Type 'exit' to leave (VM keeps running). Use 'agent-vm stop' to stop it.
vm:dir% touch foo
vm:dir% ls foo
foo

Moreover,

  • it makes no difference is if the VM is started or stopped when you run the above command
  • the --git-ro option does work and attempting to touch a file in .git fails.

Versions:

  • agent-vm c490c0a
  • limactl v2.0.3
  • qemu v8.2.2
  • Linux Mint 22.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions