When writing the VMX file from the domain XML, write the firmware key
according to the firmware autoselection. Though, at the moment only
'efi' is supported.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
goto cleanup;
}
+ /* vmx:firmware */
+ if (def->os.firmware == VIR_DOMAIN_OS_DEF_FIRMWARE_EFI)
+ virBufferAddLit(&buffer, "firmware = \"efi\"\n");
+
if (virtualHW_version >= 7) {
if (hasSCSI) {
virBufferAddLit(&buffer, "pciBridge0.present = \"true\"\n");
--- /dev/null
+.encoding = "UTF-8"
+config.version = "8"
+virtualHW.version = "4"
+guestOS = "other"
+uuid.bios = "56 4d 9b ef ac d9 b4 e0-c8 f0 ae a8 b9 10 35 15"
+displayName = "firmware-efi"
+memsize = "4"
+numvcpus = "1"
+floppy0.present = "false"
+floppy1.present = "false"
+firmware = "efi"
--- /dev/null
+<domain type='vmware'>
+ <name>firmware-efi</name>
+ <uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
+ <memory unit='KiB'>4096</memory>
+ <os firmware='efi'>
+ <type>hvm</type>
+ </os>
+</domain>
DO_TEST("svga", "svga", 4);
+ DO_TEST("firmware-efi", "firmware-efi", 4);
+
DO_TEST("datacenterpath", "datacenterpath", 4);
virObjectUnref(caps);