[GH-ISSUE #60] need help for vm clone #28

Closed
opened 2026-02-27 15:46:03 +03:00 by kerem · 0 comments
Owner

Originally created by @badsmoke on GitHub (Jun 3, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/60

hello people,

I am currently trying to clone vms using python.
I always have a standard template from which new vms are cloned.

my code looks like this

def create_vm(message,proxmox):
    node_name = "server1"
    source_id= 111
    target_id = get_next_id(proxmox)
    vm_name= test
    node = proxmox.nodes(node_name)
    node.qemu.source_id.clone.post(name=vm_name,
        full=1,
        newid=target_id
        )

proxmoxer.core.ResourceException: 400 Bad Request: Parameter verification failed. - b'{"errors":{"vmid":"type check (\'integer\') failed - got \'source_id\'"},"data":null}'

with a variable in the path unfortunately does not work, but vmid as parameter does not work either

node.qemu.clone.post(vmid=source_id, name=vm_name ......

proxmoxer.core.ResourceException: 501 Not Implemented: Method 'POST /nodes/kronos/qemu/clone' not implemented - b'{"data":null}'

proxmox docu
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/clone

thanks for the help

Originally created by @badsmoke on GitHub (Jun 3, 2021). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/60 hello people, I am currently trying to clone vms using python. I always have a standard template from which new vms are cloned. my code looks like this ``` def create_vm(message,proxmox): node_name = "server1" source_id= 111 target_id = get_next_id(proxmox) vm_name= test node = proxmox.nodes(node_name) node.qemu.source_id.clone.post(name=vm_name, full=1, newid=target_id ) ``` `proxmoxer.core.ResourceException: 400 Bad Request: Parameter verification failed. - b'{"errors":{"vmid":"type check (\'integer\') failed - got \'source_id\'"},"data":null}'` with a variable in the path unfortunately does not work, but vmid as parameter does not work either ``` node.qemu.clone.post(vmid=source_id, name=vm_name ...... ``` `proxmoxer.core.ResourceException: 501 Not Implemented: Method 'POST /nodes/kronos/qemu/clone' not implemented - b'{"data":null}'` proxmox docu https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/clone thanks for the help
kerem 2026-02-27 15:46:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#28
No description provided.