From 51ee5b53b0eabc900710f3f3e94ac03109386cf9 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Thu, 5 Nov 2015 14:57:22 +0200 Subject: [PATCH] action/box_register: Convert box-bundled template to VM --- lib/vagrant-parallels/action/box_register.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/vagrant-parallels/action/box_register.rb b/lib/vagrant-parallels/action/box_register.rb index c7faaa68..659c2ec6 100644 --- a/lib/vagrant-parallels/action/box_register.rb +++ b/lib/vagrant-parallels/action/box_register.rb @@ -102,6 +102,12 @@ def register_box(env) box_id_file.open('w+') do |f| f.write(env[:clone_id]) end + + if env[:machine].provider.pd_version_satisfies?('>= 10') + # Convert template to VM (compatibility with old-styled boxes) + env[:machine].provider.driver.execute_prlctl( + 'set', env[:clone_id], '--template', 'off') + end end end end