<div dir="ltr"><div><div><div>In container boot with : systemd-nspawn -bD /var/lib/machines/ci-container/ -n<br></div> /sys/class/net show the host interfaces (enp3s1f0, ...)<br></div> ip link show only the interfaces lo and host0 (as desired)<br><br></div>Perhaps it's why netctl doesn't see the host0 interface<br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-09 11:48 GMT+02:00 crequill <span dir="ltr"><<a href="mailto:crequill@worldonline.fr" target="_blank">crequill@worldonline.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br>All was running fine with systemd 218.<br></div>With nspawn systemd 225, always on archlinux, I've a lot of problems:<br><br></div>1/ I cannot login anymore on containers (/sbin/getatty exist in container):<br>Failed to get login PTY: No such file or directory<br><br></div>2/ override of nspwawn file seems not to be charged (see my first message): I've discovered that directory used is now /var/lib/machines (before it was /var/lib/container). I've corrected in override.conf. With systemd-analyze dump, I've seen the override file is used but the private network is not up (I didn't see on host a ve interface).<br><br></div>3/ if I boot one container with: systemd-nspawn -bD /var/lib/machines/ci-container/ -n, the container boots, the ve interface is up on host and I have a prompt but netctl cannot see the interface in container!<br><br>[root@ci-container netctl]# systemctl status netctl@host0.service<br>* netctl@host0.service - Networking for netctl profile host0<br> Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)<br> Active: failed (Result: exit-code) since Wed 2015-09-09 11:11:11 CEST; 7s ago<br> Docs: man:netctl.profile(5)<br> Process: 42 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)<br> Main PID: 42 (code=exited, status=1/FAILURE)<br><br>Sep 09 11:11:11 ci-container systemd[1]: Starting Networking for netctl profile host0...<br>Sep 09 11:11:11 ci-container network[42]: Starting network profile 'host0'...<br>Sep 09 11:11:11 ci-container systemd[1]: netctl@host0.service: Main process exited, code=exited, status=1/FAILURE<br>Sep 09 11:11:11 ci-container systemd[1]: Failed to start Networking for netctl profile host0.<br>Sep 09 11:11:11 ci-container systemd[1]: netctl@host0.service: Unit entered failed state.<br>Sep 09 11:11:11 ci-container systemd[1]: netctl@host0.service: Failed with result 'exit-code'.<br>Sep 09 11:11:11 ci-container network[42]: Interface 'host0' does not exist<br>Sep 09 11:11:11 ci-container network[42]: Failed to bring the network up for profile 'host0'<br>[root@ci-container netctl]# ip l<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default <br> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>2: host0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000<br> link/ether 36:15:87:7b:9a:dd brd ff:ff:ff:ff:ff:ff ip: <br><br>iproute2 is working:<br>[root@ci-container netctl]# ip a add <a href="http://192.186.66.10/24" target="_blank">192.186.66.10/24</a> dev host0<br>[root@ci-container netctl]# ip a<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default <br> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br> inet <a href="http://127.0.0.1/8" target="_blank">127.0.0.1/8</a> scope host lo<br> valid_lft forever preferred_lft forever<br> inet6 ::1/128 scope host <br> valid_lft forever preferred_lft forever<br>2: host0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000<br> link/ether 36:15:87:7b:9a:dd brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://192.186.66.10/24" target="_blank">192.186.66.10/24</a> scope global host0<br> valid_lft forever preferred_lft forever<br><br></div><div><br></div>Is this a configuration migration problem from systemd 218 to 225?<br><br></div>Best regards<br></div>Christophe<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-08 19:42 GMT+02:00 <span dir="ltr"><<a href="mailto:crequill@worldonline.fr" target="_blank">crequill@worldonline.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
With systemd 225 on an archlinux, I cannot override a nspawn service anymore.<br>
Example:<br>
<br>
One container named ci-container, declared as this :<br>
# ls -al /etc/systemd/system/machines.target.wants/<br>
total 8<br>
drwxr-xr-x 2 root root 4096 8 sept. 16:06 .<br>
drwxr-xr-x 8 root root 4096 8 sept. 16:06 ..<br>
lrwxrwxrwx 1 root root 47 8 sept. 16:06 systemd-nspawn@ci\x2dcontainer.service -> /usr/lib/systemd/system/systemd-nspawn@.service<br>
<br>
With an override in /etc/systemd/system/systemd-nspawn@ci-container.service.d/<br>
total 12<br>
drwxr-xr-x 2 root root 4096 8 sept. 16:12 .<br>
drwxr-xr-x 8 root root 4096 8 sept. 16:06 ..<br>
-rw-r--r-- 1 root root 156 8 sept. 16:12 override.conf<br>
<br>
Here is the file /etc/systemd/system/systemd-nspawn@ci-container.service.d/override.conf :<br>
[Service]<br>
ExecStart=<br>
ExecStart=/usr/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-macvlan=enp3s1f0 --private-network --directory=/var/lib/container/%i<br>
<br>
But when the container boot, there is no macvlan interface in it.<br>
This was working well with systemd 218. Where is the problem ?<br>
<br>
Many thanks for your reply.<br>
Christophe<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div></div>