dhcp lxc

chrisusei

New Member
Jun 15, 2016
1
0
1
34
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