From 5e210bf3ab691c9abde3ff4c08156743e19a01ba Mon Sep 17 00:00:00 2001 From: Alvaro Miranda Date: Tue, 22 Dec 2015 21:47:01 +1300 Subject: [PATCH] linked_clone if Vagrant::VERSION =~ /^1.8/ To void this message on pre Vagrant 1.8 ```bash There are errors in the configuration of this machine. Please fix the following errors and try again: VirtualBox Provider: * The following settings shouldn't exist: linked_clone ``` --- website/docs/source/v2/virtualbox/configuration.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/source/v2/virtualbox/configuration.html.md b/website/docs/source/v2/virtualbox/configuration.html.md index c633f6c5f..16f36202e 100644 --- a/website/docs/source/v2/virtualbox/configuration.html.md +++ b/website/docs/source/v2/virtualbox/configuration.html.md @@ -54,6 +54,14 @@ config.vm.provider "virtualbox" do |v| end ``` +To have backward compatibility: + +```ruby +config.vm.provider 'virtualbox' do |v| + v.linked_clone = true if Vagrant::VERSION =~ /^1.8/ +end +``` +
Note: the generated master VMs are currently not removed automatically by Vagrant. This has to be done manually. However, a master