cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.65k stars 102 forks source link

Is there a way to store and run vm images from an external drive? #845

Closed anarchy89 closed 1 week ago

anarchy89 commented 1 week ago

I only have a 256gb ssd, I use an external drive to do most of my work.

Can i store and run vm images to a folder on an external drive?

fkorotkov commented 1 week ago

Yes, you can redefine TART_HOME environment variable to point to an external drive. Note that cloning will be slower since lack of APFS.

edigaryev commented 1 week ago

Yes, you can redefine TART_HOME environment variable to point to an external drive. Note that cloning will be slower since lack of APFS.

There shouldn't be any performance hit since TART_HOME applies to both VMs and OCI cache locations, and the external drive uses APFS. Or I'm missing something?

fkorotkov commented 1 week ago

You are right, if the external disk is also on APFS then no performance implication. But I think it's not common to have an APFS on an external drive and we've seen other users not having it setup this way.

anarchy89 commented 1 week ago

Yeah i have an external apfs i guess itll be fine. Thanks!

On 24 Jun 2024, at 20:53, Fedor Korotkov @.***> wrote:



You are right, if the external disk is also on APFS then no performance implication. But I think it's not common to have an APFS on an external drive and we've seen other users not having it setup this way.

— Reply to this email directly, view it on GitHubhttps://github.com/cirruslabs/tart/issues/845#issuecomment-2186510683, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABM3J47MMJSF6C5UUUTCO3TZJAJC5AVCNFSM6AAAAABJXI4YHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBWGUYTANRYGM. You are receiving this because you authored the thread.Message ID: @.***>