Search results

  1. E

    Add/Delete network to VM via Proxmox API

    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...
  2. E

    Bug: Configuration file does not exist

    Every time I delete a virtual machine via web gui I get the following error message (though the virtual machine is deleted successfully):
  3. E

    List of all Virtual Machine statuses

    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?
  4. E

    How to diagnose the problem when VM is not starting

    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...
  5. E

    How to ensure that virtual machine was created?

    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...
  6. E

    How to get virtual machine description via API?

    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?
  7. E

    How to generate virtual machine id safely?

    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...
  8. E

    Set virtual machine meta info

    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...
  9. E

    How to get storage size through Proxmox API?

    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"...
  10. E

    Attach raw file to virtual machine

    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...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!