Proxmox API, change VM network configuration

HarusKG

Member
May 28, 2012
4
0
21
Пермь, Russia
Greetings!

Proxmox API provides the following command for a VM network adapter configuration:

# pvesh set /nodes/{node}/qemu/{vmid}/config –net0 'virtio,bridge=vmbr0,firewall=0,link_down=1'

If I run it without specifying the MAC address, it generates a new one.


Is there a way to run this command without altering the MAC address?
In my case, it is quite complicated to retrieve the MAC address in advance.
 
pvesh get /nodes/{node}/qemu/{vmid}/config --output-format=json | jq .net0 should be fairly straight-forward..
 

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!