mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/virtual_machines/virt-automating-windows-sysprep.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="virt-generalizing-windows-sysprep_{context}"]
|
|
= Generalizing a Windows VM using sysprep
|
|
|
|
Generalizing an image allows that image to remove all system-specific configuration data when the image is deployed on a virtual machine.
|
|
|
|
Before generalizing the VM, you must ensure the `sysprep` tool cannot detect an answer file after the unattended Windows installation.
|
|
|
|
.Procedure
|
|
|
|
. Remove the `sysprep` disk.
|
|
.. In the web console, select *Virtualization* -> *Virtual Machines*, and select the relevant VM.
|
|
.. Click *Disks*.
|
|
.. Click the Options menu {kebab} for the `sysprep` disk, then click *Delete*.
|
|
.. Click *Detach* in the *Detach sysprep disk* dialog.
|
|
. Rename `C:\Windows\Panther\unattend.xml` to avoid detection by the `sysprep` tool.
|
|
|
|
. Start the `sysprep` program by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
%WINDIR%\System32\Sysprep\sysprep.exe /generalize /shutdown /oobe /mode:vm
|
|
----
|
|
. After the `sysprep` tool completes, the Windows VM shuts down. The disk image of the VM is now available to use as an installation image for Windows VMs.
|
|
|
|
You can now specialize the VM.
|