mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 17:35:48 +03:00
[GH-ISSUE #66] Error: json: cannot unmarshal string into Go struct field VirtualMachineConfig.cpulimit of type int #13
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ricardoalcantara on GitHub (Aug 2, 2023).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/66
Shouldn't cpulimit be float32? I have set mine to 0.4 to give my VM a fraction of my CPU Core? It works on proxmox but the go-proxmox API cannot unmarshal it.
[Edit]
In the documentation https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines it says
...
...Resource Limits...
With the cpulimit (“Host CPU Time”) option you can limit how much CPU time the whole VM can use on the host. It is a floating point value representing CPU time in percent, so 1.0 is equal to 100%, 2.5 to 250% and so on.
...