From d24d0fe7908827b5643be809b1c7d8089da46086 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 17 Aug 2022 02:02:36 +0200 Subject: [PATCH] Correzioni per richiamata dischi e configurazione. --- proxmoxve-python/__main__.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/proxmoxve-python/__main__.py b/proxmoxve-python/__main__.py index 6281a59..f52c267 100644 --- a/proxmoxve-python/__main__.py +++ b/proxmoxve-python/__main__.py @@ -32,10 +32,17 @@ vm = proxmox.vm.VirtualMachine("vm", ), clone = proxmox.vm.VirtualMachineCloneArgs( node_name = config.require("node_name"), - datastore_id = "local-lvm", - size = 20, - file_format = "qcow2" + vm_id = config.require("clonevm"), + full = True ), + disks = [ + proxmox.vm.VirtualMachineDiskArgs( + interface = "virtio0", + datastore_id = "local-lvm", + size = 20, + file_format = "qcow2" + ) + ], network_devices = [ proxmox.vm.VirtualMachineNetworkDeviceArgs( bridge = "vmbr0",