'Why can't openstack's virtual machine unbind/detach PCI devices such as GPU?

Why can't openstack's virtual machine unbind/detach PCI devices such as GPU?

After I created a virtual machine in openstack using flavor with GPU device, the virtual machine cannot unbind/detach this GPU. This makes me very confused and I hope to get an answer.



Solution 1:[1]

Try this method:

  • 1, create a new flavor which copy from the original flavor used to create server but without the property like "resources:VGPU".
  • 2, resize the original server to the new flavor.

Or remove GPU by virsh the section of Removing NVIDIA vGPU devices.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1