Problem creating a nested container

I will start from here https://www.ubuntupit.com/how-to-configure-and-use-network-bridge-in-ubuntu-linux/ and then i will follow Simos guide. Amen

Fixed !!! @tomp

  1. First create an brr.yaml file
network:
    version: 2
    renderer: networkd
    ethernets:
        eth0:
            dhcp4: no
    bridges:
        br0:
            dhcp4: yes
            interfaces:
                - eth0

Place this .yaml file to /etc/netplan inside the Server1 container.

After that execute

netplan apply

with ifconfig the br0 interfaces appear and has a suitable ip

Then

ip link set eth0 master br0

After that create a .yaml file like this


config: {}
description: Bridged networking LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: br0
    type: nic
name: bridgeprofile
used_by:

Save it as bridgeprofile.yaml

Move the bridgeprofile.yaml to the Server1 container
Inside the Server1 container.

lxc profile create brprof
lxc profile edit brprof < bridgeprofile.yaml
lxc launch -p default -p brprof ubuntu:18.04 Service

And everyone can ping everyone :slight_smile:

1 Like