Hi,
the gui is not available for the public (yet) as im hoping to build a
complete vmware image some day... (im currently working on support for
unattended FreeBSD)
I updated my config on 2k8 aswell and now the only fixed part is the
hostname of where to find the network share, the domain part is fetched
from the DHCP reply :) Ofcourse, it would be better if one could read
all the options given out with dhcpd since ive created an option for
this with the IP of the installation server... oh wel.
Use this for info on creating the BCD file:
http://sysadminman.net/blog/archives/8
And look on microsoft's site for the WinPE3-beta WAIK iso so you can
also install Windows7 if you'd like.
The best way to get it running without a gui would be to create the
unattended.xml file inside your windows dir and then call setup.exe with
the /unattended:unattended.xml option.
It would be better to understand if i give atleast these files to the
public :) Perhaps i can post a sample unattended.xml tomorrow.
Attachments (should all work fine, just rename them from .txt):
*winpe3_setup.bat << prepares the BCD, sets up the pxe root to-be copied
to the pxe server, run this in a windows env.
*startnet.cmd << file to replace in winpe.wim that will make sure our
scripts are run and a network drive is mounted (with the scripts)
*winpe3.bat << the startup script on the network drive
*winpe3_getpost.bat << called from unattended.xml to fetch the
postinstallation script
the scripts will probably contain stupid code etc. since this is my
first attempt at windows batch coding but atleast they get the job
done :)
ps: i've put the list back in cc because of the attachments
- Harm
On Sun, 2009-02-15 at 23:43 +0100, Nicolas BOURGES wrote:
> Hi,
>
> Thanks for your explanations. I will try this method this week.
>
> It is possible to share your php-gui ?
>
> regards,
>
>
> On Wed, Feb 11, 2009 at 11:39 PM, Harm <mailingl...@weites.com> wrote:
> Hi list members,
>
> my adventure regarding unattended installation of Windows
> Server 2008
> from a Linux environment have finally led to success :)
> I have created my own php-gui to install several Linux
> distro's, 2003
> server and WinXP. All completely unattended and with status
> updates on
> key moments in the installation progress. And finally, i can
> now add 2k8
> to this list (and vista/win7 aswell, they are based on
> WinPE2/3).
> Furthermore, it is not related to unattended-project as it
> does not take
> any advantage of the powerfull perl stuff. At this point i can
> store my
> unattended.xml in a database and have it beeing parsed and
> applied to
> setup.exe. Besides, unattended is aimed at using Linux/WinPE
> while this
> is not possible with WinPE3 (afaik). Besides the minor
> 'problem' its
> even quicker/easier :) (roughly 20mins to install 2k8-Standard
> in ESXi)
>
> The 'problem': a windows machine is required for the preparing
> steps,
> though this has been automated with a batch file.
> Luckily, the preparation steps in windows can be re-used on
> several
> hardware configurations and so they can be delivered as-is.
> The two steps:
> * create a BCD to replace boot.ini: only needed once to point
> to using a
> ram-drive
> * edit .wim file: you could call this the initrd, it holds a
> basic shell
> and contains all drivers needed in setup. (Additional drivers
> can be
> specified in unattended.xml but i haven't looked into this
> yet). It
> apears i can extract files from this using windows 7zip though
> it
> doesn't allow me to create a new .wim archive :(
> We need to extract files needed for PXE boot and we need to
> replace 1
> file to extend the bootup (make it mount a network share and
> run a
> certain script from there to prepare and run setup.exe with
> unattended.xml).
>
> So, the only hardcoded thing is the location of where to mount
> the z:,
> the samba share containing the root of the 2k8 dvd (rsync
> -avz /media/ /mirror/2k8/) and our installation scripts.
>
> My question is: is it possible to read linux like 'append'
> parameters
> from the PXE boot in the WinPE environment? Perhaps
> using/creating a
> simple program for this? With that, both files can be
> delivered as-is
> and settings can be applied dynamically.
>
>
> (configure settings like hostname and network in php-gui)
> The boot process:
> * PXE boot WinPE2/3 kernel
> * kernel mounts the .wim file, executes batch file
> * batch file mounts network share with startup script
> * run startup script, this install wget (gnuwin32) and fetches
> unattended.xml
> * fire up setup.exe with the unattended switch
> * setup is running
> * execute post-install stuff as described in unattended.xml
> * post-install from unattended mounts the network share and
> executes
> other script
> * that will install wget, fetch the post-install batch and
> execute it
> * connect to it using rdesktop when its done
>
> unattended, from start to finish :)
>
> regards,
> - Harm
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing
> skills and code to
> build responsive, highly engaging applications that combine
> the power of local
> resources and data with the reach of the web. Download the
> Adobe AIR SDK and
> Ajax docs to start building applications
> today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> unattended-devel mailing list
> unattended-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unattended-devel
>
>
>
> --
> Nicolas Bourges
> Tél : 06 75 94 68 06
@echo off
For /F "tokens=6 delims= " %%i IN ('ipconfig /all ^| find /I
"connection-specific dns suffix"') DO set DOMAIN=%%i
set REMOTE=mirror.%DOMAIN%
echo Starting WPEiNiT...
wpeinit
echo Done.
echo Mounting remote fs from %REMOTE% as z:
net use z: \\%REMOTE%\install
echo Tasks completed
echo I'm done, starting winpe3.bat
z:\site\winpe3.bat
@echo off
set post=c:\postinstall.bat
echo -------------------
echo --- WindowsPE 3 ---
echo -------setup_post--
echo Lets start with searching for our mac...
SET MAC=
FOR /F "Tokens=3 Delims= " %%a in ('getmac^|find "Media"') do set Media=%%a
FOR /F "Tokens=1-6 Delims=- " %%a in ('getmac^|find "Device\Tcpip_"') do set
MAC=%%a-%%b-%%c-%%d-%%e-%%f
set MAC=%MAC:-=%
set MAC=%MAC: =%
echo Found: %MAC%
echo Installing wget
z:\packages\wget\wget-1.11.4-setup.exe /sp- /silent
echo Fetching post-installation script
"c:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC%-finished -O %POST%
echo Run post installation script
call %POST%
ping -n 3 127.0.0.1
echo Give the 'reboot' signal cuz where done!
"c:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC%-reboot --spider
@echo off
set UN=x:\autounattend.xml
echo -------------------
echo --- WindowsPE 3 ---
echo -------------------
echo Lets start with searching for our mac...
For /F "tokens=12* delims= " %%i IN ('ipconfig /all ^| find /I "Physical
Address"') DO set MAC=%%i
set MAC=%MAC:-=%
set MAC=%MAC: =%
echo Found: %MAC%
echo Installing wget
z:\packages\wget\wget-1.11.4-setup.exe /sp- /silent
echo Fetching unattended.xml
"x:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC% -O %UN%
echo Searching for the OS-STRING that tells us which OS to install...
For /F "tokens=1 delims= " %%i IN ('type %UN% ^|find "IDENTIFICATIONSTRING"')
DO set MYOS=%%i
For /F "tokens=2 delims=. " %%i IN ('echo %MYOS%') DO set MYOS=%%i
echo Found OS: %MYOS%
ping -n 3 127.0.0.1
echo Give the 'starting' signal!
"x:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC%-starting --spider
echo And start setup with the unattended switch
z:\os\%MYOS%\setup.exe /unattend:%UN%
echo Now wait until setup is finished :)
@echo off
set UN=x:\autounattend.xml
echo -------------------
echo --- WindowsPE 3 ---
echo -------------------
echo Lets start with searching for our mac...
For /F "tokens=12* delims= " %%i IN ('ipconfig /all ^| find /I "Physical
Address"') DO set MAC=%%i
set MAC=%MAC:-=%
set MAC=%MAC: =%
echo Found: %MAC%
echo Installing wget
z:\packages\wget\wget-1.11.4-setup.exe /sp- /silent
echo Fetching unattended.xml
"x:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC% -O %UN%
echo Searching for the OS-STRING that tells us which OS to install...
For /F "tokens=1 delims= " %%i IN ('type %UN% ^|find "IDENTIFICATIONSTRING"')
DO set MYOS=%%i
For /F "tokens=2 delims=. " %%i IN ('echo %MYOS%') DO set MYOS=%%i
echo Found OS: %MYOS%
ping -n 3 127.0.0.1
echo Give the 'starting' signal!
"x:\Program Files\GNUwin32\bin\wget.exe" -q
http://osinst.boven.lan/fetch.php?code=%MAC%-starting --spider
echo And start setup with the unattended switch
z:\os\%MYOS%\setup.exe /unattend:%UN%
echo Now wait until setup is finished :)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel