When I create a VM (via vagrant), I want the new VM's "Reclaim disk space on shutdown" preference to default to "Yes", so that disk space on my macOS host is not wasted.
I use vagrant to spin up headless GNU/Linux distributions to develop software, or compile software projects. For speed, and cleanliness, I tend to do the heavy lifting in the VM's own disk (rather than in the /vagrant prl_fs mount). For example, compilers, docker images, golang repos are all downloaded to the VM's disk. After a few round of building and cleaning (as in "make clean") my software the VM has consumed 10s of GiB that were subsequently discarded.
I spent this afternoon playing with ~/.vagrant.d/Vagrantfile to ensure that "fstrim -va" is called from within the guest when it is shutdown. However, until I right-click the VM in Parallels GUI and choose to reclaim disk space I do not get any benefit from that.
I found that there's a per-VM preference to "Reclaim disk space on shutdown". Please can this be set true by default? Or provide a way to set it via prlctl, so I can script setting it when I create new VMs via vagrant?
I can't think of any compelling reasons why you wouldn't want to reclaim disk space after shutting down a VM - seems the ideal time to perform clean up. In my (limited) experience it only takes a few moments to complete even when freeing 50-60 GiB.
I use vagrant to spin up headless GNU/Linux distributions to develop software, or compile software projects. For speed, and cleanliness, I tend to do the heavy lifting in the VM's own disk (rather than in the /vagrant prl_fs mount). For example, compilers, docker images, golang repos are all downloaded to the VM's disk. After a few round of building and cleaning (as in "make clean") my software the VM has consumed 10s of GiB that were subsequently discarded.
I spent this afternoon playing with ~/.vagrant.d/Vagrantfile to ensure that "fstrim -va" is called from within the guest when it is shutdown. However, until I right-click the VM in Parallels GUI and choose to reclaim disk space I do not get any benefit from that.
I found that there's a per-VM preference to "Reclaim disk space on shutdown". Please can this be set true by default? Or provide a way to set it via prlctl, so I can script setting it when I create new VMs via vagrant?
I can't think of any compelling reasons why you wouldn't want to reclaim disk space after shutting down a VM - seems the ideal time to perform clean up. In my (limited) experience it only takes a few moments to complete even when freeing 50-60 GiB.