UEFI - DNSMASQ - Windows 7
Verfasst: 24 Jul 2018, 12:28
Ich habe bisher mein Windows 7 über den Legacy-Mode installieren können. Nun haben wir aber ein Notebook (HP 250 G6) was mit der Treiberintegration (auch manuell) bei Windows 7 Probleme macht. Ich müsste daher im UEFI-Mode installieren.
Habe mir daher einen Testkey zukommen lassen um zu prüfen, ob ich dann solch eine Installation ausführen kann. Leider sind meine Versuche bisher gescheitert.
Installiert ist OPSI wie folgt:
Die opsi-Produkte habe ich mit "opsi-package-updater -v install" auf den aktuellen Stand geholt.
Hier das entsprechende Verzeichnis:
In der "/lib/systemd/system/opsi-tftpd-hpa.service" habe ich folgenden Eintrag:
Und meine /etc/dnsmasq.conf sieht wie folgt aus:
Anmerkung: Ich habe hier im Forum gelesen, dass man den DCHP-Modus von dnsmasq nehmen soll, was ich, so denke ich, über die option "dhcp-boot" mache. Auch habe ich mit verschiedenen Pfadangaben herumgestestet. Die Einstellung "pxelinux.0" funktioniert, wenn ich sie aktiviere und wenn der Client im Legagy-Mode ist
Wenn ich bei dem Client dann UEFI aktiviere und im BIOS den UEFI einstelle, dann kommt am Client nur
Das TFTP-Verzeichnis sieht wie folgt aus:
Folgende Logs habe ich gefunden:
/var/log/syslog
Was kann ich noch überprüfen um die Ursache zu finden?
Nachtrag:
Vollständigkeitshalber der selbe Log, wenn ich auf Legacy umschalte und die Option "UEFI" beim Client deaktiviere:
Die einzige Änderung, die ich vornehme dazu ist, dass ich die dhcp-boot Einstellung umstelle auf pxelinux.0
Habe mir daher einen Testkey zukommen lassen um zu prüfen, ob ich dann solch eine Installation ausführen kann. Leider sind meine Versuche bisher gescheitert.
Installiert ist OPSI wie folgt:
Code: Alles auswählen
Ubuntu 16.04
opsi config editor Version 4.0.7.6.34 2018/01/10
opsiconfd version 4.1.1.10
opsipxeconfd version 4.1.1.9
opsi-windows-support 4.1.1-5
opsi-tftpd-hpa 5.2.8-47
dnsmasq Version 2.75
Code: Alles auswählen
Windows 7 - x64 Version 4.1.0.0-9
Code: Alles auswählen
root@bpc002252:/var/lib/opsi/depot/win7-x64# ls -ls
insgesamt 468
12 -rwxrwx--- 1 opsiconfd pcpatch 9488 Jun 20 09:38 create_driver_links.py
4 drwxrws--- 3 opsiconfd pcpatch 4096 Jun 15 09:23 custom
4 drwxrws--- 7 opsiconfd pcpatch 4096 Jun 15 15:58 drivers
4 -rwxrwx--- 1 opsiconfd pcpatch 1196 Jun 20 09:38 extract_driver_pack.py
4 drwxrws--- 7 opsiconfd pcpatch 4096 Jun 15 10:15 installfiles
8 -rw-rw---- 1 opsiconfd pcpatch 6717 Jun 20 09:38 nt6_repartition.opsiscript
4 drwxrws--- 3 opsiconfd pcpatch 4096 Jul 24 11:49 opsi
32 -rwxrwx--- 1 opsiconfd pcpatch 31200 Jun 20 09:38 opsipreparelib.py
40 -rwxrwx--- 1 opsiconfd pcpatch 40661 Jun 20 09:38 opsisetuplib.py
20 -rw-rw---- 1 opsiconfd pcpatch 20387 Jun 20 09:38 setup.opsiscript
76 -rwxrwx--- 1 opsiconfd pcpatch 75396 Jun 20 09:38 setup.py
20 -rwxrwx--- 1 opsiconfd pcpatch 16909 Jun 20 09:38 show_drivers.py
204 -rw-rw---- 1 opsiconfd pcpatch 205923 Jul 24 11:50 win7-x64.files
32 -rw-rw---- 1 opsiconfd pcpatch 29477 Jun 20 09:38 windows.png
4 drwxrws--- 5 opsiconfd pcpatch 4096 Jun 15 10:12 winpe
0 lrwxrwxrwx 1 root pcpatch 5 Jul 24 11:49 winpe_uefi -> winpe
In der "/lib/systemd/system/opsi-tftpd-hpa.service" habe ich folgenden Eintrag:
Code: Alles auswählen
ExecStart=/usr/sbin/in.tftpd -v --listen --address :69 --secure /tftpboot/linux
Code: Alles auswählen
interface=enp1s0
# Don't function as a DNS server:
port=0
# Log lots of extra information about DHCP transactions.
log-dhcp
# This range(s) is for the public interface, where dnsmasq functions
# as a proxy DHCP server providing boot information but no IP leases.
# Any ip in the subnet will do, so you may just put your server NIC ip here.
dhcp-range=192.168.2.0,proxy
# The boot filename.
#dhcp-boot=pxelinux.0,bpc002252,192.168.2.0
dhcp-boot=pxelinux.cfg/elilo.efi,bpc002252,192.168.2.0
# kill multicast
dhcp-option=vendor:PXEClient,6,2b
# Disable re-use of the DHCP servername and filename fields as extra
# option space. That's to avoid confusing some old or broken DHCP clients.
dhcp-no-override
# The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
# Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
pxe-service=X86PC, "Boot from network", pxelinux
pxe-service=X86-64_EFI, "Boot from network", pxelinux.cfg/elilo.efi
pxe-service=BC_EFI, "Boot from network", pxelinux.cfg/elilo.efi
Wenn ich bei dem Client dann UEFI aktiviere und im BIOS den UEFI einstelle, dann kommt am Client nur
Code: Alles auswählen
>>Start PXE over IPv4, Press [ESC] to EXIT ...
Code: Alles auswählen
root@bpc002252:/tftpboot/linux/pxelinux.cfg# ls -ls
insgesamt 268
0 prw-r--r-- 1 root root 0 Jul 24 12:00 01-80-ce-62-d6-ed-1b
0 lrwxrwxrwx 1 root pcpatch 12 Jun 15 08:13 default -> default.menu
4 -rw-rw-r-- 1 opsiconfd pcpatch 931 Feb 8 16:27 default.menu
4 -rw-rw-r-- 1 opsiconfd pcpatch 34 Feb 8 16:27 default.nomenu
4 -rw-rw-r-- 1 opsiconfd pcpatch 43 Feb 8 16:27 elilo.conf
232 -rw-rw-r-- 1 opsiconfd pcpatch 236130 Feb 8 16:27 elilo.efi
4 -rw-rw-r-- 1 opsiconfd pcpatch 166 Feb 8 16:27 install
4 -rw-rw-r-- 1 opsiconfd pcpatch 308 Feb 8 16:27 install3264
4 -rw-rw-r-- 1 opsiconfd pcpatch 206 Feb 8 16:27 install-elilo-x64
4 -rw-rw-r-- 1 opsiconfd pcpatch 194 Feb 8 16:27 install-elilo-x86
4 -rw-rw-r-- 1 opsiconfd pcpatch 182 Feb 8 16:27 install-x64
4 -rw-rw-r-- 1 opsiconfd pcpatch 60 Aug 11 2015 memtest86
Folgende Logs habe ich gefunden:
/var/log/syslog
Code: Alles auswählen
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 available DHCP subnet: 192.168.2.0/255.255.255.0
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 vendor class: PXEClient:Arch:00007:UNDI:003016
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 PXE(enp1s0) 80:ce:62:d6:ed:1b proxy
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 Marken: enp1s0
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 Name der Bootdatei: pxelinux.cfg/elilo.efi
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 Naechster Server: 192.168.2.0
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 broadcast response
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 sent size: 1 option: 53 message-type 2
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 sent size: 4 option: 54 server-identifier 192.168.2.252
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 sent size: 17 option: 97 client-machine-id 00:52:2f:a8:07:07:c2:11:e8:a4:c3:80:ce:62...
Jul 24 12:22:05 bpc002252 dnsmasq-dhcp[2296]: 618734107 sent size: 44 option: 43 vendor-encap 06:01:03:0a:04:00:50:58:45:08:07:80:01:01...
Nachtrag:
Vollständigkeitshalber der selbe Log, wenn ich auf Legacy umschalte und die Option "UEFI" beim Client deaktiviere:
Code: Alles auswählen
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 available DHCP subnet: 192.168.2.0/255.255.255.0
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 vendor class: PXEClient:Arch:00000:UNDI:002001
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 available DHCP subnet: 192.168.2.0/255.255.255.0
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 vendor class: PXEClient:Arch:00000:UNDI:002001
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 PXE(enp1s0) 192.168.2.170 80:ce:62:d6:ed:1b pxelinux.0
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 Marken: enp1s0
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 Name der Bootdatei: pxelinux.0
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 N▒chster Server: 192.168.2.252
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 broadcast response
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 sent size: 1 option: 53 message-type 5
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 sent size: 4 option: 54 server-identifier 192.168.2.252
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 sent size: 17 option: 97 client-machine-id 00:52:2f:a8:07:07:c2:11:e8:a4:c3:80:ce:62...
Jul 24 16:27:48 bpc002252 dnsmasq-dhcp[3469]: 1675029787 sent size: 10 option: 43 vendor-encap 47:04:80:00:00:00:06:01:02:ff
Jul 24 16:27:49 bpc002252 in.tftpd[3534]: RRQ from 192.168.2.170 filename pxelinux.0
Jul 24 16:27:49 bpc002252 in.tftpd[3534]: tftp: client does not accept options
Jul 24 16:27:49 bpc002252 in.tftpd[3535]: RRQ from 192.168.2.170 filename pxelinux.0
Jul 24 16:27:49 bpc002252 in.tftpd[3536]: RRQ from 192.168.2.170 filename pxelinux.cfg/522fa807-07c2-11e8-a4c3-80ce62d6ed1b
Jul 24 16:27:49 bpc002252 in.tftpd[3537]: RRQ from 192.168.2.170 filename pxelinux.cfg/01-80-ce-62-d6-ed-1b
Jul 24 16:27:49 bpc002252 in.tftpd[3538]: RRQ from 192.168.2.170 filename install
Jul 24 16:27:51 bpc002252 in.tftpd[3539]: RRQ from 192.168.2.170 filename miniroot.bz2