mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 15:46:57 +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 (VM).
|
|
|
|
Before generalizing the VM, you must ensure the `sysprep` tool cannot detect an answer file after the unattended Windows installation.
|
|
|
|
.Procedure
|
|
|
|
. In the {product-title} console, click *Virtualization* -> *VirtualMachines*.
|
|
. Select a Windows VM to open the *VirtualMachine details* page.
|
|
. Click the *Disks* tab.
|
|
. Click the Options menu {kebab} for the `sysprep` disk and select *Detach*.
|
|
. Click *Detach*.
|
|
. 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.
|