From 76a9b287520b44812b386d55275373974a95856b Mon Sep 17 00:00:00 2001 From: jteehan Date: Mon, 28 Mar 2016 15:49:11 -0700 Subject: [PATCH] [FIX] Configure Guest Services on new VM prior to power on --- mgmtsystem/scvmm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mgmtsystem/scvmm.py b/mgmtsystem/scvmm.py index 2bc5977f..6a9b9f69 100644 --- a/mgmtsystem/scvmm.py +++ b/mgmtsystem/scvmm.py @@ -272,10 +272,15 @@ def deploy_template(self, template, host_group, vm_name=None, **kwargs): self.logger.info(" Deploying SCVMM VM `{}` from template `{}` on host group `{}`" .format(vm_name, template, host_group)) self.run_script(script) + self.enable_virtual_services(vm_name) self.start_vm(vm_name) self.wait_vm_running(vm_name, num_sec=timeout) return vm_name + def enable_virtual_services(self, vm_name): + self.run_script( + "Set-SCVirtualMachine -InstallVirtualizationGuestServices 1 -VM '{}' ".format(vm_name)) + def mark_as_template(self, vm_name, library, library_share): # Converts an existing VM into a template. VM no longer exists afterwards. script = """