About launching LXC Containers and their IP assignment

Spread the love

i am playing around with LXD and their Containers. I configured my LXD init like this:

Would you like to create a new local network bridge? (yes/no) [default=yes]: no
Would you like to configure LXD to use an existing bridge or host interface? (yes/no) [default=no]: yes
Name of the existing bridge or host interface: eth0
Would you like LXD to be available over the network? (yes/no) [default=no]: yes
Address to bind LXD to (not including port) [default=all]: default
Port to bind LXD to [default=8443]: default

so LXD created a Profile for me:

name: eth0
nictype: macvlan
parent: eth0
type: nic

My Routers IP is
some times when i start a new container it does not assign a correct IP from my Router. Or it will, but not really.
e.g. i launch Container1 and it gets the IP if i look into lxc list (where the last digit matches the assigned IP from my Router, if i look into the connected devices on my Router there is shown Container1 with IP
But the problem is i can not ping the Container. Not from my Network and also not from my LXD Host.
I can still access by lxc shell Container1, additionally the Container has Internet Access BUT it can not ping my Router (lol).
If i start 10 Containers (no matter if i start one and wait a bit or start them in a bunch) its like 3 to 5 which get a “wrong” IP. One could say, just launch another Container but i’d like to understand this circumstance.
Can anyone explain this ?

X ITM Cloud News


Leave a Reply

Next Post

Can I install aurora store on Ubuntu

Sat Sep 12 , 2020
Spread the love          Can I install Aurora store, the FOSS client of playstore in Ubuntu? For installing Android apps? X ITM Cloud News

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware