Jump to content


Photo

Installation of Windows 7 over Network Boot PXE


  • Please log in to reply
9 replies to this topic

#1 x23piracy

x23piracy

    WinCert Friend

  • Members
  • PipPipPipPip
  • 252 posts
  • Location:Germany
  • OS:Windows 7 x64

Posted 03 March 2013 - 04:06 PM

THIS TUTORIAL ISN'T FINISHED YET SO STAY TUNED I WILL EXPLAIN MORE DETAILED BUT AT THIS POINT YOU CAN START WITH THE INFORMATION I PRESENT HERE

 

Why:

 

No need of any boot media except network connection

Easy Update of Installer changes

No space boarder (no DL-DVD or big USB Stick needed)

 

 

Requirements:

 

DHCP Server with Option 66 and 67 enabled and configured

TFTP Server

Syslinux

Microsoft Windows AIK

Windows 7 Installation files

 

 

Steps to procede:

 

Setup DHCP Server

Prepare the Base Directory for TFTP Server

Prepare WinPE to Start Windows Setup

Tell Windows Setup howto find Wintoolkit_Apps folder:

 

 

Setup DHCP Server:

 

For my case (Corporate) i have a running Microsoft DHCP Server (Windows Server 2003)

Just enable the DHCP Options 66 and 67

 

8pbiowyk.jpg

 

Option 66 is the Hostname or IP of the machine where TFTP Server is running on

Option 67 is the Boot filename from TFTP Base Directory

 

If you don't have a running DHCP Server you can use the buildin DHCP Server from TFTPD

 

 

Prepare the Base Directory for TFTP Server:

 

Create a Base directory called Boot or something wherever you want. (C:\Boot)

Create a subdirectory called images (C:\Boot\images)

Create a subdirectory called pxelinux.cfg (C:\Boot\pxelinux.cfg <-- is a directory!)

Create a file without extension called default in the pxelinux.cfg folder (C:\Boot\pxelinux.cfg\default <-- is a filename)

 

Extract the syslinux archive, find and copy the following files to your base directory:

chain.c32
ldlinux.c32
libcom32.c32
libutil.c32
linux.c32
memdisk
menu.c32
pxelinux.0
reboot.c32
vesamenu.c32

 

Open the default file and paste:

 

Attention, this is a fully paste from my default file, for a start you can delete the most to learn how it works.

Spoiler

 

Place your images in the images folder

 

 

Prepare WinPE to Start Windows Setup:

 

Install Windows AIK

Create a WinPE Folder (You need to change the paths to your needs):

"C:\Program Files\Windows AIK\Tools\PETools\copype.cmd" amd64 e:\WinPE_x64

Mount WinPE Folder:

"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Mount-Wim /WimFile:e:\WinPE_x64\winpe.wim /Index:1 /MountDir:e:\WinPE_x64\mount

Optionally integrate drivers into pe:

"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Image:e:\WinPE_x64\mount /Add-Driver /Driver:e:\WinPE_x64\Drivers /Recurse /forceunsigned

I integrated a LAN Driver pakage so it doesnt get problems when trying to mount a network share, that is needed because i install it over net share.

 

Now we customize the winpe:

 

Open the mount folder and goto Windows\System32 and open the startnet.cmd add the following line:

setup.cmd

Create setup.cmd in Windows\System32 and paste the following (You need to change IP, User, Pass, Paths):

@echo off
net use i: \\172.19.101.186\System /USER:domain\user password
"i:\Windows 7 Professional x64\setup.exe" /unattend:"i:\Windows 7 Professional x64\Autounattend.xml"

This will mount the install sources and runs the setup.

 

Unmount the WinPE:

"C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe" /Unmount-Wim /MountDir:e:\WinPE_x64\mount /Commit

Create the ISO:

copy e:\WinPE_x642\winpe.wim e:\WinPE_x64\ISO\sources\boot.wim
"C:\Program Files\Windows AIK\Tools\amd64\oscdimg.exe" -n -be:\WinPE_x64\etfsboot.com e:\WinPE_x64\ISO e:\WinPE_x64\WinPE_x64.iso

Copy the iso to your Base\Images directory.

 

 

Tell Windows Setup howto find Wintoolkit_Apps folder:

 

Please use the (sources\$oem$\$$\Setup\scripts\setupcomplete.cmd) and add the following

(You need to change things to suite to your needs):

@echo off
net use i: \\172.19.101.186\Wintoolkit /USER:domain\user pass
 

 

 

THIS TUTORIAL ISN'T FINISHED YET SO STAY TUNED I WILL EXPLAIN MORE DETAILED BUT AT THIS POINT YOU CAN START WITH THE INFORMATION I PRESENT HERE

 

I have big problems to explain things more detailed because of missing english vocabular and so on :)

 

 

 

Greetz X23


Edited by x23piracy, 03 March 2013 - 06:38 PM.

  • Stimpy and Humfri like this

#2 ianymaty

ianymaty

    WinCert Friend

  • Members
  • PipPipPipPip
  • 284 posts
  • OS:Windows 7 x64

Posted 04 March 2013 - 07:41 PM

Ah, seems that this isn't what I'm looking for.

 

Sorry, I thought there is a way to do it without building a server.

 

I want this if there is a way to do it in a home network through a router. I don't know anything about build and run a server.

 

If not I'll stick installing from USB.

 

Thanks.



#3 x23piracy

x23piracy

    WinCert Friend

  • Members
  • PipPipPipPip
  • 252 posts
  • Location:Germany
  • OS:Windows 7 x64

Posted 04 March 2013 - 09:52 PM

Hi,

 

if your routers dhcp support option 66 and 67 its also possible.

 

 

Greetz X23


Edited by x23piracy, 04 March 2013 - 10:06 PM.


#4 bphlpt

bphlpt

    WinCert Dominator

  • Global Mods
  • 1,173 posts
  • OS:Windows 7 x64

Posted 05 March 2013 - 12:27 AM

I'm very glad to have this explanation, so please continue and finish your tutorial, but I also was hoping for a way this could be done without a server type OS being installed.  I guess that shows my naivety.  Thank you very much for this info anyway.

 

heers and Regards



#5 x23piracy

x23piracy

    WinCert Friend

  • Members
  • PipPipPipPip
  • 252 posts
  • Location:Germany
  • OS:Windows 7 x64

Posted 05 March 2013 - 12:35 AM

Hi,

 

I'm very glad to have this explanation, so please continue and finish your tutorial, but I also was hoping for a way this could be done without a server type OS being installed.  I guess that shows my naivety.  Thank you very much for this info anyway.

 

heers and Regards

 

sorry for the disappointment ;) but this is based on winpe as boot media.

Sure i will finish this to have different points much clearer.

 

Installing Windows 7 over PXE means having to place an amount of space between 4-10GB somewhere ;)

 

From the private sigth this can be a customized router which enables option 66 und 67 for dhcp, normally

every dhcp should support this thats RFC!

 

The most problem would be to place a dedicated tftp server, for example a fritzbox router with freetz can do

that, or a fli4l router installation.

 

Whos not on the luckie side owning a nas can use a big usb stick directly connected to the router

(but speed may be very slow).

 

I feel very cool without having anything to carry with me to install win7 in our corporate.

My Boss is also still impressed but thats more related to his unknownness what for cool things are possible :D

 

The most impressive thing is the complete customized sfx pakages that enable a 90% out of the box ready

workstation after installation of windows 7.

 

 

Greetz X23


Edited by x23piracy, 05 March 2013 - 12:44 AM.

  • Stimpy likes this

#6 crashfly

crashfly

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 400 posts
  • Location:Arkansas, USA
  • OS:Windows 7 x64

Posted 05 March 2013 - 03:56 PM

I'm very glad to have this explanation, so please continue and finish your tutorial, but I also was hoping for a way this could be done without a server type OS being installed.  I guess that shows my naivety.  Thank you very much for this info anyway.

 

heers and Regards

You can actually do this without "directly" having a server.  A router that supports the custom firmware DD-WRT would be able to easily perform the same actions as the server.  If I am not mistaken, I think there are even a few basic tutorials over on the www.dd-wrt.com wiki that show how to set it up.



#7 bphlpt

bphlpt

    WinCert Dominator

  • Global Mods
  • 1,173 posts
  • OS:Windows 7 x64

Posted 05 March 2013 - 10:25 PM

Thanks for mentioning that crashfly.  I just found out my current router supports dd-wrt, my old one didn't.  Would you mind please looking at the tutorials listed and pointing me to the appropriate one(s)?  None of them jump out at me.  Thanks in advance for the help.

 

Cheers and Regards



#8 crashfly

crashfly

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 400 posts
  • Location:Arkansas, USA
  • OS:Windows 7 x64

Posted 06 March 2013 - 12:12 AM

More specifically, it is in relation to using the service "dnsmasq".  There are options to point to a tftp server. (If set up correctly, the server could even be the router itself, but then that requires storage, optware, and etc.)  The information regarding dnsmasq on the wiki is here: http://www.dd-wrt.co..._as_DHCP_server.  More answers can be gained by perusing the "Broadcom SoC based Hardware" forum (possibly searching for tftp and dnsmasq) here: http://www.dd-wrt.co...ewforum.php?f=1.



#9 bphlpt

bphlpt

    WinCert Dominator

  • Global Mods
  • 1,173 posts
  • OS:Windows 7 x64

Posted 06 March 2013 - 03:43 AM

Many Thanks!

 

Cheers and Regards



#10 x23piracy

x23piracy

    WinCert Friend

  • Members
  • PipPipPipPip
  • 252 posts
  • Location:Germany
  • OS:Windows 7 x64

Posted 06 March 2013 - 06:47 PM

Hi,

 

if someone is using a Fritzbox

Iam very close to the freetz team and can assist if someone likes to customize his fritzbox.

 

http://freetz.org/

 

Iam very experienced with freetz

Fritzboxes are mainly selled in germany, austria and swiss.

 

Who ever is using an open embedded system or a self made router (x86) should take a look at:

 

Fli4l

 

I used my self around 6 years the following board from Soekris

2 years ago i switched to fritzboxes.

 

All the rich features a Fritzbox has today wasnt offered years ago, i made the same cool things

with Fli4l years earlier ;)

 

 

Greetz X23


Edited by x23piracy, 06 March 2013 - 06:55 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users