[Libguestfs] [PATCH v2 0/2] Reset the graphics mode in UEFI BCD

Pavel Butsykin pbutsykin at virtuozzo.com
Sat Jun 11 10:29:40 UTC 2016


Guest tools for Windows in Parallels / Virtuozzo Server 6 contain a
paravirtualized video driver, which wants to take full control of the video
mode. To avoid excessive video mode switches in UEFI VMs it executes
"bcdedit /set {current} graphicsmodedisabled true".

When such a VM is imported into a QEMU/KVM-based hypervisor, the standard video
drivers in Windows do not set the video mode as they expect it to have already
been configured by the bootloader.  As a result, the VM runs with black screen.
To solve this issue, we need to try to lead the BCD to the default state.

Changes from v1:
- replaced i_uefi bool to a new i_firmware (1)

Pavel Butsykin (2):
  v2v: fill the list of the EFI system partitions
  v2v: remove the 'graphicsmodedisabled' entry in ESP BCD

 v2v/convert_linux.ml   |  7 +++----
 v2v/convert_windows.ml | 41 +++++++++++++++++++++++++++++++++++++++++
 v2v/inspect_source.ml  | 34 +++++++++++++++++++++-------------
 v2v/types.ml           | 12 +++++++++---
 v2v/types.mli          |  8 +++++++-
 v2v/v2v.ml             |  5 ++++-
 v2v/v2v_unit_tests.ml  |  2 +-
 7 files changed, 86 insertions(+), 23 deletions(-)

-- 
2.8.3




More information about the Libguestfs mailing list