VK Cloud logo

Video adapter error code 12 on a VM with vGPU

On a VM with vGPU and Windows built from a custom image, Device Manager shows an error in the video adapter properties:

This device cannot find enough free resources that it can use (Code 12)

The problem occurs if the image does not have the hw_video_model=none meta tag set. In this case, the hypervisor additionally emulates a built-in video adapter for the VM, which conflicts with the vGPU video adapter during resource allocation. Because of the conflict, the vGPU driver cannot initialize correctly.

Solution

You cannot change the meta tag for an existing VM. You need to recreate the VM from an image with the meta tag set.

  1. Set the meta tag for the image on which the VM is based:

    openstack image set --property hw_video_model=none <IMAGE_ID>
  2. Create the VM again from the updated image.

Was this article helpful?