Little Help - Setting LXD/LXC for my testing network

Hi!

  1. In LXD terminology, you have the host and the many containers inside this host.
    I suppose that overall the computer running LXD is a server computer.

  2. You can expose LXD containers to the LAN by using either a bridge or macvlan.
    I have written a tutorial for each, see index at The LXD tutorials of Simos
    You do not use DHCP, therefore you would need to assign the IP addresses manually.

  3. The containers will be able to access the Internet.
    To be accessible from the Internet, you would need to perform port forwarding as you normally do.
    What I have not tried, is whether the router would be OK if an Ethernet port has more than one IP addresses.
    With a WiFi router it is not possible because it expects a single IP address coming from a secure WiFi connection.
    That is, the same Ethernet port for 192.168.0.2 would also coincide with all other containers.
    It is a simple test, and you can try with a port forwarding rule to the given IP address of the container.
    Most likely it will work.

2 Likes