From 63d2dc17ec333e1ab61ea338f60973d39078adf0 Mon Sep 17 00:00:00 2001 From: Markus Blaschke Date: Fri, 24 Feb 2017 23:21:26 +0100 Subject: [PATCH] Use linked base images for parallels Difference between linked and full clones: * Linked clone creation is extremely faster than the full cloning, because there is no image copying process. * Linked clone requires much less disk space, because initially its hard disk image is less than 1Mb (it is bound to the parent's snapshot). * Full clone is a full image copy, which is independent from the box. Linked clones are bound to the specific snapshot of the box image. It means that box deletion will cause all its linked clones being corrupted. Then please, delete your boxes carefully! --- Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 8a524cb..cbb199f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -141,6 +141,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| v.cpus = configuration['VM']['cpu'] v.update_guest_tools = true + # Used linked base images, save disk space (Parallels >= 11) + # see https://parallels.github.io/vagrant-parallels/docs/configuration.html + v.linked_clone = true + if configuration['VM']['gui'] v.customize ["set", :id, "--startup-view", "window"] v.customize ["set", :id, "--on-window-close", "suspend"]