From 9f893534f15f848c3a75cc09551afbcf7f20568c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 23 Dec 2012 11:05:22 -0800 Subject: [PATCH] Upgrade VM customizations --- plugins/kernel_v1/config/vm.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/kernel_v1/config/vm.rb b/plugins/kernel_v1/config/vm.rb index 81fcf0885..e1b2f4520 100644 --- a/plugins/kernel_v1/config/vm.rb +++ b/plugins/kernel_v1/config/vm.rb @@ -130,6 +130,14 @@ module VagrantPlugins new.vm.guest = self.guest if self.guest new.vm.host_name = self.host_name if self.host_name + # If we have VM customizations, then we enable them on the + # VirtualBox provider on the new VM. + if self.customizations.length > 0 + self.customizations.each do |customization| + new.vm.providers[:virtualbox].config.customize(customization) + end + end + # XXX: Warning: `vm.name` is useless now end end