mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
merged proxmox fix from 3.6
This commit is contained in:
parent
1a7e7b9cd3
commit
70c8a296ca
@ -350,11 +350,17 @@ class ProxmoxClient:
|
||||
if toStorage and self.getStorage(toStorage, vmInfo.node).shared:
|
||||
node = self.getBestNodeForVm(minMemory=-1, mustHaveVGPUS=mustHaveVGPUS)
|
||||
if node is None:
|
||||
raise ProxmoxError(f'No switable node available for new vm {name} on Proxmox')
|
||||
raise ProxmoxError(
|
||||
f'No switable node available for new vm {name} on Proxmox (check memory and VGPUS, space...)'
|
||||
)
|
||||
toNode = node.name
|
||||
else:
|
||||
toNode = fromNode
|
||||
|
||||
# Check if mustHaveVGPUS is compatible with the node
|
||||
if mustHaveVGPUS is not None and mustHaveVGPUS != self.nodeHasGpu(toNode):
|
||||
raise ProxmoxNoGPUError(f'Node "{toNode}" does not have VGPUS and they are required')
|
||||
|
||||
# From normal vm, disable "linked cloning"
|
||||
if linkedClone and not vmInfo.template:
|
||||
linkedClone = False
|
||||
|
Loading…
Reference in New Issue
Block a user