If you set up a space in MAAS and you declare that the VM is in that space, then when you deploy something into a container, MAAS and Juju will coordinate to get a Container set up onto a bridge connected to the interface in the VM that is connected to the same space, with an IP address from the range you declared in MAAS for that space and subnet. This also scales to support multiple interfaces in different spaces, and however many containers you request. The only reason you end up private, is because you probably haven't actually asked to be anywhere else. (Note this works the same for a machine that is actually a VM as for a physical machine.)
John =:-> On Tue, Aug 8, 2017 at 2:06 PM, Muhammad Yousuf Khan <sir...@gmail.com> wrote: > Thank you very much for the understanding right Mark. yes you are connect > i was doing that however on your advice i manage to install it on new VM > now one step is clear. but the problem is i notice. LXD is creating its own > subnet and hide the guest behind the NAT. now the problem is how can LAN > computers see LXD containers behind NAT. can't we use it the way we use it > in bridge style. where it get the IP from LAN DHCP? instead of hiding > behind NAT? > > in the context of same case. the whole idea deploying services like mysql, > kyenotes any others will be fail as all the services will be behind NAT how > come openstack services will integrate each other. > > Any knowledge sharing and tip will be highly appreciated. > Thank, > MYK > > > > On Tue, Aug 8, 2017 at 1:07 PM, Mark Shuttleworth <m...@ubuntu.com> wrote: > >> On 08/08/17 08:31, Ante Karamatić wrote: >> >> If you want to run LXD on the same host where bind is running, you just >> have to configure bind to *not* listen on LXD network: >> >> https://www.cyberciti.biz/faq/unix-linux-bsd-bind-dns-listen >> on-configuration/ >> >> uto, 8. kol 2017. 09:04 Muhammad Yousuf Khan <sir...@gmail.com> je >> napisao: >> >>> Thanks for the update Ante. but since MAAS also used Bind for its own >>> DNS resolution. how come one can use juju or lxd in absence of bind. >>> any tip will be highly appreciated. >>> >>> Thanks, >>> MYK >>> >> >> MYK, if I understand your problem, you are running a MAAS controller on >> the VM (which means bind is running) and you want to bootstrap a LXD >> localhost Juju controller on that same machine. The question is why you >> need to bootstrap a local Juju on a MAAS controller? >> >> As Ante says, you can configure the MAAS bind to avoid grabbing the lxd >> network interfaces, which ill allow LXD's dnsmasq to work alongside bind >> (because bind is focused on the main network interfaces, and dnsmasq is >> grabbing the lxd network interfaces). But that's fiddly, you would need to >> look carefully over the bind config files and make sure you don't >> inadvertently break MAAS. If you are not familiar with bind configuration, >> I don't recommend this approach. >> >> The easy answer is just to create a separate VM that points resolv.conf >> at the MAAS DNS server, and bootstrap Juju locally in that VM. You can even >> IIRC use MAAS to create that new VM, using the 'pod' functionality in 2.2. >> >> Mark >> > > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/juju > >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju