Automatische Betriebssysteminstallation

Karl-Heinz
Beiträge: 21
Registriert: 14 Aug 2008, 16:40

Automatische Betriebssysteminstallation

Beitrag von Karl-Heinz »

Hi Leute,

ich versuche jetzt gerade eine automatische Betriebssysteminstallation von winXp.
Das entsprechende Paket hab ich auf dem Server installiert. (opsi-package-manager -i winxppro_sp3-8.opsi)
Leider verstehe ich das weitere Vorgehen (wie es im Handbuch beschrieben wird) nicht so richtig.
Was sind die nächsten Schritte? was genau muss man in das i386 Verzeichnis kopieren?

Vielen Dank schonmal im vorraus
Karl-Heinz
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Automatische Betriebssysteminstallation

Beitrag von wolfbardo »

Hallo,

das i386-Verzeichnis von der eigenen Windows-CD

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Benutzeravatar
Neptunium
Beiträge: 224
Registriert: 03 Jul 2008, 12:08
Wohnort: Marburg - Germany

Re: Automatische Betriebssysteminstallation

Beitrag von Neptunium »

Mojn Karl-Heinz,
Karl-Heinz hat geschrieben:Was sind die nächsten Schritte? was genau muss man in das i386 Verzeichnis kopieren?
Neben dem Kopieren vom i386 Verzeichnis von der Installations-CD, das Bardo Wolf ja schon genannt hat, mußt du noch die unattended.txt anpassen (falls du noch nie eine unattended Installation gemacht hast, siehe z.B. http://www.heisig-it.de/unattended1.htm) und für das ordnungsgemäße Funktionieren nach der Installation zwingend benötigte Treiber (z.B. für die Plattencontroller oder das Netzwerk) integrieren (siehe dazu Kapitel 5.1.8. Treiberintegration in die automatische Windowsinstallation im Handbuch).

Gruß

Dirk
Karl-Heinz
Beiträge: 21
Registriert: 14 Aug 2008, 16:40

Re: Automatische Betriebssysteminstallation

Beitrag von Karl-Heinz »

Ok danke erstmal für die Tips.

1. Frage:
Wo muss denn diese unnamed.txt abgelegt werden?

2.Frage:
Beim booten auf dem Client-Rechner (PXE-Boot) bekomme ich die Meldung:
"PXE-E53: No boot filename received" was könnte das Problem sein? (Opsi-Paket für XP hab ich installiert, i386 kopiert und einen Client mit MAC und IP angelegt,
XP auf Setup geschaltet.)
Benutzeravatar
Neptunium
Beiträge: 224
Registriert: 03 Jul 2008, 12:08
Wohnort: Marburg - Germany

Re: Automatische Betriebssysteminstallation

Beitrag von Neptunium »

Karl-Heinz hat geschrieben:1. Frage:
Wo muss denn diese unnamed.txt abgelegt werden?
Ein bischen eigenes Suchen hier im Forum (z.B. viewtopic.php?f=7&t=48&p=211&hilit=unat ... f14e8#p211) oder auf deinem Server (hast du denn eigentlich schon mal den Verzeichnisbaum unterhalb von /opt/pcbin/install/winxppro/ abgegrast) oder im Handbuch sollten sehr schnell die gewünschte Antwort liefern:
/opt/pcbin/install/winxppro/opsi/$oem$/unattend/unattended.txt
2.Frage:
Beim booten auf dem Client-Rechner (PXE-Boot) bekomme ich die Meldung:
"PXE-E53: No boot filename received" was könnte das Problem sein? (Opsi-Paket für XP hab ich installiert, i386 kopiert und einen Client mit MAC und IP angelegt,
XP auf Setup geschaltet.)
Hast du denn für diesen Client deinen DHCP-Server entsprechend konfiguriert? Beim isc-dhcpd mußt du dafür mindestens die Optionen nextserver und filename eintragen, unter Windows sollten die Optionen 18,66,67 und 150 gesetzt sein (siehe dazu den Thread viewtopic.php?f=7&t=108).

Gruß

Dirk
Karl-Heinz
Beiträge: 21
Registriert: 14 Aug 2008, 16:40

Re: Automatische Betriebssysteminstallation

Beitrag von Karl-Heinz »

Guten morgen und Danke.
Also ich benutzte den DHCP-Server der auf meinen Opsi-Server läuft, da es sich um eine Testumgebung handelt.
Muss man da auch was an der Konfiguration ändern? Oder muss ich einen DHCP unter Windows laufen lassen
damit das mit dem PXE etc. funktioniert?

Grüße Karl-Heinz
Benutzeravatar
Neptunium
Beiträge: 224
Registriert: 03 Jul 2008, 12:08
Wohnort: Marburg - Germany

Re: Automatische Betriebssysteminstallation

Beitrag von Neptunium »

Mojn Karl-Heinz,
Karl-Heinz hat geschrieben:Also ich benutzte den DHCP-Server der auf meinen Opsi-Server läuft, da es sich um eine Testumgebung handelt.
Muss man da auch was an der Konfiguration ändern? Oder muss ich einen DHCP unter Windows laufen lassen
damit das mit dem PXE etc. funktioniert?
Nein, es ist defintiv nicht erforderlich den DHCP-Server unter Windows zu nutzen. Ganz ehrlich, ich mache nach Möglichkeit einen ganz großen Bogen um alle Dienste wie DHCP, DNS, TFTP & Co unter Windows. Sowas läuft unter Unix doch viel schmerzfreier und ist leichter zu administrieren, ganz zu schweigen von der Fehlerdiagnose.

Eine IP-Adresse scheint dein Client ja zu bekommen, oder? Überprüfe doch mal, ob im dhcpd auf dem Opsi-Server wirklich die Option filename für den Client gesetzt ist (=> /etc/dhcp3/dhcpd.conf). Und gibt es unter /tftpboot/linux/pxelinux.cfg eine named-pipe mit der MAC-Adresse des Client als Namen? Steht was im Log /var/log/opsi/opsipxeconfd.log? Da solltest du einen Eintrag finden, daß das netboot-Produkt winxppro für den Client host.domain.tld auf /tftpboot/linux/pxelinux.cfg/00-11-22-33-44-55 (die MAC-Adresse des Clients) gesetzt wurde.

Gruß

Dirk
Karl-Heinz
Beiträge: 21
Registriert: 14 Aug 2008, 16:40

Re: Automatische Betriebssysteminstallation

Beitrag von Karl-Heinz »

Ok alles mal angeschaut.....das Problem scheint wohl dass er dieses "Bootfile" nicht findet.....aber warum.....
Hab die entsprechenden Einträge zusammengestellt

dhcpd.conf:
______________________________________________________
# This will tell the box its hostname while booting:
use-host-decl-names on;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;

#Group the PXE bootable hosts together
group {
# PXE-specific configuration directives...
#option dhcp-class-identifier "PXEClient";
# You need an entry like this for every host
# unless you are using dynamic addresses
next-server 192.168.1.100;
filename "linux/pxelinux.0";
# test-client
# host test-client {
# hardware ethernet 00:00:cb:62:e9:24;
# fixed-address test-client;
# }
host opsiclient1 {
fixed-address 192.168.1.134;
hardware ethernet 00:0c:29:b1:18:19;
}
host opsiclient2 {
fixed-address 192.168.1.135;
hardware ethernet 00:0c:29:1a:c9:36;
}
}
}
_________________________________________________________________

Unter ......pxelinux.cfg gibts eine 01-00-0c-29-1a-c9-36
das ist die MAC von opsiclient2 (also der Client den ich booten
möchte), opsiclient1 hat bereits ein Betriebssystem

_________________________________________________________________

Inhalt der opsipxeconfd.log:
(4) Aug 26 14:35:34 Pipe '/tftpboot/linux/pxelinux.cfg/01-00-0c-29-1a-c9-36' opened, piping pxe boot configuration (opsipxeconfd|578)
(4) Aug 26 14:35:34 Creating unix socket '/var/run/opsipxeconfd.socket' (OpsiPXEConfd.py|163)
(4) Aug 26 14:35:34 Got connection from '' (opsipxeconfd|269)
(3) Aug 26 14:35:34 no bootimage was set for opsiclient2.opsitest.baw.de (opsipxeconfd|437)
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Automatische Betriebssysteminstallation

Beitrag von wolfbardo »

Hallo Karl-Heinz,

sieht man am Server mittels

tcpdump port bootps and port bootpc

eine PXE-Anfrage des Clients währende dieser bootet?

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Karl-Heinz
Beiträge: 21
Registriert: 14 Aug 2008, 16:40

Re: Automatische Betriebssysteminstallation

Beitrag von Karl-Heinz »

Also scheint was vom Client anzukommen aber ob das eine PXE-Anfrage ist.......
hier mal der Dump: (domtest2 ist übrigens ein Windows 2003 Server, der DNS macht, opsiserver hat IP 192.168.1.100)

15:00:34.844209 IP (tos 0x0, ttl 20, id 0, offset 0, flags [none], proto: UDP (17), length: 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:0c:29:1a:c9:3c (oui Unknown), length 548, xid 0x2a1ac93c, secs 4, Flags [ Broadcast ]
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:34.848152 IP (tos 0x0, ttl 64, id 53266, offset 0, flags [DF], proto: UDP (17), length: 74) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 25686+ PTR? 255.255.255.255.in-addr.arpa. (46)
15:00:34.851971 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: ICMP (1), length: 48) 192.168.1.254 > 192.168.1.132: ICMP echo request, id 33803, seq 0, length 28
15:00:35.826268 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.1.254.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x2a1ac93c, secs 4, Flags [ Broadcast ]
Your-IP 192.168.1.132
Server-IP 192.168.1.254
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:36.843513 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:36.934971 IP (tos 0x0, ttl 20, id 1, offset 0, flags [none], proto: UDP (17), length: 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:0c:29:1a:c9:3c (oui Unknown), length 548, xid 0x2b1ac93c, secs 6, Flags [ Broadcast ]
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:36.935301 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.1.254.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x2b1ac93c, secs 6, Flags [ Broadcast ]
Your-IP 192.168.1.132
Server-IP 192.168.1.254
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:37.850561 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:38.879666 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:38.881613 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:39.836752 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:39.852343 IP (tos 0x0, ttl 64, id 53267, offset 0, flags [DF], proto: UDP (17), length: 74) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 25686+ PTR? 255.255.255.255.in-addr.arpa. (46)
15:00:40.849426 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:40.853321 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:40.964161 IP (tos 0x0, ttl 20, id 2, offset 0, flags [none], proto: UDP (17), length: 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:0c:29:1a:c9:3c (oui Unknown), length 548, xid 0x2c1ac93c, secs 10, Flags [ Broadcast ]
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:40.964359 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.1.254.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x2c1ac93c, secs 10, Flags [ Broadcast ]
Your-IP 192.168.1.132
Server-IP 192.168.1.254
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:41.853604 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:42.870623 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:42.876470 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:43.828715 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:44.847298 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:44.853819 arp who-has 192.33.4.12 tell domtest2.opsitest.baw.de
15:00:44.854611 IP (tos 0x0, ttl 64, id 55767, offset 0, flags [DF], proto: UDP (17), length: 66) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 13669+ PTR? 0.0.0.0.in-addr.arpa. (38)
15:00:45.903453 arp who-has 192.33.4.12 tell domtest2.opsitest.baw.de
15:00:46.846424 arp who-has 192.33.4.12 tell domtest2.opsitest.baw.de
15:00:46.849885 arp who-has 192.5.5.241 tell domtest2.opsitest.baw.de
15:00:46.857699 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:47.843841 arp who-has 192.5.5.241 tell domtest2.opsitest.baw.de
15:00:47.853618 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:48.858721 arp who-has 192.5.5.241 tell domtest2.opsitest.baw.de
15:00:48.868324 arp who-has 198.41.0.4 tell domtest2.opsitest.baw.de
15:00:48.868396 arp who-has 192.112.36.4 tell domtest2.opsitest.baw.de
15:00:48.880315 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:49.056346 IP (tos 0x0, ttl 20, id 3, offset 0, flags [none], proto: UDP (17), length: 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:0c:29:1a:c9:3c (oui Unknown), length 548, xid 0x2d1ac93c, secs 18, Flags [ Broadcast ]
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:49.057096 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) 192.168.1.254.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x2d1ac93c, secs 18, Flags [ Broadcast ]
Your-IP 192.168.1.132
Server-IP 192.168.1.254
Client-Ethernet-Address 00:0c:29:1a:c9:3c (oui Unknown) [|bootp]
15:00:49.854339 IP (tos 0x0, ttl 64, id 55768, offset 0, flags [DF], proto: UDP (17), length: 66) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 13669+ PTR? 0.0.0.0.in-addr.arpa. (38)
15:00:49.906331 arp who-has 192.112.36.4 tell domtest2.opsitest.baw.de
15:00:49.914124 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:50.824401 arp who-has 192.112.36.4 tell domtest2.opsitest.baw.de
15:00:50.828247 arp who-has 128.63.2.53 tell domtest2.opsitest.baw.de
15:00:50.832117 arp who-has 192.228.79.201 tell domtest2.opsitest.baw.de
15:00:50.836048 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:51.869644 arp who-has 128.63.2.53 tell domtest2.opsitest.baw.de
15:00:51.879540 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:52.921916 arp who-has 128.63.2.53 tell domtest2.opsitest.baw.de
15:00:52.932848 arp who-has 128.8.10.90 tell domtest2.opsitest.baw.de
15:00:52.932894 arp who-has 192.58.128.30 tell domtest2.opsitest.baw.de
15:00:52.932898 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:53.843567 arp who-has 192.58.128.30 tell domtest2.opsitest.baw.de
15:00:53.843570 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:54.857346 IP (tos 0x0, ttl 64, id 58267, offset 0, flags [DF], proto: UDP (17), length: 70) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 45684+ PTR? 2.1.168.192.in-addr.arpa. (42)
15:00:54.859024 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 138) domtest2.opsitest.baw.de.domain > opsiserver.opsitest.baw.de.1025: 45684* 1/1/1 2.1.168.192.in-addr.arpa. PTR[|domain]
15:00:54.859709 IP (tos 0x0, ttl 64, id 58268, offset 0, flags [DF], proto: UDP (17), length: 72) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 8611+ PTR? 132.1.168.192.in-addr.arpa. (44)
15:00:54.862519 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 137) domtest2.opsitest.baw.de.domain > opsiserver.opsitest.baw.de.1025: 8611 NXDomain* 0/1/0 (109)
15:00:54.862762 IP (tos 0x0, ttl 64, id 58269, offset 0, flags [DF], proto: UDP (17), length: 72) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 21515+ PTR? 254.1.168.192.in-addr.arpa. (44)
15:00:54.863334 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 137) domtest2.opsitest.baw.de.domain > opsiserver.opsitest.baw.de.1025: 21515 NXDomain* 0/1/0 (109)
15:00:54.865572 IP (tos 0x0, ttl 64, id 58269, offset 0, flags [DF], proto: UDP (17), length: 69) opsiserver.opsitest.baw.de.1025 > domtest2.opsitest.baw.de.domain: 49136+ PTR? 4.0.41.198.in-addr.arpa. (41)
15:00:54.866232 arp who-has 192.58.128.30 tell domtest2.opsitest.baw.de
15:00:54.866344 arp who-has 192.203.230.10 tell domtest2.opsitest.baw.de
15:00:54.873886 arp who-has 193.0.14.129 tell domtest2.opsitest.baw.de
Antworten