recommend converting to https://github.com/apple/container

Linux VM doesn't run native macOS toolchain and requires copying files back and forth

If you don't want to do that, don't use a VM. I like nono:

https://github.com/always-further/nono

I am skeptical there are many real use cases that require native macOS not arbitrary unix. For files, use a readonly mount https://github.com/apple/container/blob/main/docs/how-to.md#... (ie. /path:ro)