public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Zhihang Wei <wzh@ilbers.de>
To: vidyasagar.gc@siemens.com, isar-users@googlegroups.com
Subject: Re: [PATCH] imagetypes_vm: add support for graphics controller configuration
Date: Mon, 14 Sep 2026 14:32:07 +0200	[thread overview]
Message-ID: <d09df5ea-a42d-4f47-9000-234e74069519@ilbers.de> (raw)
In-Reply-To: <20260904103023.150460-1-vidyasagar.gc@siemens.com>

Applied to next, thanks.

Zhihang

On 9/4/26 12:30, vidyasagar.gc via isar-users wrote:
> 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}"/>

-- 
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/d09df5ea-a42d-4f47-9000-234e74069519%40ilbers.de.

      reply	other threads:[~2026-09-14 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-04 10:30 vidyasagar.gc via isar-users
2026-09-14 12:32 ` Zhihang Wei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d09df5ea-a42d-4f47-9000-234e74069519@ilbers.de \
    --to=wzh@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=vidyasagar.gc@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox