dhcp lxc

chrisusei

New Member
Jun 15, 2016
1
0
1
33
Hello !

I'm trying to use ansible with proxmox API but i have a big problem ! The module proxmox.py doesn't work with PVE 4.2... anyways i found the solution.

My problem is to use the API for add a interface (eth0) with dhcp. (nodes/{node}/lxc/network)

Can you help me please ? :)
 
for example:

Code:
# pvesh set /nodes/<NODE>/lxc/<VMID>/config -net0 bridge=vmbr0,ip=dhcp,name=eth0,type=veth
 

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!