[systemd-devel] Understanding DHCP, DNS and IPMasquerade
Johannes Ernst
johannes.ernst at gmail.com
Mon Jun 15 10:39:28 PDT 2015
> On Jun 15, 2015, at 10:33, Lennart Poettering <lennart at poettering.net> wrote:
>
> On Mon, 15.06.15 10:32, Johannes Ernst (johannes.ernst at gmail.com <mailto:johannes.ernst at gmail.com>) wrote:
>
>>
>>> On Jun 14, 2015, at 15:27, Lennart Poettering <lennart at poettering.net> wrote:
>>>
>>> On Fri, 12.06.15 17:32, Johannes Ernst (johannes.ernst at gmail.com) wrote:
>>>
>>>> * host and container can ping test (if test is the name of the
>>>> * container machine per machinectl): FAILS, neither can
>>>
>>> Do you have nss-mymachines enabled in /etc/nsswitch.conf?
>>
>> Yes:
>>
>>> Does pinging via the IP addresses work?
>>
>> Yes. Both container->host and host->container.
>>
>> On host:
>>> machinectl
>> MACHINE CLASS SERVICE
>> foo container nspawn
>>
>> 1 machines listed.
>>> ping foo
>> ping: unknown host foo
>>> cat /etc/nsswitch.conf
>> hosts: nss-mymachines files mdns_minimal [NOTFOUND=return] dns myhostname
>
> Does "machinectl status" show the IP addresses of the container in its
> output?
Yes:
> sudo machinectl status foo
Since: Mon 2015-06-15 17:27:33 UTC; 9min ago
Leader: 31137 (systemd)
Service: nspawn; class container
Root: /home/buildmaster/git/github.com/uboslinux/ubos-buildconfig/repository/dev/x86_64/images/ubos_dev_container-pc_20150614-054626
Iface: ve-foo
Address: 10.0.0.2
169.254.169.115
OS: UBOS
(UBOS: for our purposes here: same as Arch)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150615/0ee70979/attachment.html>
More information about the systemd-devel
mailing list