The Art of OEM - nLite & OEM Preinstallation Part 6: Windows Deployment Services / Server 2008
#121
Posted 31 March 2008 - 12:27 PM
Spotlight on Server 2008 Deployment Services.
This month's event @ Microsoft, "Heroes Happen Here" turned out to be a great success. A lot of resources were available for me since I started working for a gold-certified Microsoft partner.
In this part, I will extend my guide onto the latest technology available: Windows Server 2008.
#122
Posted 05 April 2008 - 03:05 PM
This is the current network configuration. External/Internal are Gigabit LANs, VMnet #1 and #8 are the NAT and Local-Only from VMware, and WiFi is the local intranet wireless connection. There is also a proxy that supplies internet from External to Internal.

This is the Server Manager with the current configuration for the DHCP role:

The 192.168.1.x and 2002:4d51:c06c:: scopes are running binded on Internal and WiFi. Your ISP might get upset if you start to give IPs to other customers using your own "rogue" DHCP.
As for Windows Deployment Services, in this case I can configure PXE Response Settings like this to speed up things:

Also, be careful to disable listening on port 67 for your WDS Server.

This is the Add Image Wizard:



And my configuration looks like this:

I will use this WDS to install a Ultimate SP1 vLited image in my eeePC:

#123
Posted 05 April 2008 - 03:58 PM
You must also have a connected cable on it, the DHCP server does not bind to disconnected networks.

This is my test machine booting from the bridge on Internal:


And I chose Windows Setup

As it seems there's no driver in boot.wim for the VMware network, it must be offline-serviced into it

Use Windows AIK like in KB923834. Here's my console output:
Be sure to have your boot image offline in WDS while you do this.
C:\Program Files\Windows AIK\Tools\PETools>md temp
C:\Program Files\Windows AIK\Tools\PETools>imagex /mountrw i:\remoteinstall\boot
\x86\images\boot.wim 2 temp
ImageX Tool for Windows
Copyright © Microsoft Corp. All rights reserved.
Mounting (RW): [i:\remoteinstall\boot\x86\images\boot.wim, 2] ->
[C:\Program Files\Windows AIK\Tools\PETools\temp]
Successfully mounted image (RW).
C:\Program Files\Windows AIK\Tools\PETools>peimg /?
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.
PEIMG {Command} {Image} [Flags]
Command /import | /inf | /install | /lang | /list | /prep | /uninstall |
/scratchspace | /targetpath | /timezone
Flags /verbose | /quiet | /f
Image Specifies the path to the Windows directory within the base
Windows PE image. The image must first be applied or mounted
to a local directory using ImageX. This can also be specified
as /image=path.
Commands:
/import=
Imports a package from a .CAB file or directory structure. The
package will be made available for installation.
/inf=
Installs an INF package (typically a driver) to a Windows PE image.
is the path to the .INF file. You can perform this on a
Windows PE image that was previously prepared with /prep.
/install=
Installs a package, where denotes the package name. A list of
available packages and their names can be obtained using the /list
command. Wildcards can be used when specifying a package name. Any
packages with matching long names will be installed.
/lang= [/layerdriver=]
Sets the locale and the UI language of a Windows PE image. The
value is the culture name of the specified language. A
language pack for the specified language must already be installed.
For the ja-JP or ko-KR cultures, the /layerdriver option can be used
to specify which keyboard layer driver should be installed. Values
for are integers in the range 1..6 and are described in the
documentation. You can perform this on a Windows PE image that
was previously prepared with /prep.
/list
Displays a list of packages in the current image. Packages are
displayed in short name form. In the INS column, (+) denotes
installed packages and (-) denotes not installed. /verbose will
display the full package names.
/prep
Optimizes the Windows PE image for size. This operation cannot be
reverted, and after /prep is issued, the /install, /uninstall,
/import, and /list commands will not function. The /lang, /inf and
/targetpath commands will continue to function. The tool will prompt
the user to confirm the command. To suppress this prompt for
scripting, specify the /f flag.
/uninstall=
Uninstalls a package, where denotes the package name. A list
of installed packages and their names can be obtained by using the
/list command. In the INS column, (+) denotes installed packages.
Wildcards can be used when specifying a package name. Any packages
with matching long names will be uninstalled.
/scratchspace=
Sets the amount of scratch space available, in megabytes. Valid
values are 32, 64, 128, 256 and 512.
/timezone=
Sets the default time zone of a Windows PE image. The time zone can
be specified either by a culture name or by a time zone name.
Please consult the documentation for more details. You can perform this
on a Windows PE image that was previously prepared with /prep.
/targetpath=X:\...
For harddisk boot scenarios, sets the location where the Windows
PE image will reside on the disk. This path must be equal to or
a subdirectory of X:\ (which is the default). You can only perform
this on a Windows PE image that was previously prepared with /prep.
Flags:
/verbose
Display long names for packages. Only short names are displayed by
default.
/quiet
Suppress the progress bar.
/f
Suppress prompts for use in scripts. This flag is ignored for
operations that would not normally prompt.
Examples:
REM Import a feature/update in a .CAB file
peimg c:\winpe\windows /import=feature.cab
REM List the installed and available packages
peimg /list /image=c:\winpe\windows
REM Install all available scripting packages
peimg /install=*Scripting* c:\winpe\windows
If this help text scrolls off of your screen, please run "peimg /? | more"
C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="A:\Installs\Drivers\eeePC
4G 701\Network\l260x86.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.
Installing INF package: A:\Installs\Drivers\eeePC 4G 701\Network\l260x86.inf
PEIMG completed the operation successfully.
C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="P:\program files\VMware\V
Mware Tools\Drivers\vmxnet\win2k\vmxnet.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.
Installing INF package: P:\program files\VMware\VMware Tools\Drivers\vmxnet\win2
k\vmxnet.inf
PEIMG completed the operation successfully.
C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="P:\program files\VMware\V
Mware Tools\Drivers\vmxnet\win2k\vmware-nic.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.
Installing INF package: P:\program files\VMware\VMware Tools\Drivers\vmxnet\win2
k\vmware-nic.inf
PEIMG completed the operation successfully.
C:\Program Files\Windows AIK\Tools\PETools>imagex /unmount /commit temp
ImageX Tool for Windows
Copyright © Microsoft Corp. All rights reserved.
Unmounting: [C:\Program Files\Windows AIK\Tools\PETools\temp]...
Successfully unmounted image.
Another thing to take into consideration is network traffic caused by WDS. If you don't have 1 Gbps LAN, you can easily clug the domain controller functionality if running on the same interface:

Get WDS Client network drivers for "e1000" in VMware here.
This post has been edited by dexter.inside: 05 April 2008 - 05:02 PM
#124
Posted 28 May 2008 - 05:51 PM
i see your work for a long time.
And now i can try it..i have a free time...i
i will comment on them if I manage she is still successfully the guide.
txnks dexter.inside
#125
Posted 29 May 2008 - 12:27 PM
when i use sysprep its erros appear.
error to reseal.
error to update registry
what id o wrong?
sorry for my bad english
#126
Posted 30 May 2008 - 02:30 AM
Dexter.inside
I tryed the guide and solved my previous problems whit sysprep section, the err0r was some MassStorages drivers
now i pased of this part.
After its i mount and imaging the partition, copy to sources folder of longhorn,but whe i try
to install all its fine, before begin the copy files then the setup
sendme this error...
Setup cant copy files
....
tanks in advance
i wait fr your helpdexter plz.
#127
Posted 30 May 2008 - 07:59 AM
Try this to make sure it's not something else causing it -
in HKLM\SYSTEM\Setup add or modify:
Cmdline:REG_SZ:setup -newsetup -mini
MiniSetupInProgress:REG_DWORD:0x1
SetupType:REG_DWORD:0x1
SystemSetupInProgress:REG_DWORD:0x1
and
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SetupExecute:REG_MULTI_SZ:setupcl.exe
(according to http://support.micro....com/kb/321070)
This should run mini-setup without driver detection. If this fails, you should post the last stuff that failed in the setup log. If it doesn't, you are not building mass storage driver list properly.
If you have extra steps to perform (related to drivers) or you need to bypass completely the windows mini-setup driver detection (like driverpacks), append it in the REG_MULTI_SZ after setupcl.exe
Hope it helps. It did for me.
This post has been edited by dexter.inside: 30 May 2008 - 08:01 AM
#128
Posted 30 May 2008 - 11:25 AM
Sure i use Sysprep -bmsd, and for the moment i skip the aditional MassStorage Drivers and its working.
Sysprep has pased, now i mount the drive and imagining it, patch with tiny hexer.
Add Eula, etc, and work fine.
But, when its hour to copy files after select partition to install, it giveme the next error.
Error trying copy files, and after i click ok, its close
I think that its for version of imagex that i use, so i download ximagex for longhorn,
whit this versio i can see /info and manipule install.wim of longhorn,but no, its not working the error is the same
Tanks for advance, you are great man,I very interesting on your guide, but i see no much people searching or
trying it.
#129
Posted 31 May 2008 - 06:21 AM
Have you tried booting from a live cd and applying your image manually with ximage onto the target partition to see if it works?
#130
Posted 31 May 2008 - 01:42 PM
I am very happy for you help.
I try its that you sayd, and i will post when i do it.
tanks.
ooo
And dexter, do you have boths images or iso`s that you use in this guide,
and if its not problem, its are downloable?
If its yes, where i download i search for months but i dont found, i found it in the warez web`s
but someones links are dead, they are in rapidshare, megaupload, Torrents, and others but all theys
are deads, not working.
Do you giveme this iso`s?
i hope that its not offend you.
oks tanks.
I hope have much more conversations whit you, maybe in msn.
#131
Posted 02 June 2008 - 01:03 AM
when i try to apply the install.wim directly whit
ximage /apply path\install.wim z: 3
it sayd that the image not exist in the install.wim
But now that I have added 2 images mas in the same install.wim, it copies the files and finishes the installation, and makes me the first boot, and after the Bootscreen, now it throws a BSOD,.
i will trying,
and post later...
#132
Posted 02 June 2008 - 09:57 PM
and already is finish it, in the virtual machine i had a BSOD an reboot inmediatly, but, in a normal machine all is work.
and i finish the instalñation proces, Driver detection and i had my desktop of the same form when i capture it,
tanks for the help,
Now i whis add more More MassStorage drivers and other driver to my instalation, so i tri it and post.
See you later dexter.inside
#134
Posted 06 June 2008 - 05:36 AM
darkleon, on Jun 3 2008, 06:57 AM, said:
and already is finish it, in the virtual machine i had a BSOD an reboot inmediatly, but, in a normal machine all is work.
Quite normal, if you have a SCSI/SAS drive in the VM and no mass storage driver for it. XP usually goes with BusLogic and Server 2003 with LSI
As for the disks, they are not mine, I've used the deployment server at work for the tutorial. My employer wouldn't be very happy if I were to share their MSDN subscription
#135
Posted 07 June 2008 - 01:49 AM
im testing the burned cd rom in diferents pcs, and its work great,
only i had problems in to virtual machine,but its fine for the moment,
Tanks for all your help and time to deply tis guide,
so i hope that you will teach us, in this proyect or others i very happy if exist more proyects that try,
well tanks. and see you later.
And it isnt a bye, is only see you later,i will try a post in msfn.and hope that you =.
#136
Posted 07 June 2008 - 10:26 AM
I'll keep you posted.
#137
Posted 10 June 2008 - 11:13 AM
darkleon, on May 29 2008, 09:27 PM, said:
when i use sysprep its erros appear.
error to reseal.
error to update registry
what id o wrong?
sorry for my bad english
Btw, I have a better idea...
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\Setup] "SetupType"=dword:00000001 "SystemSetupInProgress"=dword:00000001 "CmdLine"=hex(7):73,00,65,00,74,00,75,00,70,00,2e,00,65,00,78,00,65,00,20,00,\ 2d,00,6e,00,65,00,77,00,73,00,65,00,74,00,75,00,70,00,20,00,2d,00,6d,00,69,\ 00,6e,00,69,00,00,00,00,00 "MiniSetupDoPnP"=dword:00000001 "MiniSetupInProgress"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager] "SetupExecute"=hex(7):73,00,65,00,74,00,75,00,70,00,63,00,6c,00,2e,00,65,00,78,\ 00,65,00,00,00,00,00
Skip sysprep altogether and apply this reg. It will get you back to mini-setup.
The nasty part was to discover "MiniSetupDoPnP"=dword:00000001 , which AFAIK is undocumented.
#138
Posted 11 June 2008 - 11:15 PM
i will try it in few days...
and in Vmware and real pc`s
i`ll try to add sata massStorage drivers in new try.
i dont stop of try.
#139
Posted 12 June 2008 - 08:32 AM
I really enjoyed this guide and the rest of the msfn site, has given me a lot of great ideas on customizing my xp and 2003!.
I have been trying to sort out where the failure is for low memory systems on windows home server. Apparently, the WPE 2.0 environment WILL function without errors on 256 mb of ram, if you access a command prompt and create a pagefile on the hard drive, via wpeutil CreatePageFile <pagefile_name>, i had to edit winpeshl.ini and remove qs.exe and add cmd.exe in this file.
This remaining stuff i did was in Normal boot mode. did the rest in a full windows windows sbs install.
I unhid the whs optional components INF after i installed the whs component exe's and right click installed the whsoc.inf file. Then accessed cmd.exe again, then entered install.cmd from \files\install on the whs media then rebooted.
It appears qs.exe then exhibits strange behavior and bypasses the RAM check on the next reboot, the strange behavior is exhibited by using the bogus registry keys install.cmd entered, install.cmd made the assumption the media is on the drive you are booting from. The weird thing as well, that the media you called qs.exe from is now drive X: on reboot and your not even on PE!! and the install is hosed when i didnt do the previous steps before. i could NOT even logon.
I have a suspicion that whs is convertable if it can be figured out how to do this procedure without locking yourself out. or having strange drive assignments.
i would like to have otheres test this out on a non important installation.
It seems you need a good portion of the dvd directory structure and files in the root of the drive your attempting this on.
1). Unhide the windows components hidden in sysoc.inf, from your hard drive
2). install the inf from \windows\inf\whsoc.inf. from your hard drive.
3). Installed the whs components in \whs on your install media.
4). enter install.cmd from \files\install from your install media while in a normal windows session.
5). either reboot and allow the system to run qs.exe on next logon.
#140
Posted 16 June 2008 - 10:38 PM
And it is not caused by nLite.
- ← IE8 Install from cmdlines (for xp sp3) working
- Unattended Windows 2000/XP/2003
- Help needed with XP Unattended Install →



Help


Back to top








