Anleitung Windows Netzwerkinstallation
Posted by virtualmarc | Posted in Anleitungen, Entwicklungen, Meine Projekte, Wiki | Posted on 28-11-2011
0
In diesem Tutorial erkläre ich euch, wie man Windows Vista, Windows Server 2008, Windows 7 und Windows Server 2008 R2 über das Netzwerk installiert.
Im Beitrag Windows 7 Netzwerkinstallation habe ich eine solche Installation bereits gezeigt, da einige danach gefragt haben, wie so etwas zu realisieren sei, habe ich mich vor einiger Zeit an einem Video Tutorial gesetzt und jetzt folgt die Schriftform!
Das Videotutorial:
(Schritt für Schritt Erklärung ab Debian Installation, kein Vorwissen nötig)
Und hier die Textform:
(Vorwissen über Debian Linux benötigt!)
Meine Ausgangshardware für den Server:
CPU: Intel Atom D510
RAM: 2 GB DDR2
HDD: 2,5 TB im RAID 10
Netzwerk: 1GBit/s Full Duplex
Betriebssystem: Debian Squeeze
Schritt 1: Installation & Konfiguration des DHCP-Servers
Software: ISC-DHCP-Server
Konfiguration:
Eventuelles anpassen des Interfaces auf dem der DHCP Server auf DHCP Requests horcht in der Datei /etc/default/isc-dhcp-server
Konfigurationsdatei: /etc/dhcp/dhcpd.conf
ddns-update-style none
option domain-name-servers IP.ZUM.DNS.SERVER, IP.ZUM.DNS.SERVER2;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
Neben diesen Einstellungen müssen noch TFTP-Spezifische und Subnetzspezifische Einstellungen gemacht werden:
filename “/pxelinux.0″;
next-server IP.ZUM.TFTP.SERVER;
subnet NETZ.IP.ADDR.ESSE netmask BROADCAST.IP.ADDR.ESSE {
range ERSTE.IP.ADDR.ESSE LETZTE.IP.ADDR.ESSE;
option routers IP.DES.STANDARD.GATEWAY;
}
filename gibt dabei die Datei an, die beim Booten als erstes vom TFTP-Server geladen werden soll.
next-server gibt den TFTP-Server an, von dem gebootet werden soll!
Anschließend muss der DHCP Server neu gestartet werden.
Schritt 2: Installation & Konfiguration des TFTP-Servers:
Software: TFTPd-HPA
TFTP-Wurzelverzeichnis: Das Verzeichnis wo die Daten liegen.
Konfigurationsdatei: /etc/default/tftpd-hpa
Schritt 3: Anlegen des Menüs:
Als erstes muss das Paket syslinux installiert werden.
Anschließend kopieren wir folgende Dateien aus dem Syslinux Verzeichnis in unser TFTP-Wurzelverzeichnis:
gpxelinux.0 (umbenennen in pxelinux.0)
vesamenu.c32
Jetzt muss der Ordner pxelinux.cfg im TFTP-Wurzelverzeichnis angelegt werden.
In diesem Verzeichnis werden die Konfigurationsdateien abgelegt.
Diese Konfigurationsdateien können dabei mehrere Namen haben.
In folgender Reihenfolge versucht der PC die Konfigdateien zu laden (er springt immer zur nächsten, wenn die Konfigdatei nicht gefunden wurde).
- pxelinux.cfg/GUID-DER-NETZWERKKARTE
- pxelinux.cfg/MAC-ADRESSE-DER-NETZWERKKARTE
- pxelinux.cfg/HEX-CODIERTE-IP-ADRESSE
- pxelinux.cfg/default
DEFAULT vesamenu.c32PROMPT 0NOESCAPE 1TIMEOUT 0MENU TITLE PXE TestKBDMAP german.kdbMENU WIDTH 78MENU MARGIN 4MENU ROWS 13MENU BACKGROUND vesa.jpgMENU TABMSG [TAB] zum bearbeiten, [ENTER] zum bootenMENU COLOR BORDER 0 #ffffffff #ee000000 stdMENU COLOR TITLE 0 #ffffffff #ee000000 stdMENU COLOR SEL 0 #ffffffff #85000000 stdMENU COLOR UNSEL 0 #fffffffff #ee000000 stdLABEL localMENU LABEL ^Lokales System bootenLOCALBOOT 0LABEL windowsMENU LABEL ^Windows InstallationKERNEL wdsnbp.0
security = share
[ris]comment = Remote Installation Serverread only = yespath = /pfad/zum/ordner/der/freigabebrowsable = noguest ok = yeslevel2 oplocks = nooplocks = nocsc policy = disabledirectory mask = 0777create mask = 0777
copypxe x86 D:\UnserArbeitsverzeichnis\WinPEx86
copypxe amd64 D:\UnserArbeitsverzeichnis\WinPEx64
imagex /mountrw D:\UnserArbeitsverzeichnis\WinPEx86\winpe.wim 1 D:\UnserArbeitsverzeichnis\WinPEx86\mount
imagex /mountrw D:\UnserArbeitsverzeichnis\WinPEx64\winpe.wim 1 D:\UnserArbeitsverzeichnis\WinPEx64\mount
[...]\mount\Windows\Boot\PXE
[...]\Windows AIK\Tools\PETools\amd64\Boot
- bcd
- boot.sdi
- bootmgr.exe
- pxeboot.n12
- wdsnbp.com
- bcd
- boot.sdi
pxeboot.n12 -> pxeboot.comwdsnbp.com -> wdsnbp.0
[...]\mount\Windows\System32\startnet.cmd
net use m: \\IP.DES.SAMBA.SERVERS\rism:\setup.exe
imagex /unmound D:\UnserArbeitsverzeichnis\WinPEx86\mount
imagex /unmound D:\UnserArbeitsverzeichnis\WinPEx64\mount
bcdedit -createstore BCDbcdedit -store BCD -create {ramdiskoptions}bcdedit -store BCD -set {ramdiskoptions} ramdisksdidevice bootbcdedit -store BCD -set {ramdiskoptions} ramdisksdipath \Boot\boot.sdibcdedit -store BCD -create /d “32Bit Installation” /application osloaderbcdedit -store BCD -create /d “64Bit Installation” /application osloaderbcdedit -store BCD -enumbcdedit -store BCD -set {GUID-VON-32BIT} systemroot \Windowsbcdedit -store BCD -set {GUID-VON-32BIT} detecthal Yesbcdedit -store BCD -set {GUID-VON-32BIT} winpe Yesbcdedit -store BCD -set {GUID-VON-32BIT} osdevice ramdisk=[boot]\Boot\winpex86.wimbcdedit -store BCD -set {GUID-VON-32BIT} device ramdisk=[boot]\Boot\winpex86.wim,{ramdiskoptions}bcdedit -store BCD -set {GUID-VON-64BIT} systemroot \Windowsbcdedit -store BCD -set {GUID-VON-64BIT} detecthal Yesbcdedit -store BCD -set {GUID-VON-64BIT} winpe Yesbcdedit -store BCD -set {GUID-VON-64BIT} osdevice ramdisk=[boot]\Boot\winpex64.wimbcdedit -store BCD -set {GUID-VON-64BIT} device ramdisk=[boot]\Boot\winpex64.wim,{ramdiskoptions}bcdedit -store BCD -create {bootmgr} /d “Windows BootManager”bcdedit -store BCD -timeout 30bcdedit -store BCD -default {GUID-DESSEN-WAS-STANDARDMAESSIG-BOOTEN-SOLL}bcdedit -store BCD -displayorder {GUID-ERSTER-EINTRAG} {GUID-ZWEITER-EINTRAG}
