---
title: Creating a license-compliant AWS EC2 Windows VM
---

# Creating a license-compliant AWS EC2 Windows VM {#virt-creating-vms-aws-li-windows}

If you are running Windows virtual machines (VMs) on OpenShift Container Platform hosts, such as AMD64 bare metal EC2 instances with Amazon Web Services (AWS) Windows License Included (LI) enabled, you must ensure that any VMs you create are compliant with licensing requirements.

When you configure your Windows VMs correctly, they activate automatically with the AWS Key Management Service (KMS), and run using optimized drivers for the underlying bare-metal hardware. Proper configuration also ensures that billing is correct.

If you do not configure your Windows VMs so that they are license-compliant, they might fail to activate, suffer degraded system performance due to sub-optimal CPU pinning, and risk failing a licensing audit.

## Create a license-compliant AWS EC2 Windows VM by using the web console {#virt-create-aws-li-windows-vm-web-console_virt-creating-vms-aws-li-windows}

Create license-compliant Windows virtual machines (VMs) by enabling the `dedicatedCpuPlacement` attribute. This is enabled by default on **Dedicated vCPU** instance types.

**Procedure**

1. In the OpenShift Container Platform web console, go to **Virtualization** → **Catalog**. The **InstanceTypes** tab opens by default.
2. Click **Add volume** to create a Windows boot source. You can upload a new volume or use an existing persistent volume claim (PVC), a volume snapshot, or a `containerDisk` volume.
3. In the **Volume metadata** section, select a preference with a name that begins with `windows` and is followed by the Windows version of your choice. For example, `windows.11.virtio`. Click **Save**.
4. Select a bootable volume from the list. If the list is truncated, click **Show all** to display the entire list. The bootable volume table contains the previously uploaded boot source.
5. In the **User provided** tab, select a **Dedicated vCPU** instance type.
6. Optional: You can mount a Windows driver disk by completing the following steps:

   1. Click **Customize VirtualMachine**.
   2. On the **VirtualMachine details** page, click **Storage**.
   3. Select the **Mount Windows drivers** disk checkbox.
7. Click **Create VirtualMachine**.
