Multiple Wired Profiles with Systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hey All,

I just switched to systemd. I work on an Arch Linux Virtualbox VM which
runs on Mac OS X. I assigned 3 NIC's to that VM and 2 of them have
ethernet-dhcp profiles defined and set in /etc/conf.d/netcfg to be started
at boot.

$ cat /etc/conf.d/netcfg
NETWORKS=(public local)

However on boot, I see messages like the following:

Oct 23 15:18:52 starbucks netcfg-daemon[168]: :: public up Interface eth0
does not exist
Oct 23 15:18:52 starbucks netcfg-daemon[168]: :: local up Interface eth1
does not exist
Oct 23 15:18:52 starbucks netcfg-daemon[168]: [fail]
Oct 23 15:18:52 starbucks systemd[1]: netcfg.service: main process exited,
code=exited, status=1
Oct 23 15:18:52 starbucks systemd[1]: Failed to start Netcfg multi-profile
daemon.
Oct 23 15:18:52 starbucks systemd[1]: Unit netcfg.service entered failed
state.
Oct 23 15:18:52 starbucks systemd[1]: Starting Network.
Oct 23 15:18:52 starbucks systemd[1]: Reached target Network.
Oct 23 15:18:52 starbucks systemd[1]: Starting Apache Web Server...

Checking the interfaces via ifconfig shows that none of them are up. If I
start netcfg service manually, both interfaces will be up successfully:

$ sudo systemctl start netcfg
$ sudo systemctl status netcfg
netcfg.service - Netcfg multi-profile daemon
          Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
          Active: active (exited) since Tue, 23 Oct 2012 15:33:02 +0300;
18min ago
         Process: 354 ExecStart=/usr/bin/netcfg-daemon start (code=exited,
status=0/SUCCESS)
          CGroup: name=systemd:/system/netcfg.service
                  ├ 408 dhcpcd -qL -t 60 eth0
                  └ 474 dhcpcd -qL -t 60 eth1

I checked the forum to see if there are any solutions. Tried multi-user
services by enabling with the following commands resulted as the same:

$ sudo systemctl enable netcfg@public
$ sudo systemctl enable netcfg@local

Found out some threads on the forum that suggests to copy service
definitions and overwrite them but that didn't look like a solution to me.
All tickets created at flyspray was about 1 wireless - 1 wired setups. Some
of them are closed, marked as "Not a bug".

Anyone having the same issue? Any suggestions? Currently I enabled
netcfg.service. Sometimes all NICs are disabled, sometimes both are
enabled. Mostly however only 1 NIC (the first one) is up.

---
Quis custodiet ipsos custodes?


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux