Skip to content

config: support overriding the guest directory with HOST_DIR set#146

Open
mathstuf wants to merge 1 commit into
cirruslabs:mainfrom
mathstuf:guest-build-dir-with-host-dir
Open

config: support overriding the guest directory with HOST_DIR set#146
mathstuf wants to merge 1 commit into
cirruslabs:mainfrom
mathstuf:guest-build-dir-with-host-dir

Conversation

@mathstuf

@mathstuf mathstuf commented Jul 6, 2026

Copy link
Copy Markdown

Fixes: #145

@mathstuf
mathstuf force-pushed the guest-build-dir-with-host-dir branch from 479b8eb to 9811284 Compare July 7, 2026 02:53
@mathstuf
mathstuf marked this pull request as draft July 7, 2026 03:47
@mathstuf

mathstuf commented Jul 7, 2026

Copy link
Copy Markdown
Author

This fails with mount_virtiofs: failed to mount /OUR/CUSTOM/PATH: Operation not permitted. Needs more work.

@mathstuf

mathstuf commented Jul 7, 2026

Copy link
Copy Markdown
Author

So investigating, it looks like things are hooked up with:

  • --dir offers the host-side directory for mounting and tags it with tart.virtiofs.*
  • when setting up the VM, this triggers commands to do mkdir -p $path on the VM-side path and to call mount_virtiofs tart.virtiofs.* $path

Need to do some manual testing to learn why our custom path is denied while /var/tmp/* is accepted.

@Brett-Best

Copy link
Copy Markdown

@mathstuf just FYI, I believe that on macOS 27b3 this is hardened further and /var/tmp/* is no longer accepted. I need to look into that further.

@mathstuf

mathstuf commented Jul 7, 2026

Copy link
Copy Markdown
Author

Oh fun. Yeah, still on 26 here.

@mathstuf

mathstuf commented Jul 7, 2026

Copy link
Copy Markdown
Author

Ah! The Tart VM bits missed the "create the directory". Let me respin images…

@mathstuf
mathstuf marked this pull request as ready for review July 8, 2026 15:28
@mathstuf

mathstuf commented Jul 8, 2026

Copy link
Copy Markdown
Author

Images with the requested directory and the correct permissions work with this change. Tested in our CI setup.

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.

Why is TART_EXECUTOR_HOST_DIR incompatible with --guest-builds-dir?

2 participants