public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] imagetypes_vm: add support for graphics controller configuration
@ 2026-09-04 10:30 vidyasagar.gc via isar-users
  2026-09-14 12:32 ` Zhihang Wei
  0 siblings, 1 reply; 2+ messages in thread
From: vidyasagar.gc via isar-users @ 2026-09-04 10:30 UTC (permalink / raw)
  To: isar-users; +Cc: Vidyasagar G C

From: Vidyasagar G C <vidyasagar.gc@siemens.com>

By default, when an ova image is imported into virtualbox, the graphics
controller was previously set to VBOXVGA (legacy).
However, virtualbox (> 6.0) recommends using VMSVGA for modern Linux guests
to ensure proper display initialization and performance.

To address this, introduce the OVA_GRAPHICS_CONTROLLER variable to set
the recommended graphics controller by default, while also allowing
downstream layers to customize the controller type in the generated
ovf descriptor.

Signed-off-by: Vidyasagar G C <vidyasagar.gc@siemens.com>

diff --git a/meta/classes-recipe/imagetypes_vm.bbclass b/meta/classes-recipe/imagetypes_vm.bbclass
index 9f1f4c48..fd4e97ed 100644
--- a/meta/classes-recipe/imagetypes_vm.bbclass
+++ b/meta/classes-recipe/imagetypes_vm.bbclass
@@ -49,6 +49,7 @@ OVA_FIRMWARE ?= "efi"
 OVA_ACPI ?= "true"
 OVA_3D_ACCEL ?= "false"
 OVA_SHA_ALG = "1"
+OVA_GRAPHICS_CONTROLLER ?= "VMSVGA"
 
 # Generate random MAC addresses just as VirtualBox does, the format is
 # their assigned prefix for the first 3 bytes followed by 3 random bytes.
@@ -59,7 +60,7 @@ macgen() {
 }
 
 OVA_VARS = "OVA_NAME OVA_MEMORY OVA_NUMBER_OF_CPU OVA_VRAM \
-            OVA_FIRMWARE OVA_ACPI OVA_3D_ACCEL \
+            OVA_FIRMWARE OVA_ACPI OVA_3D_ACCEL OVA_GRAPHICS_CONTROLLER \
             OVA_SHA_ALG VIRTUAL_MACHINE_IMAGE_FILE VMDK_SUBFORMAT"
 
 IMAGE_TEMPLATE_FILES:ova = "${OVF_TEMPLATE_FILE}"
diff --git a/meta/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl b/meta/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
index c3295149..f4d1271c 100644
--- a/meta/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
+++ b/meta/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
@@ -125,7 +125,7 @@
         <Firmware type="${OVA_FIRMWARE_UPPERCASE}"/>
         <HID Pointing="USBTablet"/>
         <Chipset type="ICH9"/>
-        <Display VRAMSize="${OVA_VRAM}" monitorCount="1" accelerate3D="${OVA_3D_ACCEL}" accelerate2DVideo="false"/>
+        <Display VRAMSize="${OVA_VRAM}" monitorCount="1" accelerate3D="${OVA_3D_ACCEL}" accelerate2DVideo="false" controller="${OVA_GRAPHICS_CONTROLLER}"/>
         <RemoteDisplay enabled="true"/>
 	<BIOS>
           <IOAPIC enabled="${OVA_ACPI}"/>
-- 
2.47.3

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260904103023.150460-1-vidyasagar.gc%40siemens.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-14 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 10:30 [PATCH] imagetypes_vm: add support for graphics controller configuration vidyasagar.gc via isar-users
2026-09-14 12:32 ` Zhihang Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox