raiseQemuError("Sorry a node without the linked base setting enabled can only be used once on your server. {} is already used by {}".format(value,node.name))
setattr(self,"_"+variable,value)
log.info('QEMU VM "{name}" [{id}] has set the QEMU {variable} path to {disk_image}'.format(name=self._name,
raiseVirtualBoxError("Sorry a node without the linked clone setting enabled can only be used once on your server. {} is already used by {}".format(vmname,node.name))
self._vmname=vmname
self._use_any_adapter=False
self._ram=0
@ -87,8 +91,8 @@ class VirtualBoxVM(BaseNode):
"ram":self.ram,
"status":self.status,
"use_any_adapter":self.use_any_adapter,
"linked_clone":self._linked_clone}
ifself._linked_clone:
"linked_clone":self.linked_clone}
ifself.linked_clone:
json["node_directory"]=self.working_dir
else:
json["node_directory"]=None
@ -156,7 +160,7 @@ class VirtualBoxVM(BaseNode):
raiseVirtualBoxError("The VirtualBox API version is lower than 4.3")
log.info("VirtualBox VM '{name}' [{id}] created".format(name=self.name,id=self.id))
raiseVMwareError("Sorry a node without the linked clone setting enabled can only be used once on your server. {} is already used by {}".format(vmx_path,node.name))