mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
add ability to change vm memory, remove space between amount and unit
This commit is contained in:
parent
9fa6bf051d
commit
75ef5a98d1
4 changed files with 102 additions and 3 deletions
|
@ -227,6 +227,11 @@ def change_vm_cpu(proxmox, vmid, cores):
|
|||
node.qemu(vmid).config.put(cores=cores)
|
||||
|
||||
|
||||
def change_vm_mem(proxmox, vmid, mem):
|
||||
node = proxmox.nodes(get_vm_node(proxmox, vmid))
|
||||
node.qemu(vmid).config.put(memory=mem)
|
||||
|
||||
|
||||
def get_isos(proxmox, storage):
|
||||
isos = []
|
||||
for iso in proxmox.nodes('proxmox01').storage(storage).content.get():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue