Hyper-V supports UEFI SecureBoot since the 2012 R2 version
for Windows guests and this has been extended to Linux
guests as well with the upcoming release.
The Hyper-V API can change from a version to another (e.g. new
features), requiring a new Utils class to be added for specific
versions.
Refactors utilsfactory module. In this way, a new utils class
can be added without adding a new parameter when retrieving the
suitable class for windows version.
This method uses the 'run_and_check_output' wrapper for executing a
kernel32 lib function. The issue is that the 'kernel32_lib_func' flag
was omitted, for which reason the error handling is done improperly.
Namely, this function will return non-zero values in case of success,
which at the moment is interpreted as an error.
This patch fixes the issue by adding the missing flag.
Update method retrieving mounted disks to work with DVD drives
This patch updates the query used by the vmutils
_get_mounted_disk_resource_from_path method so that it can also
retrieve disks attached as DVD drives.
This change is needed by the Nova rescue blueprint implementation.