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...
So, is this an exhaustive list?
Is it declared anywhere?
Can I rely only on the specified states in my program?
I am sorry if I am asking a googleable question, but I wasn't able to find an answer...
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?
No way =)
It was a virtual machine in libvirt on Ubuntu.
The thing is that this virtual machine works perfectly when I deploy it on that same libvirt.
What is more disturbing is that I was deploying this exact same image on proxmox and there was no problem.
Maybe I've got this issue after...
I am using just local-lvm as a storage (i.e. no scsi or nfs). I am struggling for the whole day with different configurations and cache options. Nothing works =(
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...
1. If different vms have the same name it would be difficult for them to identify the one they need right? =)
2. When you are cloning, I guess, it is possible to ask a user to specify a new name for it and offer some standard name like "MyVm-clone1" (i.e. append suffix "-clone[n]").
3. In VmWare...
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?
I am sorry to take up your time, as original question has already found its answer, but I want to know this.
What is the real world use case that demands 2 different virtual machines with the same name?
Please, don't think bad about me, it is just the first time I see that there is a need for...
Thank you!
The idea is good, but, I think, implementation is not perfect. We are supporting a lot of hypervisors and this is the first time I see that thing with VmId. All the others just use virtual machine name as a key, so this won't allow for collision to happen =)
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...
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.