Skip to content

Add vm.mount_type config option - #747

Merged
swalkinshaw merged 1 commit into
masterfrom
vm-mount-type
Oct 18, 2026
Merged

swalkinshaw merged 1 commit into
masterfrom
vm-mount-type

Conversation

@swalkinshaw

Copy link
Copy Markdown
Member

Ref #670

Adds a vm.mount_type option to trellis.cli.yml so the Lima mount type for site directories can be overridden instead of being hardcoded per VM type. Since the CLI regenerates Lima's config on every vm start, manual edits to lima.yaml were always overwritten.

vm:
  mount_type: virtiofs # 9p | virtiofs | reverse-sshfs
  • Defaults are unchanged: virtiofs for vz (macOS), 9p for qemu (Linux)
  • The 9p.securityModel: mapped-xattr block is only rendered when the mount type is 9p
  • Applied in initInstance, so changing it takes effect on the next trellis vm start for existing VMs
  • Validated in LoadFile; documented in the README

Note: virtiofs on Linux is experimental in Lima and requires virtiofsd. Provisioning may also hit the chgrp failures described in roots/trellis#1684, which will need a Trellis-side follow-up.

🤖 Generated with Claude Code

Allows overriding the Lima mount type (9p, virtiofs, reverse-sshfs) for
site directories. Defaults are unchanged: virtiofs for vz (macOS) and 9p
for qemu (Linux). The 9p securityModel is only set when using 9p.

Ref #670

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@swalkinshaw
swalkinshaw merged commit 48fc46a into master Oct 18, 2026
9 checks passed
@swalkinshaw
swalkinshaw deleted the vm-mount-type branch October 18, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant