This works
lxc config device add c1 eth0 nic nictype=routed parent=eth0 ipv4.address=104.1.1.130
This doesn’t start.
lxc config device add c1 eth0 nic nictype=routed parent=eth0 ipv4.address=104.1.1.130
lxc config device add c1 eth1 nic nictype=routed parent=eth0 ipv4.address=104.1.1.131
lxd start c1 fails with:
lxc c1 20210117021743.367 ERROR network - network.c:lxc_network_setup_in_child_namespaces_common:3464 - File exists - Failed to add ipv4 dest "169.254.0.1" for network device "eth1"
lxc c1 20210117021743.367 ERROR network - network.c:lxc_setup_network_in_child_namespaces:3528 - File exists - Failed to setup netdev
lxc c1 20210117021743.367 ERROR conf - conf.c:lxc_setup:3295 - Failed to setup network
lxc c1 20210117021743.367 ERROR start - start.c:do_start:1218 - Failed to setup container "c1"
lxc c1 20210117021743.367 ERROR sync - sync.c:__sync_wait:36 - An error occurred in another process (expected sequence number 5)
lxc c1 20210117021743.367 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:860 - Received container state "ABORTING" instead of "RUNNING"
lxc c1 20210117021743.369 ERROR start - start.c:__lxc_start:1999 - Failed to spawn container "c1"
lxc c1 20210117021743.369 WARN start - start.c:lxc_abort:1013 - No such process - Failed to send SIGKILL via pidfd 30 for process 2884210
lxc 20210117021743.670 WARN commands - commands.c:lxc_cmd_rsp_recv:126 - Connection reset by peer - Failed to receive response for command "get_state"
Anyone got any idea? The main error appears to be Failed to add ipv4 dest "169.254.0.1" for network device "eth1"
On LXD snap 4.10