You are not logged in.

#1 2015-09-11 15:05:09

crequill
Member
Registered: 2011-07-18
Posts: 14

systemd 225: nspawn problems

All was running fine with systemd 218.
With nspawn systemd 225, always on archlinux, I've 2 problems:

1/ I cannot login anymore on containers (/sbin/getatty exist in container):
Failed to get login PTY: No such file or directory
It seems this has be corrected with systemd 226. I will test it once it will be available on Arch Linux.

2/ if I boot one container with: systemd-nspawn -bD/var/lib/machines/ci-container/ -n,
the container boots, the ve interface is here on host and I have a prompt but netctl cannot see the interface in container!

[root@ci-container netctl]# systemctl status netctl@host0.service
* netctl at host0.service - Networking for netctl profile host0
   Loaded: loaded (/usr/lib/systemd/system/netctl at .service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2015-09-09 11:11:11 CEST; 7s ago
     Docs: man:netctl.profile(5)
  Process: 42 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
 Main PID: 42 (code=exited, status=1/FAILURE)

Sep 09 11:11:11 ci-container systemd[1]: Starting Networking for netctl profile host0...
Sep 09 11:11:11 ci-container network[42]: Starting network profile 'host0'...
Sep 09 11:11:11 ci-container systemd[1]: netctl at host0.service: Main process exited, code=exited, status=1/FAILURE
Sep 09 11:11:11 ci-container systemd[1]: Failed to start Networking for netctl profile host0.
Sep 09 11:11:11 ci-container systemd[1]: netctl at host0.service: Unit entered failed state.
Sep 09 11:11:11 ci-container systemd[1]: netctl at host0.service: Failed with result 'exit-code'.
Sep 09 11:11:11 ci-container network[42]: Interface 'host0' does not exist 
Sep 09 11:11:11 ci-container network[42]: Failed to bring the network up for profile 'host0'

[root@ci-container netctl]# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: host0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000
    link/ether 36:15:87:7b:9a:dd brd ff:ff:ff:ff:ff:ff ip:

[root@ci-container ~]# ls /sys/class/net
enp3s1f0  enp3s1f1   lo	ve-ci-container

Cause ? In container

  • /sys/class/net show the host interfaces (enp3s1f0, ...)

  • ip link show only the interfaces lo and host0 (as desired)

Have you already seen this problem on Arch?

Offline

#2 2015-09-16 15:34:49

Ape
Member
From: Finland
Registered: 2009-10-15
Posts: 46
Website

Re: systemd 225: nspawn problems

I have exactly the issue with netctl and interfaces. "ip link" shows the desired ones, but /sys/class/net has the host interfaces.

Offline

Board footer

Powered by FluxBB