-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Store VM images on NAS #737
Comments
Hello Khachatur 👋 Unfortunately, the Tart right now is pretty much married to file locking: this allows it to be 100% daemon-less, which is what makes it so simple on the outside and easy to begin building with. Without both file locking or running a daemon ( While we could limit the Which NAS protocol are you planning to use? NFSv3? NFSv4? Also, as a work around/experiment you can try to symlink the local VM's disk file to the VM's disk file on NAS (as the disk is not locked by Tart) to see if the over-the-network performance is tolerable for you at all. |
I'm trying to use Thanks! |
I've tried to use only Thanks! |
@lanycrost how do you envision your workflow? You plan to clone VMs within the NAS and run it from multiple Macs? Do you have a single NAS instance? Are you concerned about network limits in case of running multiple VMs in parallel? |
Yes, as you described. Mac Minis support 10Gbps links so most probably it will work I guess I need more deep research to understand the bottlenecks of this approach, but theoretically running 50Gb image with maximum speed will take about 1 minute to bring up the machine. |
Similar to `TART_NO_AUTO_PRUNE` for advanced users to disable safety mechanisms. Fixes #737
It seems that If you have a folder with your images on a remote NAS then you can symlink it to
Which will theoretically copt over the VM from the NAS without |
It's really great idea, guess it will work :D will try to use this approach! |
Will close the issue for now. But please share how it will work for you in terms of IO. We have some thoughts about how to support launching ephemeral VMs of a remote storage like S3 and so on but haven't experimented with it yet. Waiting on update from Apple during WWDC before investing time into it. |
Currently, tart utilizes the
fcntl
system call for locking VMs, which limits compatibility withSMB
orAFP
. Enabling the ability to run VMs on shared storage would be highly valuable. This enhancement would allow for storing VM images for multiple machines in a centralized location, alleviating concerns about individual device storage limitations.Pulling machine images from a registry isn't an ideal option due to image sizes ranging from 30 to 50GBs and even 100GBs, resulting in prolonged retrieval times and significant network consumption. I suggest considering the use of files for locking up VMs, with the option to make it configurable.
Thanks!
https://chris.improbable.org/2010/12/16/everything-you-never-wanted-to-know-about-file-locking/
The text was updated successfully, but these errors were encountered: