on 03-15-2017 09:21 PM
Summary:
One of the administrative tasks required for bringing CloudCenter to an operational state is to either create new Windows virtual machine templates or to install the CloudCenter tools onto an existing template. Regardless of the IaaS platform (AWS, GCE, OpenStack, VMware, etc) the process to prepare the operating system to be deployed by CloudCenter remains largely similar. While it is conceivable to create one master template and use vendor provided utilities to perform the import or the form factor conversion of the template, considerations must be made for vendor specific software tools and drivers and for IaaS platforms which support cloud-init and native metadata services. The goal of this document is not to outline the tasks to prepare the OS to be used as a CloudCenter “Master” image - there is already a great resource for that purpose; the goal of this document is to outline the sysprep process and the steps to uninstall and reinstall the CloudCenter tools.
Set up:
To summarize the document, these are the instructions as stated in the document:
Validation:
Once the virtual machine has shutdown, do not power it on. If the VM is powered on it will complete the sysprep process - this suits the purpose of validating the completion of the unattended installation, but testing should be performed against a clone of this VM. There are different options available based on the cloud provider - 1) create a snapshot of the instance, 2) create an AMI of the instance, 3) convert the VM to become a template and deploy a VM from that template, etc. The goal is to ensure that the VM boots successfully, that there are no prompts for user input during the boot process and that the CloudCenter services are set to “Automatic” and their status is “Running.”
Uninstall:
To uninstall the CloudCenter, perform the following tasks:
Sample files:
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <UserData> <AcceptEula>true</AcceptEula> </UserData> </component> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <Identification> <JoinWorkgroup>WORKGROUP</JoinWorkgroup> </Identification> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <RegisteredOrganization>PoV Systems</RegisteredOrganization> <RegisteredOwner>PoV Administrator</RegisteredOwner> <TimeZone>Pacific Standard Time</TimeZone> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <UserAccounts> <AdministratorPassword> <Value>p@ssw0rd</Value> <PlainText>true</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Name>PoV Administrator</Name> <Description>PoV Administrator</Description> <DisplayName>PoV Administrator</DisplayName> <Group>Administrators</Group> </LocalAccount> </LocalAccounts> </UserAccounts> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> </OOBE> <RegisteredOrganization>PoV Systems</RegisteredOrganization> <RegisteredOwner>PoV Administrator</RegisteredOwner> <TimeZone>Pacific Standard Time</TimeZone> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> </unattend> |
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>en-US</UILanguage> <WillShowUI>Never</WillShowUI> </SetupUILanguage> <InputLocale>en-US</InputLocale> <SystemLocale>nl-NL</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>nl-NL</UserLocale> <UILanguageFallback>en-US</UILanguageFallback> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserData> <ProductKey> <Key>D2N9P-3P6X9-2R39C-7RTCD-MDVJX</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>PoV Administrator</FullName> <Organization>PoV Systems</Organization> </UserData> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TimeZone>pacific standard time</TimeZone> <ProductKey>D2N9P-3P6X9-2R39C-7RTCD-MDVJX</ProductKey> <RegisteredOwner>PoV Administrator</RegisteredOwner> <RegisteredOrganization>PoV Systems</RegisteredOrganization> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserAccounts> <AdministratorPassword> <Value>p@ssw0rd</Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> <RegisteredOwner>PoV Administrator</RegisteredOwner> <RegisteredOrganization>PoV Administrator</RegisteredOrganization> <TimeZone>pacific standard time</TimeZone> <OOBE> <HideEULAPage>true</HideEULAPage> <HideLocalAccountScreen>true</HideLocalAccountScreen> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <NetworkLocation>Work</NetworkLocation> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> </component> </settings> </unattend> |
sc config CliQrStartupService start= auto sc config JettyService start= autosc start CliQrStartupService sc start JettyServicedel /q /f C:\Windows\System32\Sysprep\Unattend.xml |
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: