Proxmox API - Post lxc - IpV6=auto

Cubix Gamer

New Member
Jun 17, 2022
10
0
1
Good evening,
I wanted to try to POST a lxc with the api proxmox and putting in the net0 that:
Code:
"net0":"name=vmbr0,ip6=auto,gw6=2001:470:c8fb:ffff::,gw=10.0.0.1,ip=10.0.0.23/24,rate=100"

But when it creates my lxc, I look in the network tab and I have this:
Capture d’écran 2022-08-04 032500.png

It does not replace auto with ipv6 automatically
While on the documentation proxmox api I saw that it was possible:

Code:
name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]

If someone can help me it would be cool because I have to admit that I have searched on the internet without any success.
Thanks in advance for the answer and have a nice day.
 
what do you want to achieve?
 
what do you want to achieve?
More precisely I want to choose SLAAC as parameter


EDIT:
After checking, it sets SLAAC with auto but when I launch the VM it doesn't work, only when I go to network I do as if I wanted to edit net0 but I don't touch any parameter I do ok and no more error at launch

VM output if it helps:
Code:
run_buffer: 321 Script exited with status 255
lxc_create_network_priv: 3413 No such device - Failed to create network device
lxc_spawn: 1843 Failed to create the network
__lxc_start: 2074 Failed to spawn container "100"
TASK ERROR: startup for container '100' failed
 
Last edited:
your line/parameter is wrong - "name" is the name inside the container (e.g., "eth0"), "bridge" specifies the host bridge it's attached to (e.g., "vmbr0").