crc
crc copied to clipboard
[Request] - Change the Machine Folder (.crc) location during installation
Hi after installing the Code Ready Containers On windows i noticed that it store the VM in the OS drive.
I want to change the VM drive to a different drive (Bigger / Faster) and I don't want to break the system.
is it possible to added during the installation or in the config menu to set the VM and Cache (.crc) folder to a different path (such as another drive)
Which platform is this reported for?
Sorry forgot to mention it **edited the Original Comment ,the OS in Windows :-)
Update: from #3114 I assume this is Windows, but thanks for confirming.
There is however an issue that is inherited from minishift and machine drivers. The virtualization files and the executable need to be on the main drive, identical to what is WINDIR to work properly. An alternative might be possible, but we never got around to resolving this. However, the situation would be the same for a WSL2 environment, so it has been marked as a non-issue and mostly a shortcoming in how Hyper-V on a 'desktop class' OS handles this.
Note: You might try something with junctions or relocating a path using Disk Manager to be on another disk, but these are non-supportable scenarios.
Thanks for the answer, but both wsl2 rootfs and virtual drive can be set at a different location, i have a fedora wsl2 on my D: drive that is running without any issues and all my other VM's are also stored on drive D.
(my memory of this might be wrong) it is a limitation with the original machine driver, it stores the artifacts in the user profile. when this isn't the case, the driver is unable to get the right permissions. You are free to experiment of course as at the moment this is not a priority for us. though, if this can be solved, that would be great. At the moment there is no OOTB solution for this.
HI @gbraad you mean i can try to move the vdhx of the machine from it location (.crc) to where ever i want and test if it not broken?
i went over the files in the machines\crc folder and inotice that in the config.json file there are configuration related to the machine location.
so in order to move the vhdx i need to update the file? am i correct
I didn't say that; CRC has a reference to the hypervisor monitor, and both use their own references. I suggested 'junctions'. If you are unfamiliar to this it might better not to try this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.