Create dummy objects (VMs with IP)?

eviatars-chkp

New Member
Nov 18, 2024
17
0
1
Hey
I want to create scale test (for test API limit), for that I search easy way to create very large amount of VMs (with IP that I can query with API request -> even better), say 100,000 VMs.
Is there option to create dummy object in Proxmox VE? object that return in GET /api2/json/cluster/resources or GET /api2/json/nodes/{node}/qemu and GET /api2/json/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces (for IP) but not really exist.

Thanks
 
Is there option to create dummy object in Proxmox VE? object that return in GET /api2/json/cluster/resources or GET /api2/json/nodes/{node}/qemu
Yes, a basic VM will be returned in these responses without having been started.
GET /api2/json/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces (for IP) but not really exist.
No, this request is routed to the running process in the VM. The VM must be running with OS to report this.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Yes, a basic VM will be returned in these responses without having been started.
Thank you.
To clarify, am I correct in understanding that it is possible to create a large number of virtual machines at once using an API call, without allocating storage? This would avoid storage issues, and since the virtual machines are not started, they will still be displayed in the /api2/json/nodes/{node}/qemu call.
 
large number of virtual machines at once using an API call
You will need an API call per VM
without allocating storage
If you don't include disk request in your API call, then the VM will be created without disk. It will start but will not boot.
This would avoid storage issues
You can also use Cirros as the OS. It has very small disk requirements and is often used for Cloud scale testing : https://kb.blockbridge.com/technote/proxmox-cirros/

Note, I was never able to get QEMU Agent running on it.



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
You’re welcome! I’m glad the solution might help with testing scale events. If you find a way to create “fake VMs” with IPs that can be queried via API calls, that would indeed be beneficial.