LXD Wrapper

From UVOO Tech Wiki
Jump to navigation Jump to search

a.b.c.d is ip address of LXD host and lxdbr0 is default bridge of host 172.16.0.1/23 is lxdbr0 ip/net

Proxy DNAT

lxc config device add testcontainer proxyv4 proxy nat=true listen=tcp:a.b.c.d:7777 connect=tcp:0.0.0.0:7777

Static IPS

lxc stop c1
lxc network attach lxdbr0 c1 eth0 eth0
lxc config device set c1 eth0 ipv4.address 172.168.16.11
lxc start c1