Quantcast
Channel: VMware Communities : All Content - VMware View
Viewing all articles
Browse latest Browse all 9103

VMware View Linked Clone pool - Change SID of VMs

$
0
0

Dear community

 

This morning I've had the great idea to use sysprep instead of quickprep to change the SID for all VMs within the linked clone pools. Why? Because the customer only does have VMs and he uses KMS to activate Office and Windows so we need at least 50 different SIDs. Well I've created a Guest OS Customization file for Windows (OS is Windows 7) within vCenter (which is connected to View admin) and I did:

 

Target Virutal Machine OS: Windows

Use Custom Sysprep Answer File: No

Name: Name of the file

Owners Name: xy

Owner Organization: xy

dfgdfg

VM Name: Use the virutal machine name

Productkey: Leave blank

Admin Password: Set twice

ZimeZone: GMT+1

Run Once: None

Network: Typical with DHCP

Domain: Customer Domain incl. Credentials

OS Options: Create new SID

 

Finish, went to View Admin created a new pool and set Guest Cust. to Syprep (Filename). Recomposed the pool and it worked fine until the generalization starts... it stucks at Regional Settings, when i reboot the same. When i klick net it asks me for a Computername and for a password.

Well:

 

1) Why is it stucking there? Further yes it has to stuck because i was not able to specify regional settings or is it not required? Why does it pop up then?

2) Why is it asking me for a Computername? I told him use existing one.

3) Why is it asking me for a Password? I told him what to use.

 

Well I toigh ok let's use a sysprep answwer file which I've included in a second guest cost. file (withi the guest in addition reset SID). Well this works greate except of the naming: I told him in the answerfile to use the %computername% variable which is for sure the master name, so VDI does not change that name.....

 

1) Would the sysprep answer file the rightway anyway?

2) How will i get the new name out of View for the VM for exmaple VM001 instead of Master001

 

See therefore the unattend.xml

 

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

    <settings pass="oobeSystem">

        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <OOBE>

                <HideEULAPage>true</HideEULAPage>

                <NetworkLocation>Work</NetworkLocation>

                <ProtectYourPC>3</ProtectYourPC>

                <SkipMachineOOBE>true</SkipMachineOOBE>

                <SkipUserOOBE>true</SkipUserOOBE>

            </OOBE>

            <RegisteredOwner>IT</RegisteredOwner>

            <RegisteredOrganization>IT</RegisteredOrganization>

            <TimeZone>GMT+1</TimeZone>

        </component>

        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <InputLocale>de-CH</InputLocale>

            <SystemLocale>de-CH</SystemLocale>

            <UILanguage>de-CH</UILanguage>

            <UserLocale>de-CH</UserLocale>

        </component>

    </settings>

    <settings pass="generalize">

        <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>

        </component>

        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <SkipRearm>1</SkipRearm>

        </component>

    </settings>

    <settings pass="specialize">

        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <ComputerName>%COMPUTERNAME%</ComputerName>

  <ProductKey>KEY</ProductKey>

            <CopyProfile>false</CopyProfile>

        </component>

  <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <Identification>

                <Credentials>

                    <Domain>DOMAIN</Domain>

                    <Password>USER</Password>

                    <Username>USER</Username>

                </Credentials>

                </Credentials>

                <JoinDomain>DOMAIN</JoinDomain>

                <UnsecureJoin>False</UnsecureJoin>

            </Identification>

        </component>

    </settings>

    <cpi:offlineImage cpi:source="catalog:c:/win7x86/extract/sources/install_windows 7 ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

 

If i check the guest cust. file without sysprep answer file i see that there are function which can crreate names for the VMs like vim.virtualmachinenamegenerator (or something like that) is that possible to use in sysprep as well? Well at the end I just want to change the SID of the VMs each time they getting recomposed to have enough unique SID in the network! How do I need to achieve this?

 

Best regards,


Viewing all articles
Browse latest Browse all 9103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>