We can add network device to virtual machine via web interface:
How to do the same operation via Proxmox API?
Probably I should use the command
'pvesh set /nodes/{node}/qemu/{vmid}/config', but I am not sure how to use it to add or to delete a network adapter from a virtual machine.
Could...
I can get the status of a virtual machine by using the command pvesh get /nodes/pve/qemu/100/status/current
For now, I have seen 3 different values used for this field: paused, running, stopped.
What is the total list of all possible values and where can I look up theirs meaning?
My steps to create virtual machine:
1. Upload image.raw.gz to server.
2. Run command 'gunzip -c image.raw.gz | dd of=/dev/pve/vm-100-disk-1'
3. Start virtual machine.
Suddenly from some moment there is a problem that virtual machine cannot boot from a disk:
Hardware settings:
Summary...
In my code, right after I send POST request to create virtual machine, I am trying to get its configuration (or status): "pvesh get /nodes/pve/qemu/101/config"
This command results in InternalServerError:
If I do a 2 second sleep before making a request for this config, then I don't get this...
There is a way to set description for virtual machine when making POST request.
How to retrieve that info for a particular virtual machine if we know its vmid?
Web UI shows me the recommended virtual machine id:
How can I get this recommended ID via Proxmox API in order to avoid collisions while creating virtual machines?
The best scenario of course is when I can send POST request without specifying vm id myself and let proxmox assign it for me...
I need to set meta info for my virtual machine so that I could identify it in the future.
When I do POST request to create a virtual machine I can use the field description in order to set my meta info:
request.AddParameter("description", "Secure Virtual Machine version 4.0.31.342...
I want to get the following info as in screenshot:
For now, I only know about the command 'pvesh get /storage' which gives me the following info:
[
{
"content" : "images,rootdir",
"digest" : "b6b926339dcd532a2a6e2d8a145ba4cc6c95363d",
"storage" : "local-lvm"...
I have a .raw image with linux operating system. How do I make it a hard disk for my virtual machine?
Ideally, I want proxmox to ask me the path on the filesystem to this .raw file.
Add Hard Disk
Bus/Device: VirtIO
Path to image: /tmp/images/some_image.raw
Format: RAW
I can do that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.