OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

sgkuser
Beiträge: 7
Registriert: 10 Jan 2020, 11:03

OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von sgkuser »

Guten Tag,

ich möchte den Einsatz von Linux-Clients+OPSI auf einem Univention Cooperate Server testen und kommen beim Einrichten des DHCP / PXE nicht weiter.

Konkret habe ich auf einem UCS mit funktionierendem DHCP per Univention-App-Center die App „opsi – Client Management“ installiert und kann darauf über den opsi config editor zugreifen. Zudem habe ich wie in opsi-getting-started-v4.1.html Abschnitt 5.1.3.5 beschrieben eine DHCP-Boot Richtlinie mit Boot-Dateiname pxelinux.0 angelegt.

Anschließend habe ich einen Client sowohl in der UMC als auch in opsi eingetragen, ihm das Netboot-Produkt ubuntu18-04 und das Produkt i-ubu-ucs-domjoin hinzugefügt und ihn auf setup gesetzt. Am Client ist Legacy-Boot aktiviert, UEFI deaktiviert.

Leider erhält der Client beim PXE-Boot kein DHCP-Signal.

Ein Ping zwischen Client und UCS funktioniert, in der /var/log/syslog des UCS finde ich keine Hinweise zu einer DHCP-Anfrage.

Unten habe ich mal den Inhalt der UCS-Verzeichnisse /tftpboot, /tftpboot/linux und /var/lib/univention-client-boot abgedruckt. Passt das so zur gesetzten Richtlinie?

Wie kann ich weiter debuggen?

Viele Grüße
Niko

-----------------------------------------------------------------------------------------------------------------------

root@ucs:/tftpboot# ls -all
insgesamt 544820
drwxr-xr-x 4 root root 4096 Jan 10 10:41 .
drwxr-xr-x 23 root root 4096 Dez 19 20:24 ..
-rw-r--r-- 1 root root 12372 Dez 18 09:56 chain.c32
drwxr-xr-x 3 root root 4096 Dez 18 09:55 grub
lrwxrwxrwx 1 root root 13 Dez 18 09:56 install -> vmlinuz-5.2.6
lrwxrwxrwx 1 root root 11 Dez 18 09:56 install64 -> install-x64
lrwxrwxrwx 1 root root 24 Dez 18 09:56 install-x64 -> vmlinuz-x64-5.2.6.signed
drwxrwxr-x 3 opsiconfd opsifileadmins 4096 Dez 18 10:03 linux
-rw-r--r-- 1 root root 52272 Dez 18 09:56 menu.c32
-rw-r--r-- 1 root root 263358816 Dez 18 09:56 miniroot-20191015.bz2
lrwxrwxrwx 1 root root 21 Dez 18 09:56 miniroot.bz2 -> miniroot-20191015.bz2
-rw-r--r-- 1 root root 263899566 Dez 18 09:56 miniroot-x64-20191015.bz2
lrwxrwxrwx 1 root root 25 Dez 18 09:56 miniroot-x64.bz2 -> miniroot-x64-20191015.bz2
-rw-r--r-- 1 root root 0 Dez 19 20:51 pxelinux.0
lrwxrwxrwx 1 root root 20 Dez 18 09:56 pxelinux.cfg -> ./linux/pxelinux.cfg
-rw-r--r-- 1 root root 7543424 Dez 18 09:56 vmlinuz-5.2.6
-rw-r--r-- 1 root root 11495584 Dez 18 09:56 vmlinuz-x64-5.2.6
-rw-r--r-- 1 root root 11497096 Dez 18 09:56 vmlinuz-x64-5.2.6.signed
root@ucs:/tftpboot#


root@ucs:/tftpboot/linux# ls -all
insgesamt 11472
drwxrwxr-x 3 opsiconfd opsifileadmins 4096 Dez 18 10:03 .
drwxr-xr-x 4 root root 4096 Jan 10 10:41 ..
-rw-rw-r-- 1 opsiconfd opsifileadmins 12372 Okt 18 09:31 chain.c32
lrwxrwxrwx 1 opsiconfd opsifileadmins 13 Okt 18 09:31 install -> vmlinuz-5.2.6
lrwxrwxrwx 1 opsiconfd opsifileadmins 11 Okt 18 09:31 install64 -> install-x64
lrwxrwxrwx 1 opsiconfd opsifileadmins 24 Okt 18 09:31 install-x64 -> vmlinuz-x64-5.2.6.signed
-rw-rw-r-- 1 opsiconfd opsifileadmins 150024 Aug 23 2013 memtest86+-5.01
-rw-rw-r-- 1 opsiconfd opsifileadmins 52272 Okt 18 09:31 menu.c32
-rw-rw-r-- 1 opsiconfd opsifileadmins 0 Jan 10 14:06 miniroot-20191015.bz2
lrwxrwxrwx 1 opsiconfd opsifileadmins 21 Okt 18 09:31 miniroot.bz2 -> miniroot-20191015.bz2
-rw-rw-r-- 1 opsiconfd opsifileadmins 0 Jan 10 14:06 miniroot-x64-20191015.bz2
lrwxrwxrwx 1 opsiconfd opsifileadmins 25 Okt 18 09:31 miniroot-x64.bz2 -> miniroot-x64-20191015.bz2
-rw-rw-r-- 1 opsiconfd opsifileadmins 15710 Okt 18 09:31 pxelinux.0
drwxrwxr-x 2 opsiconfd opsifileadmins 4096 Dez 20 09:57 pxelinux.cfg
-rw-rw-r-- 1 opsiconfd opsifileadmins 0 Jan 10 14:06 vmlinuz-5.2.6
-rw-rw-r-- 1 opsiconfd opsifileadmins 11495584 Okt 18 09:31 vmlinuz-x64-5.2.6
-rw-rw-r-- 1 opsiconfd opsifileadmins 0 Jan 10 14:06 vmlinuz-x64-5.2.6.signed
root@ucs:/tftpboot/linux#


root@ucs:/var/lib/univention-client-boot# ls -all
insgesamt 45729868
drwxr-xr-x 4 root root 4096 Dez 17 08:55 .
drwxr-xr-x 105 root root 4096 Dez 17 08:55 ..
-rw-r--r-- 1 root root 1932 Jan 18 2017 95ucc-3.0-rev2-desktop-image.img.inst
-rwxr-xr-x 1 root root 1932 Nov 29 2017 95ucc-3.0-rev3-desktop-image.img.inst
lrwxrwxrwx 1 root root 25 Mär 29 2018 chain.c32 -> /tftpboot/linux/chain.c32
drwxr-xr-x 2 root root 4096 Sep 24 07:18 custom_start_scripts
drwxr-xr-x 2 root root 4096 Jun 7 2018 image
lrwxrwxrwx 1 root root 23 Mär 29 2018 install -> /tftpboot/linux/install
lrwxrwxrwx 1 root root 27 Mär 29 2018 install-x64 -> /tftpboot/linux/install-x64
lrwxrwxrwx 1 root root 24 Mär 29 2018 menu.c32 -> /tftpboot/linux/menu.c32
lrwxrwxrwx 1 root root 28 Mär 29 2018 miniroot.bz2 -> /tftpboot/linux/miniroot.bz2
lrwxrwxrwx 1 root root 32 Mär 29 2018 miniroot-x64.bz2 -> /tftpboot/linux/miniroot-x64.bz2
-rw-r--r-- 1 root root 16107175936 Jun 19 2018 ucc-3.0-rev2-desktop-image.img
-rw-r--r-- 1 root root 43058607 Jan 18 2017 ucc-3.0-rev2-desktop-image.img.initrd
-rw-r--r-- 1 root root 7046160 Jan 18 2017 ucc-3.0-rev2-desktop-image.img.kernel
-rw-r--r-- 1 root root 65 Nov 29 2017 ucc-3.0-rev2-desktop-image.img.md5
-rw-r--r-- 1 root root 761 Jan 18 2017 ucc-3.0-rev2-desktop-image.img.xz.spec
-rw-r--r-- 1 root root 16107175936 Jun 19 2018 ucc-3.0-rev3-desktop-image.img
-rw-r--r-- 1 root root 2020081664 Jun 7 2018 ucc-3.0-rev3-desktop-image.img.bak
-rw-r--r-- 1 root root 1657016551 Jun 7 2018 ucc-3.0-rev3-desktop-image.img.gz
-rw-r--r-- 1 root root 48954642 Nov 29 2017 ucc-3.0-rev3-desktop-image.img.initrd
-rw-r--r-- 1 root root 7407392 Nov 29 2017 ucc-3.0-rev3-desktop-image.img.kernel
-rw-r--r-- 1 root root 33 Nov 29 2017 ucc-3.0-rev3-desktop-image.img.md5
-rw-r--r-- 1 root root 756 Nov 29 2017 ucc-3.0-rev3-desktop-image.img.spec
-rw-r--r-- 1 root root 1569902651 Feb 15 2018 ucc-3.0-rev3-preview-hwe.tgz
-rw-r--r-- 1 root root 1569902651 Nov 30 2017 ucc-3.0-rev3-preview-hwe.tgz.1
-rw-r--r-- 1 root root 1569902651 Nov 30 2017 ucc-3.0-rev3-preview-hwe.tgz.2
-rw-r--r-- 1 root root 63 Feb 15 2018 ucc-3.0-rev3-preview-hwe.tgz.md5
-rw-r--r-- 1 root root 63 Nov 30 2017 ucc-3.0-rev3-preview-hwe.tgz.md5.1
-rw-r--r-- 1 root root 63 Nov 30 2017 ucc-3.0-rev3-preview-hwe.tgz.md5.2
-rw-r--r-- 1 root root 3059811818 Nov 29 2017 ucc-3.0-rev3-preview.tgz
-rw-r--r-- 1 root root 3059811818 Nov 29 2017 ucc-3.0-rev3-preview.tgz.1
-rw-r--r-- 1 root root 59 Nov 29 2017 ucc-3.0-rev3-preview.tgz.md5
-rw-r--r-- 1 root root 59 Nov 29 2017 ucc-3.0-rev3-preview.tgz.md5.1
-rw-r--r-- 1 root root 59 Nov 29 2017 ucc-3.0-rev3-preview.tgz.md5.2
root@ucs:/var/lib/univention-client-boot#
SirTux
Beiträge: 566
Registriert: 05 Feb 2011, 18:37

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von SirTux »

Hi,

dann funktioniert dein UCS-DHCP wohl nichts, wenn es keine Hinweise in den Logs gibt. Da müßtest du mal deine DHCP-Konfiguration posten.

Viele Grüße,
SirTux
sgkuser
Beiträge: 7
Registriert: 10 Jan 2020, 11:03

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von sgkuser »

Hallo,

danke für die schnelle Rückmeldung. Der DHCP (univention-dhcp) war tatsächlich zwischenzeitlich deaktiviert. Nun läuft er wieder und der Client erhält beim PXE-Boot die eingetragene IP:

CLIENT MAC ADDR: 00 0C 29 A9 0F 4E GUID: 564DB855-8D56-70DE-3890-847846A90F4E
DHCP...
CLIENT IP: 172.16.0.205 MASK: 255.255.255.0 DHCP IP: 172.16.0.1
GATEWAY IP: 172.16.0.254
_

Dann geht es jedoch nicht weiter.
Unten einige Daten.

Viele Grüße
Niko

/var/log/syslog:
-------------------------------------------------------------------------------------------------
root@ucs:/var/log# cat syslog | grep dhcp
Jan 11 11:36:02 ucs ifup[439]: File: /etc/dhcp/dhclient.conf
Jan 11 11:37:13 ucs isc-dhcp-server[2689]: This script is disabled, use /etc/init.d/univention-dhcp..
Jan 11 11:37:14 ucs dhcpd[2743]: Internet Systems Consortium DHCP Server 4.3.5
Jan 11 11:37:14 ucs dhcpd[2743]: Copyright 2004-2016 Internet Systems Consortium.
Jan 11 11:37:14 ucs dhcpd[2743]: All rights reserved.
Jan 11 11:37:14 ucs dhcpd[2743]: For info, please visit https://www.isc.org/software/dhcp/
Jan 11 11:37:17 ucs dhcpd[2743]: Config file: /etc/dhcp/dhcpd.conf
Jan 11 11:37:17 ucs dhcpd[2743]: Database file: /var/lib/dhcp/dhcpd.leases
Jan 11 11:37:17 ucs dhcpd[2743]: PID file: /var/run/dhcpd.pid
Jan 11 11:37:18 ucs univention-dhcp[2690]: Starting DHCP server: dhcpdok: run: univention-dhcp: (pid 2952) 0s, normally down
Jan 11 11:37:18 ucs univention-dhcp[2690]: .
Jan 11 11:37:19 ucs dhcpd[2952]: Wrote 33 leases to leases file.
Jan 11 11:37:21 ucs dhcpd[2952]:
Jan 11 11:37:21 ucs dhcpd[2952]: No subnet declaration for docker0 (172.17.42.1).
Jan 11 11:37:21 ucs dhcpd[2952]: ** Ignoring requests on docker0. If this is not what
Jan 11 11:37:21 ucs dhcpd[2952]: you want, please write a subnet declaration
Jan 11 11:37:21 ucs dhcpd[2952]: in your dhcpd.conf file for the network segment
Jan 11 11:37:21 ucs dhcpd[2952]: to which interface docker0 is attached. **
Jan 11 11:37:21 ucs dhcpd[2952]:
Jan 11 11:37:21 ucs dhcpd[2952]: Server starting service.
Jan 11 11:37:55 ucs dhcpd[2952]: DHCPDISCOVER from 00:0c:29:a9:0f:4e via eth0
Jan 11 11:37:55 ucs dhcpd[2952]: DHCPOFFER on 172.16.0.205 to 00:0c:29:a9:0f:4e via eth0
Jan 11 11:37:58 ucs dhcpd[2952]: DHCPREQUEST for 172.16.0.205 (172.16.0.1) from 00:0c:29:a9:0f:4e via eth0
Jan 11 11:37:58 ucs dhcpd[2952]: DHCPACK on 172.16.0.205 to 00:0c:29:a9:0f:4e via eth0
root@ucs:/var/log#
-------------------------------------------------------------------------------------------------


-------------------------------------------------------------------------------------------------
root@ucs:/var#
root@ucs:/var# cat /var/log/syslog | grep opsi
Jan 11 11:36:53 ucs systemd[1]: opsipxeconfd.service: Supervising process 2362 which is not our child. We'll most likely not notice when it exits.
Jan 11 11:37:04 ucs systemd[1]: opsiconfd.service: PID file /var/run/opsiconfd/opsiconfd.pid not readable (yet?) after start: No such file or directory
root@ucs:/var#
-------------------------------------------------------------------------------------------------


/etc/dhcp/dhcpd.conf:
-------------------------------------------------------------------------------------------------
# Warning: This file is auto-generated and might be overwritten by
# univention-config-registry.
# Please edit the following file(s) instead:
# Warnung: Diese Datei wurde automatisch generiert und kann durch
# univention-config-registry ueberschrieben werden.
# Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
#
# /etc/univention/templates/files/etc/dhcp/dhcpd.conf
#

include "/etc/dhcp/univention.conf";
include "/etc/dhcp/local.conf";

option ldap-servers code 128 = array of ip-address;
option ldap-base code 129 = string;

option wpad code 252 = text;
authoritative;

ldap-server "ucs.schule.de";
ldap-dhcp-server-cn "ucs";
ldap-username "cn=ucs,cn=dc,cn=computers,dc=schule,dc=de";
ldap-password-file "/etc/machine.secret";
ldap-port 7389;
ldap-base-dn "cn=dhcp,ou=schule123 dc=schule,dc=de";
ldap-method dynamic;
# ldap-debug-file "/var/log/dhcp-ldap-startup.log";

# dynamic DNS: with external name server only!
-------------------------------------------------------------------------------------------------


/var/lib/opsi/config/clients/testclient.schule.de:
-------------------------------------------------------------------------------------------------
[info]
created = 2020-01-10 23:55:12
description =
hardwareaddress = 00:0c:29:a9:0f:4e
inventorynumber =
ipaddress = 172.16.0.205
lastseen = 2020-01-10 23:55:12
notes =

[generalconfig]
clientconfig.depot.id = ["ucs-backup.gymkus.de"]

[localboot_product_states]
l-ubu-ucs-domjoin = not_installed:setup

[netboot_product_states]
ubuntu = not_installed:setup
ubuntu18-04 = not_installed:none

[l-ubu-ucs-domjoin-state]
modificationtime = 2020-01-10 23:57:53
producttype = LocalbootProduct

[ubuntu-state]
modificationtime = 2020-01-10 23:58:09
producttype = NetbootProduct

[ubuntu18-04-state]
modificationtime = 2020-01-10 23:58:09
producttype = NetbootProduct
-------------------------------------------------------------------------------------------------


/etc/opsi/backendManager/dispatch.conf:
-------------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
# = = = = = = = = = = = = = = = = = = = = = = =
# = backend dispatch configuration =
# = = = = = = = = = = = = = = = = = = = = = = =
#
# This file configures which methods are dispatched to which backends.
# Entries has to follow the form:
# <regular expression to match method name(s)> : <comma separated list of backend name(s)>
#
# Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends.
# For every method executed on backend dispatcher the first matching regular expression will be decisive.
#
# Typical configurations:
# file, opsipxeconfd and dhcpd backend:
# backend_.* : file, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# .* : file
#
# jsonrpc, opsipxeconfd and dhcpd backend:
# backend_.* : jsonrpc, opsipxeconfd, dhcpd
# .* : jsonrpc
#
# file as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend:
# backend_.* : file, mysql, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# license.* : mysql
# softwareLicense.* : mysql
# audit.* : mysql
# .* : file
#
backend_.* : file, opsipxeconfd, dhcpd
host_.* : file, opsipxeconfd, dhcpd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
.* : file
-------------------------------------------------------------------------------------------------


/var/lib/opsi/config/config.ini:
-------------------------------------------------------------------------------------------------
[clientconfig.configserver.url]
defaultvalues = ["https://172.16.0.1:4447/rpc"]
description = URL(s) of opsi config service(s) to use
editable = true
multivalue = true
possiblevalues = ["https://172.16.0.1:4447/rpc"]
type = UnicodeConfig

[clientconfig.depot.drive]
defaultvalues = ["p:"]
description = Drive letter for depot share
editable = false
multivalue = false
possiblevalues = ["a:", "b:", "c:", "d:", "dynamic", "e:", "f:", "g:", "h:", "i:", "j:", "k:", "l:", "m:", "n:", "o:", "p:", "q:", "r:", "s:", "t:", "u:", "v:", "w:", "x:", "y:", "z:"]
type = UnicodeConfig

[clientconfig.depot.dynamic]
defaultvalues = [false]
description = Use dynamic depot selection
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[clientconfig.depot.id]
defaultvalues = ["ucs.schule.de"]
description = ID of the opsi depot to use
editable = true
multivalue = false
possiblevalues = ["ucs.schule.de"]
type = UnicodeConfig

[clientconfig.depot.protocol]
defaultvalues = ["cifs"]
description = Protocol for file transfer
editable = false
multivalue = false
possiblevalues = ["cifs", "webdav"]
type = UnicodeConfig

[clientconfig.depot.user]
defaultvalues = ["schule\\pcpatch"]
description = User for depot share
editable = true
multivalue = false
possiblevalues = ["schule\\pcpatch"]
type = UnicodeConfig

[clientconfig.dhcpd.filename]
defaultvalues = []
description = The name of the file that will be presented to the client on an TFTP request. For an client that should boot via UEFI this must include the term 'elilo'.
editable = true
multivalue = false
possiblevalues = ["elilo"]
type = UnicodeConfig

[clientconfig.install_by_shutdown.active]
defaultvalues = [false]
description = install_by_shutdown active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[clientconfig.windows.domain]
defaultvalues = ["schule"]
description = Windows domain
editable = true
multivalue = false
possiblevalues = ["schule"]
type = UnicodeConfig

[configed.domains_given]
defaultvalues = ["0:schule.de"]
description = saved domains for creating clients
editable = true
multivalue = true
possiblevalues = ["0:schule.de"]
type = UnicodeConfig

[configed.host_actions_disabled]
defaultvalues = []
description =
editable = false
multivalue = true
possiblevalues = ["add client", "remove client"]
type = UnicodeConfig

[configed.host_displayfields]
defaultvalues = ["clientConnected", "clientDescription", "clientIPAddress", "clientLastSeen", "clientName"]
description =
editable = false
multivalue = true
possiblevalues = ["UEFIboot", "WANmode", "clientConnected", "clientCreated", "clientDescription", "clientHardwareAddress", "clientIPAddress", "clientInventoryNumber", "clientLastSeen", "clientName", "clientSessionInfo", "depotId"]
type = UnicodeConfig

[configed.license_inventory_extradisplayfields]
defaultvalues = []
description = Zusatzspalten zur Host-Beschreibung\nin der Tabelle "Abgleich mit Inventarisierung"\nBitte nach Änderungen configed neu starten
editable = false
multivalue = true
possiblevalues = ["description", "inventoryNumber", "ipAddress", "lastSeen", "notes"]
type = UnicodeConfig

[configed.meta_config.wan_mode_off.opsiclientd.event_gui_startup.active]
defaultvalues = [true]
description = meta configuration for default not wan behaviour
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.meta_config.wan_mode_off.opsiclientd.event_gui_startup{user_logged_in}.active]
defaultvalues = [true]
description = meta configuration for default not wan behaviour
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.meta_config.wan_mode_off.opsiclientd.event_net_connection.active]
defaultvalues = [false]
description = meta configuration for default not wan behaviour
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.meta_config.wan_mode_off.opsiclientd.event_timer.active]
defaultvalues = [false]
description = meta configuration for default not wan behaviour
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.opsiclientd_events]
defaultvalues = ["on_demand"]
description =
editable = true
multivalue = true
possiblevalues = ["on_demand", "silent_install"]
type = UnicodeConfig

[configed.productonclient_displayfields_localboot]
defaultvalues = ["actionRequest", "installationInfo", "installationStatus", "productId", "versionInfo"]
description =
editable = false
multivalue = true
possiblevalues = ["actionRequest", "installationInfo", "installationStatus", "position", "priority", "productId", "productName", "stateChange", "targetConfiguration", "versionInfo"]
type = UnicodeConfig

[configed.productonclient_displayfields_netboot]
defaultvalues = ["actionRequest", "installationInfo", "installationStatus", "productId", "versionInfo"]
description =
editable = false
multivalue = true
possiblevalues = ["actionRequest", "installationInfo", "installationStatus", "position", "priority", "productId", "productName", "stateChange", "targetConfiguration", "versionInfo"]
type = UnicodeConfig

[configed.remote_control.opsiclientd_timeline_linux]
defaultvalues = ["firefox https://%host%:4441/info.html"]
description = opsiclientd timeline, called from a Linux environment, firefox recommended
editable = true
multivalue = false
possiblevalues = ["firefox https://%host%:4441/info.html"]
type = UnicodeConfig

[configed.remote_control.opsiclientd_timeline_linux.description]
defaultvalues = ["opsiclientd timeline, called from a Linux environment, firefox recommended"]
description =
editable = true
multivalue = false
possiblevalues = ["opsiclientd timeline, called from a Linux environment, firefox recommended"]
type = UnicodeConfig

[configed.remote_control.opsiclientd_timeline_linux.editable]
defaultvalues = [false]
description = (command may not be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.remote_control.opsiclientd_timeline_windows]
defaultvalues = ["cmd.exe /c start https://%host%:4441/info.html"]
description = opsiclientd timeline, called rfrom a Windows environment
editable = true
multivalue = false
possiblevalues = ["cmd.exe /c start https://%host%:4441/info.html"]
type = UnicodeConfig

[configed.remote_control.opsiclientd_timeline_windows.description]
defaultvalues = ["opsiclientd timeline, called rfrom a Windows environment"]
description =
editable = true
multivalue = false
possiblevalues = ["opsiclientd timeline, called rfrom a Windows environment"]
type = UnicodeConfig

[configed.remote_control.opsiclientd_timeline_windows.editable]
defaultvalues = [false]
description = (command may not be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.remote_control.ping_linux]
defaultvalues = ["xterm +hold -e ping %host%"]
description = ping, started in a Linux environment
editable = true
multivalue = false
possiblevalues = ["xterm +hold -e ping %host%"]
type = UnicodeConfig

[configed.remote_control.ping_linux.description]
defaultvalues = ["ping, started in a Linux environment"]
description =
editable = true
multivalue = false
possiblevalues = ["ping, started in a Linux environment"]
type = UnicodeConfig

[configed.remote_control.ping_linux.editable]
defaultvalues = [true]
description = (command may be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.remote_control.ping_windows]
defaultvalues = ["cmd.exe /c start ping %host%"]
description = ping, started in a Windows terminal
editable = true
multivalue = false
possiblevalues = ["cmd.exe /c start ping %host%"]
type = UnicodeConfig

[configed.remote_control.ping_windows.description]
defaultvalues = ["ping, started in a Windows terminal"]
description =
editable = true
multivalue = false
possiblevalues = ["ping, started in a Windows terminal"]
type = UnicodeConfig

[configed.remote_control.ping_windows.editable]
defaultvalues = [true]
description = (command may be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[configed.saved_search.product_failed]
defaultvalues = ["{ \"version\" : \"2\", \"data\" : { \"element\" : null, \"elementPath\" : null, \"operation\" : \"SoftwareOperation\", \"dataType\" : null, \"data\" : null, \"children\" : [ { \"element\" : \"SoftwareActionResultElement\", \"elementPath\" : [ \"Product\", \"Action Result\" ], \"operation\" : \"StringEqualsOperation\", \"dataType\" : TextType, \"data\" : \"failed\", \"children\" : null } ] } }"]
description = any product failed
editable = true
multivalue = false
possiblevalues = ["{ \"version\" : \"2\", \"data\" : { \"element\" : null, \"elementPath\" : null, \"operation\" : \"SoftwareOperation\", \"dataType\" : null, \"data\" : null, \"children\" : [ { \"element\" : \"SoftwareActionResultElement\", \"elementPath\" : [ \"Product\", \"Action Result\" ], \"operation\" : \"StringEqualsOperation\", \"dataType\" : TextType, \"data\" : \"failed\", \"children\" : null } ] } }"]
type = UnicodeConfig

[configed.saved_search.product_failed.description]
defaultvalues = ["any product failed"]
description =
editable = true
multivalue = false
possiblevalues = ["any product failed"]
type = UnicodeConfig

[configed.ssh.deploy-client-agent.default.password]
defaultvalues = [""]
description = default windows password for deploy-client-agent-script
editable = true
multivalue = false
possiblevalues = [""]
type = UnicodeConfig

[configed.ssh.deploy-client-agent.default.user]
defaultvalues = ["Administrator"]
description = default windows username for deploy-client-agent-script
editable = true
multivalue = false
possiblevalues = ["Administrator"]
type = UnicodeConfig

[configed.workbench.default]
defaultvalues = ["/var/lib/opsi/workbench/"]
description = default path to opsiproducts
editable = true
multivalue = false
possiblevalues = ["/var/lib/opsi/workbench/"]
type = UnicodeConfig

[license-management.use]
defaultvalues = [false]
description = Activate license management
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsi-linux-bootimage.append]
defaultvalues = []
description = Extra options to append to kernel command line
editable = true
multivalue = true
possiblevalues = ["acpi=off", "irqpoll", "noapic", "pci=nomsi", "reboot=b", "vga=normal"]
type = UnicodeConfig

[opsi-script.global.autoactivitydisplay]
defaultvalues = [true]
description = opsi-script.global.AutoActivityDisplay
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsi-script.global.debug_lib]
defaultvalues = [false]
description = opsi-script.global.debug_lib
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsi-script.global.debug_prog]
defaultvalues = [false]
description = opsi-script.global.debug_prog
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsi-script.global.default_loglevel]
defaultvalues = ["7"]
description = opsi-script.global.default_loglevel
editable = false
multivalue = false
possiblevalues = ["4", "5", "6", "7", "8"]
type = UnicodeConfig

[opsi-script.global.force_min_loglevel]
defaultvalues = ["0"]
description = opsi-script.global.force_min_loglevel
editable = false
multivalue = false
possiblevalues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
type = UnicodeConfig

[opsi-script.global.scripterrormessages]
defaultvalues = [false]
description = opsi-script.global.ScriptErrorMessages
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsi-script.global.w10bitlockersuspendonreboot]
defaultvalues = [false]
description = opsi-script.global.w10BitlockerSuspendOnReboot
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsiclientd.event_gui_startup.active]
defaultvalues = [true]
description = gui_startup active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsiclientd.event_gui_startup{user_logged_in}.active]
defaultvalues = [true]
description = gui_startup{user_logged_in} active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsiclientd.event_net_connection.active]
defaultvalues = [false]
description = event_net_connection active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsiclientd.event_software_on_demand.shutdown_warning_time]
defaultvalues = ["3600"]
description = opsiclientd.event_software_on_demand.shutdown_warning_time
editable = true
multivalue = false
possiblevalues = ["0", "300", "3600"]
type = UnicodeConfig

[opsiclientd.event_timer.active]
defaultvalues = [false]
description = event_timer active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[opsiclientd.event_user_login.action_processor_command]
defaultvalues = ["%action_processor.command% /sessionid service_session /loginscripts /silent"]
description = user_login action_processor
editable = true
multivalue = false
possiblevalues = ["%action_processor.command% /sessionid service_session /loginscripts /silent"]
type = UnicodeConfig

[opsiclientd.event_user_login.active]
defaultvalues = [false]
description = user_login active
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[product_sort_algorithm]
defaultvalues = ["algorithm1"]
description =
editable = false
multivalue = false
possiblevalues = ["algorithm1", "algorithm2"]
type = UnicodeConfig

[software-on-demand.active]
defaultvalues = [false]
description = Activate software-on-demand
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[software-on-demand.product-group-ids]
defaultvalues = ["software-on-demand"]
description = Product group ids containing products which are allowed to be installed on demand
editable = true
multivalue = true
possiblevalues = ["software-on-demand"]
type = UnicodeConfig

[user.{}.register]
defaultvalues = [false]
description = the primary value setting is false
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[user.{}.ssh.commandmanagement.active]
defaultvalues = [false]
description = Aktiviert die Bearbeitung von Menüeinträgen für SSH-Konsolen-Befehle
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[user.{}.ssh.commands.active]
defaultvalues = [true]
description = Schaltet die konfigurierten SSH-Menübefehle frei
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[user.{}.ssh.menu_serverconsole.active]
defaultvalues = [true]
description = Aktiviert den Hauptmenüeintrag SSH-Konsole
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig

[user.{}.ssh.serverconfiguration.active]
defaultvalues = [true]
description = Aktiviert Konfiguration der SSH-Verbindungsparameter
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
-------------------------------------------------------------------------------------------------
SirTux
Beiträge: 566
Registriert: 05 Feb 2011, 18:37

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von SirTux »

Wie genau sieht die PXE-Boot-Richtlinie aus? Hast diese auch richtig aktiviert? Das kannst du im DHCP-Modul der UMC sehen ....

Hast du mal das Netboot-Produkt hwinvent testweise auf setup gesetzt? Erscheint dann eine Datei mit der MAC-Adresse des Clients im im Ordner /tftpboot/linux/pxelinux.cfg/?
sgkuser
Beiträge: 7
Registriert: 10 Jan 2020, 11:03

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von sgkuser »

Hallo,

die PXE-Boot-Richtlinie habe ich wie in der Anleitung opsi-getting-started-v4.1 beschrieben definiert. Hier entsprechende Screenshots:

https://mega.nz/#F!2QN3yY6I!6qdtMdlXw6lXDer9eOmpyg

Dazu die Info, dass ich auf einer Kopie unseres sich im Produktivbetrieb befindenden Schul-UCS mit UCS@School arbeite. Dieser UCS agiert in einer Single-Server-Umgebung sowohl als Domänencontroller Master (Domäne = "schule") als auch als Slave (Organisationseinheit = schule123). Hier gibt es zwei DHCP-Objekte; die Richtlinie habe ich mal bei beiden definiert.

Das Netboot-Produkt hwinvent habe ich testweise auf setup gesetzt. Es erscheint eine leere Datei mit der MAC-Adresse des Testclients (01-00-0c-29-a9-0f-4e):

root@ucs:/tftpboot/linux/pxelinux.cfg# ls -all
insgesamt 3028
drwxrwxr-x 2 opsiconfd opsifileadmins 4096 Jan 13 15:39 .
drwxrwxr-x 3 opsiconfd opsifileadmins 4096 Dez 18 10:03 ..
prw-r--r-- 1 root root 0 Jan 13 15:39 01-00-0c-29-a9-0f-4e
prw-r--r-- 1 root root 0 Jan 11 11:37 01-1c-69-7a-02-62-db
prw-r--r-- 1 root root 0 Jan 11 11:36 01-f4-4d-30-6f-2c-4e
-rw-rw-r-- 1 opsiconfd opsifileadmins 527 Mär 21 2019 AC100007
-rw-rw-r-- 1 opsiconfd opsifileadmins 527 Mär 26 2019 AC100008
-rw-rw-r-- 1 opsiconfd opsifileadmins 527 Okt 30 14:12 AC100009
-rw-rw-r-- 1 opsiconfd opsifileadmins 528 Okt 30 14:31 AC10000A
...

Viele Grüße
Niko
Benutzeravatar
ThomasT
uib-Team
Beiträge: 538
Registriert: 26 Jun 2013, 12:26

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von ThomasT »

Hallo Niko,

was sagt denn

Code: Alles auswählen

journalctl -f -u opsi-tftpd-hpa.service
Kein Support per DM!
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.
sgkuser
Beiträge: 7
Registriert: 10 Jan 2020, 11:03

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von sgkuser »

Hallo,

der Befehl liefert Einträge zum Testclient:

root@ucs:/# journalctl -f -u opsi-tftpd-hpa.service
-- Logs begin at Tue 2019-04-02 14:15:01 CEST. --
Jan 13 15:40:46 ucs in.tftpd[9381]: RRQ from 172.16.0.205 filename pxelinux.0
Jan 13 15:40:46 ucs in.tftpd[9382]: RRQ from 172.16.0.205 filename pxelinux.0
^C
root@ucs:/#

Viele Grüße
Niko
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von uncle_scrooge »

(Disclaimer: Ich habe keine Ahnung von UCS.)

Bitte die DHCP-Konfiguration (option 67) prüfen.
So wie es aussieht, greift Dein Client nach /tftpboot/pxelinux.0 statt nach /tftpboot/linux/pxelinux.0. Und das wird nicht funktionieren.

Warum überhaupt direkt in /tftpboot 'OPSI-Dateien' liegen, darfst Du uns erklären...
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von m.radtke »

Hi

das ist so weil unter UCS früher eine andere Dateistruktur existierte und wir beim Umstieg auf debian Standard unter /tftpboot/ nicht wollten das die UCS Admins überall die DHCP Richtlinie ändern müssen.


Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
SirTux
Beiträge: 566
Registriert: 05 Feb 2011, 18:37

Re: OPSI 4.1 und UCS 4.4 - PXE-Boot funktioniert nicht

Beitrag von SirTux »

m.radtke hat geschrieben: das ist so weil unter UCS früher eine andere Dateistruktur existierte und wir beim Umstieg auf debian Standard unter /tftpboot/ nicht wollten das die UCS Admins überall die DHCP Richtlinie ändern müssen.
Das Ändern der Recthlinie wäre aber IMO eine saubere Sache gewesen.
Antworten