I’m trying to build a development environment on MacOS with LXD.
hyperkit (successor of xhyve port, not exactly, but still) with ubuntu 16.04 as guest VM.
For LXD ubuntu is a host.
From MacOS there is a bridged nic 192.168.64.0/24. Ubuntu gets an IP address.
LXD (3.0.3-0ubuntu1~16.04.1) + ZFS + LXD bridge network.
What I want is to get access from MacOS host inside containers, without needing to login into Ubuntu.
I’m trying to do this
eth0: name: eth0 nictype: bridged parent: lxdbr0 type: nic eth1: name: eth1 nictype: bridged parent: br0 type: nic
eth0 gets an IP from lxdbr0, but eth1 can’t get an IP.
br0 Link encap:Ethernet HWaddr 0e:79:1a:e7:94:93 inet addr:192.168.64.26 Bcast:192.168.64.255 Mask:255.255.255.0 inet6 addr: fe80::c79:1aff:fee7:9493/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 musical-whale | RUNNING | 10.242.80.83 (eth0) | fd42:a689:134b:3738:216:3eff:feb7:6df3 (eth0) | EPHEMERAL | 0 |
The question is – how can I assign an 2 IP addresses to a container. 1 from bridged network from ubuntu host, that is bridged with MacOS and the second from internal network.
The next step is to use avahi daemon to ssh into containers by names.
I’ve read about user and groups mapping, but do not understand clearly whether I need that or not…