Creating virtual machines by using the CLI¶
You can create virtual machines (VMs) from the command line by editing or creating a VirtualMachine manifest. You can also create a VM from an operating system image that you import, upload, build into a container disk, or clone from an existing persistent volume claim (PVC).
Note
You can also create VMs from instance types by using the OpenShift Container Platform web console.
Warning
You must install the QEMU guest agent on VMs created from operating system images that are not provided by Red Hat.
Creating a VM from a VirtualMachine manifest¶
You can create a virtual machine (VM) from a VirtualMachine manifest. To simplify the creation of these manifests, you can use the virtctl command-line tool.
Prerequisites
- You have installed the
virtctlCLI. - You have installed the OpenShift CLI (
oc).
Procedure
-
Create a
VirtualMachinemanifest for your VM and save it as a YAML file. For example, to create a minimal Red Hat Enterprise Linux (RHEL) VM, run the following command: -
Review the
VirtualMachinemanifest for your VM:Note
This example manifest does not configure VM authentication.
Example manifest for a RHEL VMapiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: name: rhel-9-minimal spec: dataVolumeTemplates: - metadata: name: imported-volume-mk4lj spec: sourceRef: kind: DataSource name: rhel9 namespace: openshift-virtualization-os-images storage: resources: {} instancetype: inferFromVolume: imported-volume-mk4lj inferFromVolumeFailurePolicy: Ignore preference: inferFromVolume: imported-volume-mk4lj inferFromVolumeFailurePolicy: Ignore runStrategy: Always template: spec: domain: devices: video: type: virtio memory: guest: 512Mi resources: {} terminationGracePeriodSeconds: 180 volumes: - dataVolume: name: imported-volume-mk4lj name: imported-volume-mk4ljname: rhel-9-minimalspecifies the name of the VM.name: rhel9specifies the boot source for the guest operating system in thesourceRefsection.namespace: openshift-virtualization-os-imagesspecifies the namespace for the boot source. Golden images are stored in theopenshift-virtualization-os-imagesnamespace.instancetype: inferFromVolume: imported-volume-mk4ljspecifies the instance type inferred from the selectedDataSourceobject.preference: inferFromVolume: imported-volume-mk4ljspecifies that the preference is inferred from the selectedDataSourceobject.type: virtiospecifies the use of a custom video device (a VirtIO device in this example) to enable hardware graphics acceleration. Enabling a custom video device is in Technology Preview for OpenShift Virtualization 4.22.
-
Create a virtual machine by using the manifest file:
-
Optional: Start the virtual machine:
Creating a VM from an image on a web page by using the CLI¶
You can create a virtual machine (VM) from an image on a web page by using the command line.
When the VM is created, the data volume with the image is imported into persistent storage.
Prerequisites
- You must have access credentials for the web page that contains the image.
- You have installed the
virtctlCLI. - You have installed the OpenShift CLI (
oc).
Procedure
-
Create a
VirtualMachinemanifest for your VM and save it as a YAML file. For example, to create a minimal Red Hat Enterprise Linux (RHEL) VM from an image on a web page, run the following command: -
Review the
VirtualMachinemanifest for your VM:apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: name: vm-rhel-9 spec: dataVolumeTemplates: - metadata: name: imported-volume-6dcpf spec: source: http: url: https://example.com/rhel9.qcow2 storage: resources: requests: storage: 10Gi instancetype: name: u1.small preference: name: rhel.9 runStrategy: Always template: spec: domain: devices: {} resources: {} terminationGracePeriodSeconds: 180 volumes: - dataVolume: name: imported-volume-6dcpf name: imported-volume-6dcpfmetadata.namedefines the VM name.spec.dataVolumeTemplates.metadata.namedefines the data volume name.spec.dataVolumeTemplates.spec.source.http.urldefines the URL of the image.spec.dataVolumeTemplates.spec.storage.resources.requests.storagedefines the size of the storage requested for the data volume.spec.instancetype.namedefines the instance type to use to control resource sizing of the VM.spec.preference.namedefines the preference to use.
-
Create the VM by running the following command:
The
oc createcommand creates the data volume and the VM. The CDI controller creates an underlying PVC with the correct annotation and the import process begins. When the import is complete, the data volume status changes toSucceeded. You can start the VM.Data volume provisioning happens in the background, so there is no need to monitor the process.
Verification
-
The importer pod downloads the image from the specified URL and stores it on the provisioned persistent volume. View the status of the importer pod:
-
Monitor the status of the data volume:
If the provisioning is successful, the data volume phase is
Succeeded.Example output:
-
Verify that provisioning is complete and that the VM has started by accessing its serial console:
If the VM is running and the serial console is accessible, the output looks as follows:
Generalizing a VM image¶
You can generalize a Red Hat Enterprise Linux (RHEL) image to remove all system-specific configuration data before you use the image to create a boot source image, a preconfigured snapshot of a virtual machine (VM). You can use a boot source image to deploy new VMs.
You can generalize a RHEL VM by using the virtctl, guestfs, and virt-sysprep tools.
Prerequisites
- You have a RHEL virtual machine (VM) to use as a base VM.
- You have installed the OpenShift CLI (
oc). - You have installed the
virtctltool.
Procedure
-
Stop the RHEL VM if it is running, by entering the following command:
-
Optional: Clone the virtual machine to avoid losing the data from your original VM. You can then generalize the cloned VM.
-
Retrieve the
dataVolumethat stores the root filesystem for the VM by running the following command:Example output:
-
Retrieve the persistent volume claim (PVC) that matches the listed
dataVolumeby running the followimg command:Example output:
Note
If your cluster configuration does not enable you to clone a VM, to avoid losing the data from your original VM, you can clone the VM PVC to a data volume instead. You can then use the cloned PVC to create a boot source image.
If you are creating a boot source image by cloning a PVC, continue with the next steps, using the cloned PVC.
-
Deploy a new interactive container with
libguestfs-toolsand attach the PVC to it by running the following command:This command opens a shell for you to run the next command.
-
Remove all configurations specific to your system by running the following command:
-
In the OpenShift Container Platform console, click Virtualization → Catalog.
-
Click Add volume.
-
In the Add volume window:
- From the Source type list, select Use existing Volume.
- From the Volume project list, select your project.
- From the Volume name list, select the correct PVC.
- In the Volume name field, enter a name for the new boot source image.
- From the Preference list, select the RHEL version you are using.
- From the Default Instance Type list, select the instance type with the correct CPU and memory requirements for the version of RHEL you selected previously.
- Heterogeneous clusters only: From the Architecture list, select the architecture that corresponds with the selected volume.
- Click Save.
Result
The new volume appears in the Select volume to boot from list. This is your new boot source image. You can use this volume to create new VMs.
Creating a Windows VM¶
You can create a Windows virtual machine (VM) by uploading a Windows image to a persistent volume claim (PVC) and then cloning the PVC when you create a VM by using the OpenShift Container Platform web console.
Warning
You must install VirtIO drivers on Windows VMs. Download VirtIO drivers only from official Red Hat sources.
Prerequisites
- You created a Windows installation DVD or USB with the Windows Media Creation Tool. See Create Windows 10 installation media in the Microsoft documentation.
- You created an
autounattend.xmlanswer file. See Answer files (unattend.xml) in the Microsoft documentation.
Procedure
-
Upload the Windows image as a new PVC:
-
Navigate to Storage → PersistentVolumeClaims in the web console.
-
Click Create PersistentVolumeClaim → With Data upload form.
-
Browse to the Windows image and select it.
-
Enter the PVC name, select the storage class and size and then click Upload.
The Windows image is uploaded to a PVC.
-
-
Configure a new VM by cloning the uploaded PVC:
- Navigate to Virtualization → Catalog.
- Select a Windows template tile and click Customize VirtualMachine.
- Select Clone (clone PVC) from the Disk source list.
- Select the PVC project, the Windows image PVC, and the disk size.
-
Apply the answer file to the VM:
- Click Customize VirtualMachine parameters.
- On the Sysprep section of the Scripts tab, click Edit.
- Browse to the
autounattend.xmlanswer file and click Save.
-
Set the run strategy of the VM:
- Clear Start this VirtualMachine after creation so that the VM does not start immediately.
- Click Create VirtualMachine.
- On the YAML tab, replace
running:falsewithrunStrategy: RerunOnFailureand click Save.
-
Click the Options menu
and select Control → Start.The VM boots from the
sysprepdisk containing theautounattend.xmlanswer file.
Generalizing a Windows VM image¶
You can generalize a Windows operating system image to remove all system-specific configuration data before you use the image to create a new virtual machine (VM).
Before generalizing the VM, you must ensure the sysprep tool cannot detect an answer file after the unattended Windows installation.
Prerequisites
- A running Windows VM with the QEMU guest agent installed.
Procedure
-
In the OpenShift Container Platform console, click Virtualization → VirtualMachines.
-
Select a Windows VM to open the VirtualMachine details page.
-
Click Configuration → Disks.
-
Click the Options menu
beside the sysprepdisk and select Detach. -
Click Detach.
-
Rename
C:\Windows\Panther\unattend.xmlto avoid detection by thesyspreptool. -
Start the
sysprepprogram by running the following command: -
After the
syspreptool completes, the Windows VM shuts down. The disk image of the VM is now available to use as an installation image for Windows VMs.
Result
You can now specialize the VM.
Specializing a Windows VM image¶
Specializing a Windows virtual machine (VM) configures the computer-specific information from a generalized Windows image onto the VM.
Prerequisites
- You must have a generalized Windows disk image.
- You must create an
unattend.xmlanswer file. See the Microsoft documentation for details.
Procedure
- In the OpenShift Container Platform console, click Virtualization → Catalog.
- Select a Windows template and click Customize VirtualMachine.
- Select PVC (clone PVC) from the Disk source list.
- Select the PVC project and PVC name of the generalized Windows image.
- Click Customize VirtualMachine parameters.
- Click the Scripts tab.
- In the Sysprep section, click Edit, browse to the
unattend.xmlanswer file, and click Save. - Click Create VirtualMachine.
Result
During the initial boot, Windows uses the unattend.xml answer file to specialize the VM. The VM is now ready to use.
Uploading a virtual machine image by using the CLI¶
You can upload an operating system image by using the virtctl command-line tool. You can use an existing data volume or create a new data volume for the image.
Prerequisites
- You must have an
ISO,IMG, orQCOW2operating system image file. - For best performance, compress the image file by using the virt-sparsify tool or the
xzorgziputilities. - The client machine must be configured to trust the OpenShift Container Platform router’s certificate.
- You have installed the
virtctlCLI. - You have installed the OpenShift CLI (
oc).
Procedure
-
Upload the image by running the
virtctl image-uploadcommand:$ virtctl image-upload dv <datavolume_name> \ --size=<datavolume_size> \ --image-path=</path/to/image><datavolume_name>- The name of the data volume.
<datavolume_size>- The size of the data volume. For example:
--size=500Mi,--size=1G </path/to/image>- The file path of the image.
Note
- If you do not want to create a new data volume, omit the
--sizeparameter and include the--no-createflag. - When uploading a disk image to a PVC, the PVC size must be larger than the size of the uncompressed virtual disk.
- To allow insecure server connections when using HTTPS, use the
--insecureparameter. When you use the--insecureflag, the authenticity of the upload endpoint is not verified.
-
Optional. To verify that a data volume was created, view all data volumes by running the following command:
Building and uploading a container disk¶
You can build a virtual machine (VM) image into a container disk and upload it to a registry.
The size of a container disk is limited by the maximum layer size of the registry where the container disk is hosted.
You create a VM from a container disk by performing the following steps:
- Build an operating system image into a container disk and upload it to your container registry.
- If your container registry does not have TLS, configure your environment to disable TLS for your registry.
- Create a VM with the container disk as the disk source by using the OpenShift Container Platform web console or the command line.
Warning
If the container disks are large, the I/O traffic might increase and cause worker nodes to be unavailable. You can perform the following tasks to reclaim resources:
- Prune
DeploymentConfigobjects. - Configure garbage collection.
Note
For Red Hat Quay, you can change the maximum layer size by editing the YAML configuration file that is created when Red Hat Quay is first deployed.
Prerequisites
- You must have
podmaninstalled. - You must have a QCOW2 or RAW image file.
Procedure
-
Create a Dockerfile to build the VM image into a container image. The VM image must be owned by QEMU, which has a UID of
107, and placed in the/disk/directory inside the container. Permissions for the/disk/directory must then be set to0440.The following example uses the Red Hat Universal Base Image (UBI) to handle these configuration changes in the first stage, and uses the minimal
scratchimage in the second stage to store the result:$ cat > Dockerfile << EOF FROM registry.access.redhat.com/ubi8/ubi:latest AS builder ADD --chown=107:107 <vm_image>.qcow2 /disk/ // RUN chmod 0440 /disk/* FROM scratch COPY --from=builder /disk/* /disk/ EOFwhere:
<vm_image>- Specifies the image in either QCOW2 or RAW format. If you use a remote image, replace
<vm_image>.qcow2with the complete URL.
-
Build and tag the container:
-
Push the container image to the registry:
Disabling TLS for a container registry¶
You can disable TLS (transport layer security) for one or more container registries by editing the insecureRegistries field of the HyperConverged custom resource.
Prerequisites
- You have installed the OpenShift CLI (
oc).
Procedure
-
Open the
HyperConvergedCR in your default editor by running the following command: -
Add a list of insecure registries to the
spec.storageImport.insecureRegistriesfield.Example
HyperConvergedcustom resource:apiVersion: hco.kubevirt.io/v1beta1 kind: HyperConverged metadata: name: kubevirt-hyperconverged namespace: openshift-cnv spec: storageImport: insecureRegistries: - "private-registry-example-1:5000" - "private-registry-example-2:5000"Replace the examples in the
insecureRegistrieslist with valid registry hostnames.
Creating a VM from a container disk by using the CLI¶
You can create a virtual machine (VM) from a container disk by using the command line.
Prerequisites
- You must have access credentials for the container registry that contains the container disk.
- You have installed the
virtctlCLI. - You have installed the OpenShift CLI (
oc).
Procedure
-
Create a
VirtualMachinemanifest for your VM and save it as a YAML file. For example, to create a minimal Red Hat Enterprise Linux (RHEL) VM from a container disk, run the following command: -
Review the
VirtualMachinemanifest for your VM:apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: name: vm-rhel-9 spec: instancetype: name: u1.small preference: name: rhel.9 runStrategy: Always template: metadata: creationTimestamp: null spec: domain: devices: {} resources: {} terminationGracePeriodSeconds: 180 volumes: - containerDisk: image: registry.redhat.io/rhel9/rhel-guest-image:9.5 name: vm-rhel-9-containerdisk-0metadata.namedefines the VM name.spec.instancetype.namedefines the instance type to use to control resource sizing of the VM.spec.preference.namedefines the preference to use.spec.template.spec.volumes.containerDisk.imagedefines the URL of the container disk.
-
Create the VM by running the following command:
Verification
-
Monitor the status of the VM:
If the provisioning is successful, the VM status is
Running. Example output: -
Verify that provisioning is complete and that the VM has started by accessing its serial console:
If the VM is running and the serial console is accessible, the output looks as follows:
About cloning¶
When cloning a data volume, the Containerized Data Importer (CDI) chooses one of the Container Storage Interface (CSI) clone methods: CSI volume cloning or smart cloning. Both methods are efficient but have certain requirements. If the requirements are not met, the CDI uses host-assisted cloning.
Host-assisted cloning is the slowest and least efficient method of cloning, but it has fewer requirements than either of the other two cloning methods.
CSI volume cloning¶
Container Storage Interface (CSI) cloning uses CSI driver features to more efficiently clone a source data volume.
CSI volume cloning has the following requirements:
- The CSI driver that backs the storage class of the persistent volume claim (PVC) must support volume cloning.
- For provisioners not recognized by the CDI, the corresponding storage profile must have the
cloneStrategyset to CSI Volume Cloning. - The source and target PVCs must have the same storage class and volume mode.
- If you create the data volume, you must have permission to create the
datavolumes/sourceresource in the source namespace. - The source volume must not be in use.
Smart cloning¶
When a Container Storage Interface (CSI) plugin with snapshot capabilities is available, the Containerized Data Importer (CDI) creates a persistent volume claim (PVC) from a snapshot, which then allows efficient cloning of additional PVCs.
Smart cloning has the following requirements:
- A snapshot class associated with the storage class must exist.
- The source and target PVCs must have the same storage class and volume mode.
- If you create the data volume, you must have permission to create the
datavolumes/sourceresource in the source namespace. - The source volume must not be in use.
Host-assisted cloning¶
When the requirements for neither Container Storage Interface (CSI) volume cloning nor smart cloning have been met, host-assisted cloning is used as a fallback method. Host-assisted cloning is less efficient than either of the two other cloning methods.
Host-assisted cloning uses a source pod and a target pod to copy data from the source volume to the target volume. The target persistent volume claim (PVC) is annotated with the fallback reason that explains why host-assisted cloning has been used, and an event is created.
Example PVC target annotation:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
cdi.kubevirt.io/cloneFallbackReason: The volume modes of source and target are incompatible
cdi.kubevirt.io/clonePhase: Succeeded
cdi.kubevirt.io/cloneType: copy
Example event:
NAMESPACE LAST SEEN TYPE REASON OBJECT MESSAGE
test-ns 0s Warning IncompatibleVolumeModes persistentvolumeclaim/test-target The volume modes of source and target are incompatible
Creating a VM from a PVC by using the CLI¶
You can create a virtual machine (VM) by cloning the persistent volume claim (PVC) of an existing VM by using the command line.
You can clone a PVC by using one of the following options:
-
Cloning a PVC to a new data volume.
This method creates a data volume whose lifecycle is independent of the original VM. Deleting the original VM does not affect the new data volume or its associated PVC.
-
Cloning a PVC by creating a
VirtualMachinemanifest with adataVolumeTemplatesstanza.This method creates a data volume whose lifecycle is dependent on the original VM. Deleting the original VM deletes the cloned data volume and its associated PVC.
Optimizing clone Performance at scale in OpenShift Data Foundation¶
When you use OpenShift Data Foundation, the storage profile configures the default cloning strategy as csi-clone. However, this method has limitations, as shown in the following link.
After a certain number of clones are created from a persistent volume claim (PVC), a background flattening process begins, which can significantly reduce clone creation performance at scale.
To improve performance when creating hundreds of clones from a single source PVC, use the VolumeSnapshot cloning method instead of the default csi-clone strategy.
Procedure
-
Create a
VolumeSnapshotcustom resource (CR) of the source image by using the following content: -
Add the
spec.source.snapshotstanza to reference theVolumeSnapshotas the source for theDataVolume clone:
Cloning a PVC to a data volume¶
You can clone the persistent volume claim (PVC) of an existing virtual machine (VM) disk to a data volume by using the command line.
You create a data volume that references the original source PVC. The lifecycle of the new data volume is independent of the original VM. Deleting the original VM does not affect the new data volume or its associated PVC.
Cloning between different volume modes is supported for host-assisted cloning, such as cloning from a block persistent volume (PV) to a file system PV, as long as the source and target PVs belong to the kubevirt content type.
Note
Smart-cloning is faster and more efficient than host-assisted cloning because it uses snapshots to clone PVCs. Smart-cloning is supported by storage providers that support snapshots, such as Red Hat OpenShift Data Foundation.
Cloning between different volume modes is not supported for smart-cloning.
Prerequisites
-
You have installed the OpenShift CLI (
oc). -
The VM with the source PVC must be powered down.
-
If you clone a PVC to a different namespace, you must have permissions to create resources in the target namespace.
-
Additional prerequisites for smart-cloning:
-
Your storage provider must support snapshots.
-
The source and target PVCs must have the same storage provider and volume mode.
-
The value of the
driverkey of theVolumeSnapshotClassobject must match the value of theprovisionerkey of theStorageClassobject as shown in the following example:Example
VolumeSnapshotClassobject:kind: VolumeSnapshotClass apiVersion: snapshot.storage.k8s.io/v1 driver: openshift-storage.rbd.csi.ceph.com # ...Example
StorageClassobject:
-
Procedure
-
Create a
DataVolumemanifest as shown in the following example:apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: name: <datavolume> spec: source: pvc: namespace: "<source_namespace>" name: "<my_vm_disk>" storage: {}where:
<datavolume>- Specifies the name of the new data volume.
<source_namespace>- Specifies the namespace of the source PVC.
<my_vm_disk>- Specifies the name of the source PVC.
-
Create the data volume by running the following command:
Note
Data volumes prevent a VM from starting before the PVC is prepared. You can create a VM that references the new data volume while the PVC is being cloned.
Creating a VM from a cloned PVC by using a data volume template¶
You can create a virtual machine (VM) that clones the persistent volume claim (PVC) of an existing VM by using a data volume template. This method creates a data volume whose lifecycle is independent on the original VM.
Prerequisites
- The VM with the source PVC must be powered down.
- You have installed the
virtctlCLI. - You have installed the OpenShift CLI (
oc).
Procedure
-
Create a
VirtualMachinemanifest for your VM and save it as a YAML file, for example: -
Review the
VirtualMachinemanifest for your VM:apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: name: rhel-9-clone spec: dataVolumeTemplates: - metadata: name: imported-volume-h4qn8 spec: source: pvc: name: imported-volume-q5pr9 namespace: my-project storage: resources: {} instancetype: inferFromVolume: imported-volume-h4qn8 inferFromVolumeFailurePolicy: Ignore preference: inferFromVolume: imported-volume-h4qn8 inferFromVolumeFailurePolicy: Ignore runStrategy: Always template: spec: domain: devices: {} memory: guest: 512Mi resources: {} terminationGracePeriodSeconds: 180 volumes: - dataVolume: name: imported-volume-h4qn8 name: imported-volume-h4qn8metadata.namedefines the VM name.spec.dataVolumeTemplates.spec.source.pvc.namedefines the name of the source PVC.spec.dataVolumeTemplates.spec.source.pvc.namespacedefines the namespace of the source PVC.spec.instancetype.inferFromVolumedefines that if the PVC source has appropriate labels, the instance type is inferred from the selectedDataSourceobject.spec.preference.inferFromVolumedefines that if the PVC source has appropriate labels, the preference is inferred from the selectedDataSourceobject.
-
Create the virtual machine with the PVC-cloned data volume:
Supported custom video device types¶
When creating a virtual machine (VM), you can configure a custom video device type to override the default video configuration.
Configuring a custom video device allows you to specify different video devices, based on your guest operating system requirements and performance needs.
Warning
Custom video device support is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
Using a custom video device provides several advantages:
- Performance
- Certain video devices provide better performance than the default configuration. For example, VirtIO is a more efficient video device on AMD/x86_64 architecture than legacy VGA.
- Resolution flexibility
- With some video device types, you can set custom display resolutions.
- Memory efficiency
- Some video types are more memory efficient for headless or console-only operations.
You can configure the following video device types:
- VirtIO: provides improved performance, and hardware-accelerated video decoding and encoding by offloading tasks to the host. Recommended for modern guest operating systems with available
VirtIOdrivers. - VGA: the standard for analog video display (default on AMD/x86_64 with BIOS).
- Bochs: an emulated graphics adapter that provides a simple interface for guest operating systems to manage display settings (default on AMD/x86_64 with EFI).
- Cirrus: a legacy video device that provides stable video output.
- ramfb: a simple, unaccelerated virtual display device primarily used in the QEMU emulator, and useful for ARM architecture.
Video device support by architecture
| Architecture | Boot mode | Default type | Supported types |
|---|---|---|---|
| AMD/x86_64 | BIOS | vga |
virtio, vga, bochs, cirrus, ramfb |
| AMD/x86_64 | EFI | bochs |
virtio, vga, bochs, cirrus, ramfb |
| ARM64 | BIOS/EFI | virtio |
virtio, ramfb |
| s390x | BIOS/EFI | virtio |
virtio |
Additional resources
- SSH access for virtual machines
- Instance types
- Installing the QEMU guest agent
- Installing VirtIO drivers on Windows VMs
- Red Hat VirtIO drivers download page
- How to check virtio-win drivers version on Windows guest
- Installing and updating VirtIO drivers for Windows virtual machines
- link:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation[Sysprep (Generalize) a Windows installation]
- Configuration pass of Windows Setup (generalize)
- Configuration pass of Windows Setup (specialize)
- Cloning a VM by using the web console
- Managing automatic boot source updates
- Setting a default cloning strategy using a storage profile
- Volume cloning
- Pruning objects to reclaim resources
- Configuring garbage collection for containers and images
- CSI volume snapshots