tart
tart copied to clipboard
Mounted volumes flake with "No such file or directory"
There is a bug in virtiofs
integration that is reported as FB12594177 (please bring attention to it if you have contacts at Apple) where "No such file or directory" can be reported for a file on the mounted volume even thought these files are there.
Here are steps to reproduce with Tart:
git clone https://github.com/devMEremenko/XcodeBenchmark
tart clone ghcr.io/cirruslabs/macos-ventura-xcode:latest ventura-xcode
ventura-xcode tart run --dir=$PWD/XcodeBenchmark ventura-xcode
Then inside the VM you can go to "/Volumes/My Shared Files" and run "sh benchmark.sh" to simulate the load.
@fkorotkov Would you be open to the suggestion of adding FB12594177 to OpenRadar? http://openradar.appspot.com
@jlsalmon thanks for noting OpenRadar. Just duplicated it there.
On a side note there are bunch of reports of flakes and other bugs in virtiofs
on macOS in Docker for Mac issues. Seems it's a more wide spread issue then we initially though. 😪
I'm planning on testing out with Sonoma to see if this is still an issue. Has anyone tried it out yet?
I did try a Sonoma host with a Ventura guest, and anecdotally experienced fewer issues with my specific workload, but non-zero, and the benchmark still failed. Have not tried a Sonoma/Sonoma pair yet.
Same here. Tested on some Betas for both host and guest back in July and still could reproduce. 😓 Haven't tried released version though!
Is this still an issue through the latest 14.4.1 macOS release?
@sanieldalib, unfortunately, yes. As we understand this feature of Virtualization.Framework
was envisioned for "sharing a few files from Desktop" and is not ready for heavy I/O. Right now the workaround is to use either block devices or mounting additional disks with --disk
.
@fkorotkov Thanks mate.
As we understand this feature of Virtualization.Framework was envisioned for "sharing a few files from Desktop" and is not ready for heavy I/O.
Is this based on a response from Apple on your Feedback Ticket? If so, does that mean that we should not consider directory mounting as a viable option?
Yeah, somewhat along the lines of my Feedback Ticket. Have no information if it will be improved in the next macOS version. I wouldn't put hopes on it.