* service 'dhcpv4-daemon' requires 'networking', which is not provided by any service @ 2019-04-05 11:27 znavko 2019-04-05 16:43 ` Ricardo Wurmus 0 siblings, 1 reply; 5+ messages in thread From: znavko @ 2019-04-05 11:27 UTC (permalink / raw) To: Help Guix [-- Attachment #1: Type: text/plain, Size: 4008 bytes --] Hello! Today I had a time to configure guix. I've deleted network-manager-service-type for to use wpa_supplicant + dhcp, but guix gives the error: # guix system reconfigure /etc/config.scm guix system: error: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service # cat /etc/config.scm ... (services (cons* ;;(service postgresql-service-type) (service xfce-desktop-service-type) (service dhcpd-service-type (dhcpd-configuration (config-file (local-file "/etc/dhcpcd.conf")) (interfaces '("wlp2s0")))) (modify-services (remove (lambda (service) (eq? (service-kind service) ntp-service-type)) (remove (lambda (service) (eq? (service-kind service) avahi-service-type)) (remove (lambda (service) (eq? (service-kind service) network-manager-service-type)) ;;(modify-services (modify-services (modify-services %desktop-services (slim-service-type config => (slim-configuration (xorg-configuration (xorg-configuration (extra-config '("Section \"InputClass\" Identifier \"touchpad\" Driver \"libinput\" MatchIsTouchpad \"on\" Option \"Tapping\" \"on\" EndSection") ))))) ) ;end of modify-services 4th (wpa-supplicant-service-type config => (wpa-supplicant-configuration (interface "wlp2s0") (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ) ;end of modify-services 3rd ;;) ;end of modify-services 2nd ) ;end of removenetwork-manager-configuration ) ;end of remove avahi ) ;end of remove2 ntp (elogind-service-type c => (elogind-configuration (handle-lid-switch 'ignore))) );;end of modify-services 1st desktop-services ));;end of services ... I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I try this config with dhcpcd. But it needs networking service. Please, how to add networking service without adding network-manager-service-type? [-- Attachment #2: Type: text/html, Size: 8929 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service 2019-04-05 11:27 service 'dhcpv4-daemon' requires 'networking', which is not provided by any service znavko @ 2019-04-05 16:43 ` Ricardo Wurmus 2019-04-05 18:34 ` znavko 0 siblings, 1 reply; 5+ messages in thread From: Ricardo Wurmus @ 2019-04-05 16:43 UTC (permalink / raw) To: znavko; +Cc: Help Guix znavko@tutanota.com writes: > I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I > try this config with dhcpcd. But it needs networking service. Please, > how to add networking service without adding > network-manager-service-type? Don’t setup a dhcp daemon then, but use dhcp-client-service-type. Quoth the manual: -- Scheme Variable: dhcp-client-service-type This is the type of services that run DHCP, a Dynamic Host Configuration Protocol (DHCP) client, on all the non-loopback network interfaces. Its value is the DHCP client package to use, ‘isc-dhcp’ by default. -- Ricardo ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service 2019-04-05 16:43 ` Ricardo Wurmus @ 2019-04-05 18:34 ` znavko 2019-04-05 18:42 ` znavko 2019-04-05 18:45 ` Ricardo Wurmus 0 siblings, 2 replies; 5+ messages in thread From: znavko @ 2019-04-05 18:34 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: Help Guix [-- Attachment #1.1: Type: text/plain, Size: 4530 bytes --] Hello, Ricardo Wurmus! I have rewrote my config, including all modifications into the one (modify-services) function, I've added dhcp-client-service-type to (services) section. But networking is not running after reconfigure. # guix system reconfigure /etc/config.scm ...console-font-tty3 console-font-tty4 console-font-tty5 console-font-tty6 virtual-terminal dbus-system elogind upower-daemon wpa-supplicant xorg-server networking... To complete the upgrade, run 'herd restart SERVICE' to stop, upgrade, and restart each service that was not automatically restarted. shepherd: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?). shepherd: Service user-homes could not be started. shepherd: Service term-auto could not be started. shepherd: Service networking could not be started. bootloader successfully installed on '/dev/sda' # tail -n150 /var/log/messages ... Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was deleted, removing watch Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was created, adding watch Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was deleted, removing watch Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was created, adding watch Apr 5 21:17:18 localhost shepherd[1]: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?). Apr 5 21:17:19 localhost shepherd[1]: Service user-homes could not be started. Apr 5 21:17:19 localhost shepherd[1]: Service term-auto could not be started. Apr 5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing Free firmware (non-Free firmware loading is disabled) Apr 5 21:17:19 localhost vmunix: [ 1821.593895] r8169 0000:03:00.0 enp3s0: unable to load firmware patch /*(DEBLOBBED)*/ (-2) Apr 5 21:17:19 localhost vmunix: [ 1821.594150] Generic PHY r8169-300:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE) Apr 5 21:17:19 localhost vmunix: [ 1821.694129] r8169 0000:03:00.0 enp3s0: Link is Down Apr 5 21:17:19 localhost dhclient: Unsupported device type 65534 for "tun0" Apr 5 21:17:19 localhost dhclient: Apr 5 21:17:19 localhost dhclient: If you think you have received this message due to a bug rather Apr 5 21:17:19 localhost dhclient: than a configuration issue please read the section on submitting Apr 5 21:17:19 localhost dhclient: bugs on either our web page at www.isc.org or in the README file Apr 5 21:17:19 localhost dhclient: before submitting a bug. These pages explain the proper Apr 5 21:17:19 localhost dhclient: process and the information we find helpful for debugging. Apr 5 21:17:19 localhost dhclient: Apr 5 21:17:19 localhost dhclient: exiting. Apr 5 21:17:19 localhost shepherd[1]: Service networking could not be started. During boot I saw: rfkill: WLAN soft blocked, and after start up I've made sure of it: # rfkill list 0: ideapad_wlan: Wireless LAN Soft blocked: yes Hard blocked: no 1: phy0: Wireless LAN Soft blocked: yes Hard blocked: no 2: ideapad_bluetooth: Bluetooth Soft blocked: yes Hard blocked: no I do not know how to overcome this soft blocking of wlan. In other distribution I added to blacklist ideapad_laptop and it worked, but here when I add ideapad_laptop to modprobe blacklist, ifconfig does not see any interface but only phy0. I think this soft blocking happens because I have bluetooth and wifi and may be they conflicts using one driver? I want to disable bluetooth at all, but lines in my config do not help: (remove (lambda (service) (eq? (service-kind service) bluetooth-service)) Let me know if there is any way to solve all these troubles? Apr 5, 2019, 4:43 PM by rekado@elephly.net: > > znavko@tutanota.com <mailto:znavko@tutanota.com>> writes: > >> I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I >> try this config with dhcpcd. But it needs networking service. Please, >> how to add networking service without adding >> network-manager-service-type? >> > > Don’t setup a dhcp daemon then, but use dhcp-client-service-type. Quoth > the manual: > > -- Scheme Variable: dhcp-client-service-type > This is the type of services that run DHCP, a Dynamic Host > Configuration Protocol (DHCP) client, on all the non-loopback > network interfaces. Its value is the DHCP client package to use, > ‘isc-dhcp’ by default. > > -- > Ricardo > [-- Attachment #1.2: Type: text/html, Size: 7441 bytes --] [-- Attachment #2: config-wpa-dhclient.conf --] [-- Type: application/octet-stream, Size: 4116 bytes --] ;;this is znavko's cute config (use-modules (gnu) (gnu system nss) (gnu system locale) ;;for locale-definition (gnu services desktop) ;;(gnu services dns) ;;for dnsmasq (srfi srfi-1) ;;for remove function (gnu services networking) ;;for remove ntp (gnu services avahi) ;;for remove avahi (gnu services xorg) ;;(gnu services databases);;for postgres (gnu packages admin) ;;for wpa_supplicant ) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4")) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons* (user-account (name "bob") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/bob")) (user-account (name "mom") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/mom")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts wpa-supplicant isc-dhcp %base-packages)) (services (cons* ;;(service postgresql-service-type) (service xfce-desktop-service-type) (service dhcp-client-service-type) (modify-services (remove (lambda (service) (eq? (service-kind service) ntp-service-type)) (remove (lambda (service) (eq? (service-kind service) avahi-service-type)) (remove (lambda (service) (eq? (service-kind service) bluetooth-service)) (remove (lambda (service) (eq? (service-kind service) network-manager-service-type)) (modify-services %desktop-services (slim-service-type config => (slim-configuration (xorg-configuration (xorg-configuration (extra-config '("Section \"InputClass\" Identifier \"touchpad\" Driver \"libinput\" MatchIsTouchpad \"on\" Option \"Tapping\" \"on\" EndSection") ))))) (wpa-supplicant-service-type config => (wpa-supplicant-configuration (interface "wlp2s0") (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ) ;end of modify-services 2nd ) ;end of remove network-manager-service-type ) ;end of remove bluetooth-service ) ;end of remove avahi ) ;end of remove ntp (elogind-service-type c => (elogind-configuration (handle-lid-switch 'ignore))) );;end of modify-services 1st desktop-services ));;end of services ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss) (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,wmi,bluetooth,pata_acpi")) ;;"modprobe.options.ath9k=nohwcrypt")) );;end of operating-system ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service 2019-04-05 18:34 ` znavko @ 2019-04-05 18:42 ` znavko 2019-04-05 18:45 ` Ricardo Wurmus 1 sibling, 0 replies; 5+ messages in thread From: znavko @ 2019-04-05 18:42 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: Help Guix [-- Attachment #1: Type: text/plain, Size: 6606 bytes --] I've got new interface tun0. Do I need any configurations in dhcp-client-service-type ? # ifconfig enp3s0 Link encap:Ethernet HWaddr xx:xx:xx:xx:22 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 TX bytes:0 lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:3791 errors:0 dropped:0 overruns:0 frame:0 TX packets:3791 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:948371 TX bytes:948371 tun0 Link encap:(hwtype unknown) inet addr:10.14.0.18 Bcast:0.0.0.0 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:1329 errors:0 dropped:0 overruns:0 frame:0 TX packets:1244 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:828098 TX bytes:735815 wlp2s0 Link encap:Ethernet HWaddr xx:xx:xx:xx:11 inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2095 errors:0 dropped:0 overruns:0 frame:0 TX packets:1320 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1192047 TX bytes:864838 Apr 5, 2019, 6:34 PM by znavko@tutanota.com: > Hello, Ricardo Wurmus! > > I have rewrote my config, including all modifications into the one (modify-services) function, I've added dhcp-client-service-type to (services) section. > > But networking is not running after reconfigure. > > # guix system reconfigure /etc/config.scm > ...console-font-tty3 console-font-tty4 console-font-tty5 console-font-tty6 virtual-terminal dbus-system elogind upower-daemon wpa-supplicant xorg-server networking... > To complete the upgrade, run 'herd restart SERVICE' to stop, > upgrade, and restart each service that was not automatically restarted. > shepherd: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?). > shepherd: Service user-homes could not be started. > shepherd: Service term-auto could not be started. > shepherd: Service networking could not be started. > bootloader successfully installed on '/dev/sda' > > # tail -n150 /var/log/messages > ... > Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was deleted, removing watch > Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was created, adding watch > Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was deleted, removing watch > Apr 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was created, adding watch > Apr 5 21:17:18 localhost shepherd[1]: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?). > Apr 5 21:17:19 localhost shepherd[1]: Service user-homes could not be started. > Apr 5 21:17:19 localhost shepherd[1]: Service term-auto could not be started. > Apr 5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing Free firmware (non-Free firmware loading is disabled) > Apr 5 21:17:19 localhost vmunix: [ 1821.593895] r8169 0000:03:00.0 enp3s0: unable to load firmware patch /*(DEBLOBBED)*/ (-2) > Apr 5 21:17:19 localhost vmunix: [ 1821.594150] Generic PHY r8169-300:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE) > Apr 5 21:17:19 localhost vmunix: [ 1821.694129] r8169 0000:03:00.0 enp3s0: Link is Down > Apr 5 21:17:19 localhost dhclient: Unsupported device type 65534 for "tun0" > Apr 5 21:17:19 localhost dhclient: > Apr 5 21:17:19 localhost dhclient: If you think you have received this message due to a bug rather > Apr 5 21:17:19 localhost dhclient: than a configuration issue please read the section on submitting > Apr 5 21:17:19 localhost dhclient: bugs on either our web page at > www.isc.org <http://www.isc.org>> or in the README file > Apr 5 21:17:19 localhost dhclient: before submitting a bug. These pages explain the proper > Apr 5 21:17:19 localhost dhclient: process and the information we find helpful for debugging. > Apr 5 21:17:19 localhost dhclient: > Apr 5 21:17:19 localhost dhclient: exiting. > Apr 5 21:17:19 localhost shepherd[1]: Service networking could not be started. > > During boot I saw: rfkill: WLAN soft blocked, and after start up I've made sure of it: > # rfkill list > 0: ideapad_wlan: Wireless LAN > Soft blocked: yes > Hard blocked: no > 1: phy0: Wireless LAN > Soft blocked: yes > Hard blocked: no > 2: ideapad_bluetooth: Bluetooth > Soft blocked: yes > Hard blocked: no > > I do not know how to overcome this soft blocking of wlan. In other distribution I added to blacklist ideapad_laptop and it worked, but here when I add ideapad_laptop to modprobe blacklist, ifconfig does not see any interface but only phy0. I think this soft blocking happens because I have bluetooth and wifi and may be they conflicts using one driver? I want to disable bluetooth at all, but lines in my config do not help: > (remove (lambda (service) (eq? (service-kind service) bluetooth-service)) > > Let me know if there is any way to solve all these troubles? > > Apr 5, 2019, 4:43 PM by > rekado@elephly.net <mailto:rekado@elephly.net>> : > >> >> znavko@tutanota.com <mailto:znavko@tutanota.com>>> writes: >> >>> I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I >>> try this config with dhcpcd. But it needs networking service. Please, >>> how to add networking service without adding >>> network-manager-service-type? >>> >> >> Don’t setup a dhcp daemon then, but use dhcp-client-service-type. Quoth >> the manual: >> >> -- Scheme Variable: dhcp-client-service-type >> This is the type of services that run DHCP, a Dynamic Host >> Configuration Protocol (DHCP) client, on all the non-loopback >> network interfaces. Its value is the DHCP client package to use, >> ‘isc-dhcp’ by default. >> >> -- >> Ricardo >> > > [-- Attachment #2: Type: text/html, Size: 10744 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service 2019-04-05 18:34 ` znavko 2019-04-05 18:42 ` znavko @ 2019-04-05 18:45 ` Ricardo Wurmus 1 sibling, 0 replies; 5+ messages in thread From: Ricardo Wurmus @ 2019-04-05 18:45 UTC (permalink / raw) To: znavko; +Cc: Help Guix znavko@tutanota.com writes: > I have rewrote my config, including all modifications into the one > (modify-services) function Well, you’re still using “modify-services” twice… :) You probably also shouldn’t nest all of these “remove” calls. You can do this all in one procedure: (remove (lambda (service) (member (service-kind service) (list ntp-service-type avahi-service-type bluetooth-service network-manager-service-type))) %desktop-services) Though I think you may be better off using %base-services when you disagree with so many of the desktop services. Another hint: %desktop-services includes gdm-service-type, not slim-service-type, so your modification of the slim service has no effect. > But networking is not running after reconfigure. > > # guix system reconfigure /etc/config.scm […] > shepherd: Service networking could not be started. […] > Apr 5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing Free firmware (non-Free firmware loading is disabled) > Apr 5 21:17:19 localhost vmunix: [ 1821.593895] r8169 0000:03:00.0 enp3s0: unable to load firmware patch /*(DEBLOBBED)*/ (-2) > Apr 5 21:17:19 localhost vmunix: [ 1821.594150] Generic PHY r8169-300:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE) > Apr 5 21:17:19 localhost vmunix: [ 1821.694129] r8169 0000:03:00.0 enp3s0: Link is Down > Apr 5 21:17:19 localhost dhclient: Unsupported device type 65534 for "tun0" Have you set up a network bridge? Have you rebooted since reconfiguring? -- Ricardo ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-05 19:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-04-05 11:27 service 'dhcpv4-daemon' requires 'networking', which is not provided by any service znavko 2019-04-05 16:43 ` Ricardo Wurmus 2019-04-05 18:34 ` znavko 2019-04-05 18:42 ` znavko 2019-04-05 18:45 ` Ricardo Wurmus
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).