Subversion Repositories se3

Rev

Blame | Last modification | View Log | RSS feed

<HTML>
<HEAD>
<TITLE>Deploy windows 7 from Linux without WAIK - 4. Unattended files</TITLE>
<link rel="STYLESHEET" type="text/css" href="default.css">
</HEAD>
<CENTER>
<H1>Deploy windows 7 from Linux without WAIK</H1>
</CENTER>
<TABLE>
<TR>
<TD VALIGN=TOP NOWRAP>

<B>Menu</B><BR>
<LI>1. <A HREF="win7pxelinux1.html">Overview</A>
<LI>2. <A HREF="win7pxelinux2.html">Services</A>
<LI>3. <A HREF="win7pxelinux3.html">Boot Files</A>
<LI>4. <A HREF="win7pxelinux4.html">Unattended files</A>
<LI>5. <A HREF="win7pxelinux5.html">Troubleshooting</A>
<TD WIDTH=20></TD>
<TD VALIGN=TOP>

<H2>4. Prepare the unattended installation files</H2>

<H3>4.1 Supported language</H3>
First we find out what languages are supported on this installation media.
<PRE>
cat /work/sambashare/win7/sources/lang.ini
</PRE>
That should give you something like
<PRE>
[Available UI Languages]
<FONT COLOR=RED>en-US</FONT> = 3

[Fallback Languages]
en-US = en-us
</PRE>
Apparently this DVD has the language en-US (with fallback en-us).

<H3>4.2 Determine the OS Flavor</H3>
Now we need to check what flavor is supported by the installation DVD
<PRE>
cat /work/sambashare/win7/sources/ei.cfg
</PRE>
That should give you something like:
<PRE>
[EditionID]
</FONT COLOR=RED>Ultimate</FONT>
[Channel]
OEM
[VL]
0
</PRE>
So this is a Windows 7 Ultimate OEM DVD with (non Volume licensed) We need this info to be able to pick an image in the next section:

<H3>4.3 Select the appropriate installation image</H3>
First we make a dump of the install.wim xml info:
<PRE>
/work/bin/wimxmlinfo /work/sambashare/win7/install.wim | sed 's/\(<\/[A-Z]*>\)/\1\n/g' | sed 's/></>\n</g'
</PRE>

That should give you something like:
<PRE>
&lt;WIM&gt;
&lt;TOTALBYTES&gt;2073978321&lt;/TOTALBYTES&gt;
&lt;IMAGE INDEX="1"&gt;
&lt;DIRCOUNT&gt;9350&lt;/DIRCOUNT&gt;
&lt;FILECOUNT&gt;46415&lt;/FILECOUNT&gt;
&lt;TOTALBYTES&gt;7661093433&lt;/TOTALBYTES&gt;
&lt;CREATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0443&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x6568BDF8&lt;/LOWPART&gt;
&lt;/CREATIONTIME&gt;
&lt;LASTMODIFICATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0463&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x5D745FDC&lt;/LOWPART&gt;
&lt;/LASTMODIFICATIONTIME&gt;
&lt;WINDOWS&gt;
&lt;ARCH&gt;0&lt;/ARCH&gt;
&lt;PRODUCTNAME&gt;Microsoft? Windows? Operating System&lt;/PRODUCTNAME&gt;
&lt;EDITIONID&gt;Starter&lt;/EDITIONID&gt;
&lt;INSTALLATIONTYPE&gt;Client&lt;/INSTALLATIONTYPE&gt;
&lt;HAL&gt;acpiapic&lt;/HAL&gt;
&lt;PRODUCTTYPE&gt;WinNT&lt;/PRODUCTTYPE&gt;
&lt;PRODUCTSUITE&gt;Terminal Server&lt;/PRODUCTSUITE&gt;
&lt;LANGUAGES&gt;
&lt;LANGUAGE&gt;nl-NL&lt;/LANGUAGE&gt;
&lt;DEFAULT&gt;nl-NL&lt;/DEFAULT&gt;
&lt;/LANGUAGES&gt;
&lt;VERSION&gt;
&lt;MAJOR&gt;6&lt;/MAJOR&gt;
&lt;MINOR&gt;1&lt;/MINOR&gt;
&lt;BUILD&gt;7600&lt;/BUILD&gt;
&lt;SPBUILD&gt;16385&lt;/SPBUILD&gt;
&lt;SPLEVEL&gt;0&lt;/SPLEVEL&gt;
&lt;/VERSION&gt;
&lt;SYSTEMROOT&gt;WINDOWS&lt;/SYSTEMROOT&gt;
&lt;/WINDOWS&gt;
&lt;NAME&gt;Windows 7 STARTER&lt;/NAME&gt;
&lt;DESCRIPTION&gt;Windows 7 STARTER&lt;/DESCRIPTION&gt;
&lt;FLAGS&gt;Starter&lt;/FLAGS&gt;
&lt;HARDLINKBYTES&gt;2918646231&lt;/HARDLINKBYTES&gt;
&lt;DISPLAYNAME&gt;Windows 7 Starter&lt;/DISPLAYNAME&gt;
&lt;DISPLAYDESCRIPTION&gt;Windows 7 Starter&lt;/DISPLAYDESCRIPTION&gt;
&lt;/IMAGE&gt;
&lt;IMAGE INDEX="2"&gt;
&lt;DIRCOUNT&gt;9359&lt;/DIRCOUNT&gt;
&lt;FILECOUNT&gt;46487&lt;/FILECOUNT&gt;
&lt;TOTALBYTES&gt;7681290464&lt;/TOTALBYTES&gt;
&lt;CREATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0443&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x6568BDF8&lt;/LOWPART&gt;
&lt;/CREATIONTIME&gt;
&lt;LASTMODIFICATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0463&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x7466EEDC&lt;/LOWPART&gt;
&lt;/LASTMODIFICATIONTIME&gt;
&lt;WINDOWS&gt;
&lt;ARCH&gt;0&lt;/ARCH&gt;
&lt;PRODUCTNAME&gt;Microsoft? Windows? Operating System&lt;/PRODUCTNAME&gt;
&lt;EDITIONID&gt;HomeBasic&lt;/EDITIONID&gt;
&lt;INSTALLATIONTYPE&gt;Client&lt;/INSTALLATIONTYPE&gt;
&lt;HAL&gt;acpiapic&lt;/HAL&gt;
&lt;PRODUCTTYPE&gt;WinNT&lt;/PRODUCTTYPE&gt;
&lt;PRODUCTSUITE&gt;Terminal Server&lt;/PRODUCTSUITE&gt;
&lt;LANGUAGES&gt;
&lt;LANGUAGE&gt;nl-NL&lt;/LANGUAGE&gt;
&lt;DEFAULT&gt;nl-NL&lt;/DEFAULT&gt;
&lt;/LANGUAGES&gt;
&lt;VERSION&gt;
&lt;MAJOR&gt;6&lt;/MAJOR&gt;
&lt;MINOR&gt;1&lt;/MINOR&gt;
&lt;BUILD&gt;7600&lt;/BUILD&gt;
&lt;SPBUILD&gt;16385&lt;/SPBUILD&gt;
&lt;SPLEVEL&gt;0&lt;/SPLEVEL&gt;
&lt;/VERSION&gt;
&lt;SYSTEMROOT&gt;WINDOWS&lt;/SYSTEMROOT&gt;
&lt;/WINDOWS&gt;
&lt;NAME&gt;Windows 7 HOMEBASIC&lt;/NAME&gt;
&lt;DESCRIPTION&gt;Windows 7 HOMEBASIC&lt;/DESCRIPTION&gt;
&lt;FLAGS&gt;HomeBasic&lt;/FLAGS&gt;
&lt;HARDLINKBYTES&gt;2933760608&lt;/HARDLINKBYTES&gt;
&lt;DISPLAYNAME&gt;Windows 7 Home Basic&lt;/DISPLAYNAME&gt;
&lt;DISPLAYDESCRIPTION&gt;Windows 7 Home Basic&lt;/DISPLAYDESCRIPTION&gt;
&lt;/IMAGE&gt;
<FONT COLOR=RED>&lt;IMAGE INDEX="3"&gt;
&lt;DIRCOUNT&gt;9576&lt;/DIRCOUNT&gt;
&lt;FILECOUNT&gt;47496&lt;/FILECOUNT&gt;
&lt;TOTALBYTES&gt;8123123919&lt;/TOTALBYTES&gt;
&lt;CREATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0443&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x6568BDF8&lt;/LOWPART&gt;
&lt;/CREATIONTIME&gt;
&lt;LASTMODIFICATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0463&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x8F7022C4&lt;/LOWPART&gt;
&lt;/LASTMODIFICATIONTIME&gt;
&lt;WINDOWS&gt;
&lt;ARCH&gt;0&lt;/ARCH&gt;
&lt;PRODUCTNAME&gt;Microsoft? Windows? Operating System&lt;/PRODUCTNAME&gt;
&lt;EDITIONID&gt;HomePremium&lt;/EDITIONID&gt;
&lt;INSTALLATIONTYPE&gt;Client&lt;/INSTALLATIONTYPE&gt;
&lt;HAL&gt;acpiapic&lt;/HAL&gt;
&lt;PRODUCTTYPE&gt;WinNT&lt;/PRODUCTTYPE&gt;
&lt;PRODUCTSUITE&gt;Terminal Server&lt;/PRODUCTSUITE&gt;
&lt;LANGUAGES&gt;
&lt;LANGUAGE&gt;nl-NL&lt;/LANGUAGE&gt;
&lt;DEFAULT&gt;nl-NL&lt;/DEFAULT&gt;
&lt;/LANGUAGES&gt;
&lt;VERSION&gt;
&lt;MAJOR&gt;6&lt;/MAJOR&gt;
&lt;MINOR&gt;1&lt;/MINOR&gt;
&lt;BUILD&gt;7600&lt;/BUILD&gt;
&lt;SPBUILD&gt;16385&lt;/SPBUILD&gt;
&lt;SPLEVEL&gt;0&lt;/SPLEVEL&gt;
&lt;/VERSION&gt;
&lt;SYSTEMROOT&gt;WINDOWS&lt;/SYSTEMROOT&gt;
&lt;/WINDOWS&gt;
&lt;NAME&gt;Windows 7 HOMEPREMIUM&lt;/NAME&gt;
&lt;DESCRIPTION&gt;Windows 7 HOMEPREMIUM&lt;/DESCRIPTION&gt;
&lt;FLAGS&gt;HomePremium&lt;/FLAGS&gt;
&lt;HARDLINKBYTES&gt;3313218351&lt;/HARDLINKBYTES&gt;
&lt;DISPLAYNAME&gt;Windows 7 Home Premium&lt;/DISPLAYNAME&gt;
&lt;DISPLAYDESCRIPTION&gt;Windows 7 Home Premium&lt;/DISPLAYDESCRIPTION&gt;
&lt;/IMAGE&gt;</FONT>
&lt;IMAGE INDEX="4"&gt;
&lt;DIRCOUNT&gt;9632&lt;/DIRCOUNT&gt;
&lt;FILECOUNT&gt;47924&lt;/FILECOUNT&gt;
&lt;TOTALBYTES&gt;8004750393&lt;/TOTALBYTES&gt;
&lt;CREATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0443&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x6568BDF8&lt;/LOWPART&gt;
&lt;/CREATIONTIME&gt;
&lt;LASTMODIFICATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0463&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x9DC7BC24&lt;/LOWPART&gt;
&lt;/LASTMODIFICATIONTIME&gt;
&lt;WINDOWS&gt;
&lt;ARCH&gt;0&lt;/ARCH&gt;
&lt;PRODUCTNAME&gt;Microsoft? Windows? Operating System&lt;/PRODUCTNAME&gt;
&lt;EDITIONID&gt;Professional&lt;/EDITIONID&gt;
&lt;INSTALLATIONTYPE&gt;Client&lt;/INSTALLATIONTYPE&gt;
&lt;HAL&gt;acpiapic&lt;/HAL&gt;
&lt;PRODUCTTYPE&gt;WinNT&lt;/PRODUCTTYPE&gt;
&lt;PRODUCTSUITE&gt;Terminal Server&lt;/PRODUCTSUITE&gt;
&lt;LANGUAGES&gt;
&lt;LANGUAGE&gt;nl-NL&lt;/LANGUAGE&gt;
&lt;DEFAULT&gt;nl-NL&lt;/DEFAULT&gt;
&lt;/LANGUAGES&gt;
&lt;VERSION&gt;
&lt;MAJOR&gt;6&lt;/MAJOR&gt;
&lt;MINOR&gt;1&lt;/MINOR&gt;
&lt;BUILD&gt;7600&lt;/BUILD&gt;
&lt;SPBUILD&gt;16385&lt;/SPBUILD&gt;
&lt;SPLEVEL&gt;0&lt;/SPLEVEL&gt;
&lt;/VERSION&gt;
&lt;SYSTEMROOT&gt;WINDOWS&lt;/SYSTEMROOT&gt;
&lt;/WINDOWS&gt;
&lt;NAME&gt;Windows 7 PROFESSIONAL&lt;/NAME&gt;
&lt;DESCRIPTION&gt;Windows 7 PROFESSIONAL&lt;/DESCRIPTION&gt;
&lt;FLAGS&gt;Professional&lt;/FLAGS&gt;
&lt;HARDLINKBYTES&gt;3179671026&lt;/HARDLINKBYTES&gt;
&lt;DISPLAYNAME&gt;Windows 7 Professional&lt;/DISPLAYNAME&gt;
&lt;DISPLAYDESCRIPTION&gt;Windows 7 Professional&lt;/DISPLAYDESCRIPTION&gt;
&lt;/IMAGE&gt;
&lt;IMAGE INDEX="5"&gt;
&lt;DIRCOUNT&gt;9662&lt;/DIRCOUNT&gt;
&lt;FILECOUNT&gt;48073&lt;/FILECOUNT&gt;
&lt;TOTALBYTES&gt;8162882068&lt;/TOTALBYTES&gt;
&lt;CREATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0443&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0x6568BDF8&lt;/LOWPART&gt;
&lt;/CREATIONTIME&gt;
&lt;LASTMODIFICATIONTIME&gt;
&lt;HIGHPART&gt;0x01CA0463&lt;/HIGHPART&gt;
&lt;LOWPART&gt;0xACBCB034&lt;/LOWPART&gt;
&lt;/LASTMODIFICATIONTIME&gt;
&lt;WINDOWS&gt;
&lt;ARCH&gt;0&lt;/ARCH&gt;
&lt;PRODUCTNAME&gt;Microsoft? Windows? Operating System&lt;/PRODUCTNAME&gt;
&lt;EDITIONID&gt;Ultimate&lt;/EDITIONID&gt;
&lt;INSTALLATIONTYPE&gt;Client&lt;/INSTALLATIONTYPE&gt;
&lt;HAL&gt;acpiapic&lt;/HAL&gt;
&lt;PRODUCTTYPE&gt;WinNT&lt;/PRODUCTTYPE&gt;
&lt;PRODUCTSUITE&gt;Terminal Server&lt;/PRODUCTSUITE&gt;
&lt;LANGUAGES&gt;
&lt;LANGUAGE&gt;nl-NL&lt;/LANGUAGE&gt;
&lt;DEFAULT&gt;nl-NL&lt;/DEFAULT&gt;
&lt;/LANGUAGES&gt;
&lt;VERSION&gt;
&lt;MAJOR&gt;6&lt;/MAJOR&gt;
&lt;MINOR&gt;1&lt;/MINOR&gt;
&lt;BUILD&gt;7600&lt;/BUILD&gt;
&lt;SPBUILD&gt;16385&lt;/SPBUILD&gt;
&lt;SPLEVEL&gt;0&lt;/SPLEVEL&gt;
&lt;/VERSION&gt;
&lt;SYSTEMROOT&gt;WINDOWS&lt;/SYSTEMROOT&gt;
&lt;/WINDOWS&gt;
&lt;NAME&gt;Windows 7 ULTIMATE&lt;/NAME&gt;
&lt;DESCRIPTION&gt;Windows 7 ULTIMATE&lt;/DESCRIPTION&gt;
&lt;FLAGS&gt;Ultimate&lt;/FLAGS&gt;
&lt;HARDLINKBYTES&gt;3336944182&lt;/HARDLINKBYTES&gt;
&lt;DISPLAYNAME&gt;Windows 7 Ultimate&lt;/DISPLAYNAME&gt;
&lt;DISPLAYDESCRIPTION&gt;Windows 7 Ultimate&lt;/DISPLAYDESCRIPTION&gt;
&lt;/IMAGE&gt;
&lt;/WIM&gt;
</PRE>
Once we've found out what language and windows 7 flavor we're dealing with we can edit the unattended install files. I've highlited the third image, since that is the Ultimate Edition we've found in the previous section. It's for Architecture 0, which is x86.

<H3>4.4 Create/edit the unattended file</H3>
<PRE>
vi /work/sambashare/system1.xml
vi /work/sambashare/system2.xml
</PRE>
The unattended file looks omething like this (You woul probably want to edit the values in red:
<PRE>
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;unattend xmlns="urn:schemas-microsoft-com:unattend"&gt;
    &lt;settings pass="windowsPE"&gt;
       &lt;component name="Microsoft-Windows-International-Core-WinPE" <FONT COLOR=RED>processorArchitecture="x86"</FONT> publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
            &lt;InputLocale&gt;<FONT COLOR=RED>en-US</FONT>&lt;/InputLocale&gt;
            &lt;SystemLocale&gt;<FONT COLOR=RED>en-US</FONT>&lt;/SystemLocale&gt;
            &lt;UILanguage&gt;<FONT COLOR=RED>en-US</FONT>&lt;/UILanguage&gt;
            &lt;UserLocale&gt;<FONT COLOR=RED>en-US</FONT>&lt;/UserLocale&gt;
        &lt;/component&gt;
        &lt;component name="Microsoft-Windows-Setup" <FONT COLOR=RED>processorArchitecture="x86"</FONT> publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
            &lt;ImageInstall&gt;
                &lt;OSImage&gt;
                    &lt;WillShowUI&gt;OnError&lt;/WillShowUI&gt;
                    &lt;InstallTo&gt;
                    &lt;DiskID&gt;0&lt;/DiskID&gt;
                    &lt;PartitionID&gt;1&lt;/PartitionID&gt;
                    &lt;/InstallTo&gt;
                    &lt;InstallFrom&gt;
                        &lt;Path&gt;i:\win7\sources\install.wim&lt;/Path&gt;
                        &lt;MetaData wcm:action="add"&gt;
                            &lt;Key&gt;/IMAGE/INDEX&lt;/Key&gt;
                            <FONT COLOR=RED>&lt;Value&gt;3&lt;/Value&gt;</FONT>
                        &lt;/MetaData&gt;
                    &lt;/InstallFrom&gt;
                &lt;/OSImage&gt;
            &lt;/ImageInstall&gt;
            &lt;UserData&gt;
                &lt;AcceptEula&gt;true&lt;/AcceptEula&gt;
            &lt;/UserData&gt;
            &lt;WindowsDeploymentServices&gt;
                &lt;Login&gt;
                    &lt;WillShowUI&gt;OnError&lt;/WillShowUI&gt;
                    &lt;Credentials&gt;
                        &lt;Username&gt;Administrator&lt;/Username&gt;
                        &lt;Domain&gt;domain.com&lt;/Domain&gt;
                        &lt;Password&gt;Password1&lt;/Password&gt;
                    &lt;/Credentials&gt;
                &lt;/Login&gt;
            &lt;/WindowsDeploymentServices&gt;
        &lt;/component&gt;
    &lt;/settings&gt;
    &lt;settings pass="oobeSystem"&gt;
         &lt;component name="Microsoft-Windows-Shell-Setup" <FONT COLOR=RED>processorArchitecture="x86"</FONT> publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
            &lt;OOBE&gt;
                 &lt;ProtectYourPC&gt;3&lt;/ProtectYourPC&gt;
                &lt;NetworkLocation&gt;Home&lt;/NetworkLocation&gt;
            &lt;/OOBE&gt;
            &lt;UserAccounts&gt;
                &lt;LocalAccounts&gt;
                    &lt;LocalAccount wcm:action="add"&gt;
                        &lt;Password&gt;
                            &lt;Value&gt;&lt;/Value&gt;
                            &lt;PlainText&gt;true&lt;/PlainText&gt;
                        &lt;/Password&gt;
                        &lt;Name&gt;admin&lt;/Name&gt;
                        &lt;Group&gt;Administrators&lt;/Group&gt;
                    &lt;/LocalAccount&gt;
                &lt;/LocalAccounts&gt;
            &lt;/UserAccounts&gt;
            &lt;TimeZone&gt;India Standard Time&lt;/TimeZone&gt;
        &lt;/component&gt;
    &lt;/settings&gt;
    &lt;cpi:offlineImage cpi:source="wim:i:/win7/sources/install.wim#Windows 7 HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" /&gt;
&lt;/unattend&gt;
</PRE>

Well, once you've done this you should be able to pxe boot a new system and you should be able to choose from the two systems you've configured for auto-deployment.  If not, please visit the next section:<A HREF="win7pxelinux5.html">Troubleshooting</A> share your experiences on the forum on <A HREF="http://www.ultimatedeployment.org">ultimatedeployment.org</A>.

<BR>
<BR>
<A HREF="win7pxelinux5.html">Continue to part 5</A>
<BR>
<BR>

<LI><A HREF="win7pxelinux1.html">Go to part 1: Overview</A>
<LI><A HREF="win7pxelinux2.html">Go to part 2: Configuring and starting services</A>
<LI><A HREF="win7pxelinux3.html">Go to part 3: Prepare the windows boot files</A>
<LI><A HREF="win7pxelinux4.html">Go to part 4: Prepare the unattended installation files</A>
<LI><A HREF="win7pxelinux5.html">Go to part 5: Troubleshooting</A>

</TD>
<TD VALIGN=TOP>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7926266120435192";
/* win7pxelinux */
google_ad_slot = "2210822672";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</TD>
</TR>
</TABLE>
</HTML>