nova/nova/tests/unit/virt
Konstantinos Samaras-Tsakiris ca543438e1 Hide hypervisor id on windows guests
Blueprints hide-hypervisor-id-flavor-extra-spec [1] and
add-kvm-hidden-feature [2] allow hiding KVM's signature for guests,
which is necessary for Nvidia drivers to work in VMs with passthrough
GPUs.  While this works well for linux guests on KVM, it doesn't work
for Windows guests.

For them, KVM emulates some HyperV features. With the
current implementation, KVM's signature is hidden, but HyperV's is not,
and Nvidia drivers don't work in Windows VMs.

This change generates an extra element in the libvirt xml for Windows
guests on KVM which obfuscates HyperV's signature too, controlled by the
existing image and flavor parameters (img_hide_hypervisor_id and
hide_hypervisor_id correspondingly). The extra xml element is
  <vendor_id state='on' value='1234567890ab'/>
in features/hyperv.

[1] https://blueprints.launchpad.net/nova/+spec/hide-hypervisor-id-flavor-extra-spec
[2] https://blueprints.launchpad.net/nova/+spec/add-kvm-hidden-feature

Change-Id: Iaaeae9281301f14f4ae9b43f4a06de58b699fd68
Closes-Bug: 1779845
2019-06-04 00:51:08 +00:00
..
disk Fix guestfs.set_backend_settings call 2019-05-18 18:53:13 +00:00
hyperv
image
ironic Remove [ironic]api_endpoint option 2019-04-26 12:02:02 -05:00
libvirt Hide hypervisor id on windows guests 2019-06-04 00:51:08 +00:00
powervm
vmwareapi Merge "Use update_provider_tree in vmware virt driver" 2019-05-18 01:56:16 +00:00
xenapi xenapi/agent: Change openssl error handling 2019-04-05 12:48:59 -04:00
zvm
__init__.py
fakelibosinfo.py
test_block_device.py
test_configdrive.py Skip existing VMs when hosts apply force_config_drive 2019-05-22 21:02:16 +00:00
test_driver.py
test_events.py
test_fake.py
test_firewall.py
test_hardware.py
test_imagecache.py
test_images.py
test_netutils.py
test_osinfo.py
test_virt.py
test_virt_drivers.py Fix failure to boot instances with qcow2 format images 2019-05-20 19:10:31 +08:00