Centos 7 mit opsi pxe-boot mit windows dhcp

Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von n.wenselowski »

Hallo Jonas,

ganz banale Frage: stehe beim Windows-Server die Option 67 (die Datei) in Anführungszeichen? Wenn ja, versuchs mal bitte ohne.


Gruß

Niko

Code: Alles auswählen

import OPSI
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Hey,

hab ebend diese Option noch einmal überprüft, die Datei ist ohne Anführungszeichen eingetragen. ;)

Aber Warum wird eigentlich wenn ich opsi-setup --init-current-config ausführe angezeigt:

Code: Alles auswählen

[5] [Jan 22 16:00:30] Creating base path: '/var/lib/opsi/config' (File.py|233)
[5] [Jan 22 16:00:30] Try to find a Configserver. (opsi-setup|2665)
[5] [Jan 22 16:00:30] Getting current system config (opsi-setup|123)
[3] [Jan 22 16:00:30] Unexpected ifconfig line 'inet 172.26.2.25  netmask 255.255.0.0  broadcast 172.26.255.255' (Posix.py|420)
[4] [Jan 22 16:00:30] Failed to get vendor/device id for network device eth0 (Posix.py|453)
[5] [Jan 22 16:00:30] System information: (opsi-setup|176)
[5] [Jan 22 16:00:30]    distributor  : CentOS (opsi-setup|177)
[5] [Jan 22 16:00:30]    distribution : CentOS Linux release 7.0.1406 (Core) (opsi-setup|178)
[5] [Jan 22 16:00:30]    ip address   : 172.26.2.25 (opsi-setup|179)
[5] [Jan 22 16:00:30]    netmask      : 255.255.255.0 (opsi-setup|180)
[5] [Jan 22 16:00:30]    subnet       : 172.26.2.0 (opsi-setup|181)
[5] [Jan 22 16:00:30]    broadcast    : 172.26.2.255 (opsi-setup|182)
[5] [Jan 22 16:00:30]    fqdn         : ivavopsi.xxxx (opsi-setup|183)
[5] [Jan 22 16:00:30]    hostname     : ivavopsi (opsi-setup|184)
[5] [Jan 22 16:00:30]    domain       : xxxx (opsi-setup|185)
[5] [Jan 22 16:00:30]    win domain   : MYGROUP (opsi-setup|186)
Kann das vllt Grund für den Fehler sein? Ansonsten aber ist der Server ohne Probleme per SSH oder die SMB-Freigabe erreichbar.

Gruß
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von n.wenselowski »

Hallo Jonas,

das ist vermutlich ein anderes Problem.
Kannst du mir die Ausgabe von "ifconfig eth0" zur Verfügung stellen?


Gruß

Niko

Code: Alles auswählen

import OPSI
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Ausgabe von ifconfig eth0:

Code: Alles auswählen

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.26.2.25  netmask 255.255.0.0  broadcast 172.26.255.255
        inet6 fe80::215:5dff:fe01:151b  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:01:15:1b  txqueuelen 1000  (Ethernet)
        RX packets 12043  bytes 958928 (936.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1176  bytes 512566 (500.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Moin,

nachdem ich hier im Forum gelesen hatte, das jemand ein änliches Problem mit dem PXE Boot mit einer CentOS installation, habe ich von meinem Server ein Snapshot gemacht und es neuaufgesetzt. Nun funktioniert auch PXE-Boot ohne Probleme. :D
Das andere Problem was ich angesprochen habe besteht weiterhin.

Gruß

Jonas
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von SisterOfMercy »

n.wenselowski hat geschrieben:
JonasIVA hat geschrieben:ja sobald neue Clients Netboot-Produkte auf Setup gesetzt werden, tauchen sie auch in dem Verzeichnis auf. Aber die MAC-Adresse hat im ersten Block ein anderen Wert.
Sofern das eine 01 ist, ist alles okay - nachfolgend sollte die komplette MAC folgen.
This took me quite some time to figure out a few years ago!

Is SELinux really off or in permissive mode?
in /etc/selinux/config should have this:
SELINUX=permissive
Otherwise it will not persist after a reboot.

About the 'unexpected ifconfig line' thing, you might want to check the right way to set it in CentOS7. Some programs might just be better in reading 'wrong' settings.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Nabend,

nach einigen Tests mit dem PXE-Booten und leichten anpassungen der pxelinux.cfg/defaul.menu, will er nicht automatisch von dem angeforderten Netboot-Produkt beim nächsten Neustart booten. Stattdessen gibt er nur PXE Aborted aus und startet von dem lokalem Datenträger.
Hier nochmal der opsipxeconfd.log:

Code: Alles auswählen

[4] [Jan 26 16:44:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|386)
[5] [Jan 26 16:44:43] PXE boot configuration for host c51-05.iva.ing.tu-bs.de is now set at '/tftpboot/linux/pxelinux.cfg/01-90-e6-ba-d4-0a-70' (opsipxeconfd|437)
[5] [Jan 26 16:45:40] Pipe '/tftpboot/linux/pxelinux.cfg/01-90-e6-ba-d4-0a-70' opened, piping pxe boot configuration (opsipxeconfd|616)
[5] [Jan 26 16:47:06] Got connection from client (opsipxeconfd|150)
[5] [Jan 26 16:47:33] Got connection from client (opsipxeconfd|150)
[5] [Jan 26 16:48:47] Got connection from client (opsipxeconfd|150)
[4] [Jan 26 16:48:47] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|386)
[5] [Jan 26 16:48:47] PXE boot configuration for host c51-05.iva.ing.tu-bs.de is now set at '/tftpboot/linux/pxelinux.cfg/01-90-e6-ba-d4-0a-70' (opsipxeconfd|437)
[5] [Jan 26 16:52:00] Got connection from client (opsipxeconfd|150)
[5] [Jan 26 16:52:01] PXE boot configuration for host 'c51-05.iva.ing.tu-bs.de' removed (opsipxeconfd|275)
[4] [Jan 26 16:52:01] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|386)
[5] [Jan 26 16:52:01] PXE boot configuration for host c51-05.iva.ing.tu-bs.de is now set at '/tftpboot/linux/pxelinux.cfg/01-90-e6-ba-d4-0a-70' (opsipxeconfd|437)
Hoffe ihr könnt mir da weiterhelfen.
Zu meinem "unexpected ifconfig line" Fehler konnte ich leider noch nichts finden bzw. auch noch nichts finden auf was sich dieser Fehler auswirkt. :?

Gruß

Jonas
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von SisterOfMercy »

JonasIVA hat geschrieben:nach einigen Tests mit dem PXE-Booten und leichten anpassungen der pxelinux.cfg/defaul.menu, will er nicht automatisch von dem angeforderten Netboot-Produkt beim nächsten Neustart booten. Stattdessen gibt er nur PXE Aborted aus und startet von dem lokalem Datenträger.
The log file could be ok, but shouldn't there be something in about piping tftp?
Better include your default.menu and other changes, all we can do now is guess, or let you perform the standard 'fix-all'.

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Thanks for your Help,

I tried with the stock default.menu but the configured Client still doesn't want to Boot from PXE automatic.
Here is the my default.menu:

Code: Alles auswählen

default menu.c32
timeout 10
prompt 0
noescape 1

menu title opsi boot menu
menu width 55
menu rows 3
menu helpmsgrow 10
menu timeoutrow 15
menu tabmsgrow -1
menu hshift 14
#menu vshift 9

menu color tabmsg       30;40      #00000000 #00000000 std

label hd
  menu label Boot from ^local drive
  text help
                    Boot operating system from local drive.
  endtext
  localboot 0

label install
  menu label Start ^opsi bootimage
  text help
                  Start opsi linux bootimage from tftp server.
  endtext
  kernel install
  append initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash --no-log

label install-x64
  menu label Start o^psi bootimage (x64)
  text help
                  Start opsi linux bootimage 64-Bit from tftp server.
  endtext
  kernel install-x64
  append initrd=miniroot-x64.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash --no-log
JonasIVA
Beiträge: 17
Registriert: 20 Jan 2015, 15:57

Re: Centos 7 mit opsi pxe-boot mit windows dhcp

Beitrag von JonasIVA »

Nabend,

ich hab den Fehler gefunden. Es war mal wieder SELinux...
Zwar hab ich bereits für tftp ausnahemn hinzugefügt, aber dies galt leider nicht für die Konfiguration für einzelne Clients.

Gruß

Jonas
Antworten