From f4bda545c912e6fcdf5ff4debd2eb2793beb6723 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:59:59 +0000 Subject: [PATCH] Add Display Options --- .../dynamix.vm.manager/include/libvirt.php | 27 +++++++++- .../include/libvirt_helpers.php | 50 +++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix.vm.manager/include/libvirt.php b/emhttp/plugins/dynamix.vm.manager/include/libvirt.php index 0c5f3a083..25e63c2fd 100644 --- a/emhttp/plugins/dynamix.vm.manager/include/libvirt.php +++ b/emhttp/plugins/dynamix.vm.manager/include/libvirt.php @@ -860,6 +860,12 @@ $strAccel3d =""; }} + $strDisplayOptions = ""; + if ($strModelType == "qxl") { + if (empty($gpu['DisplayOptions'])) $gpu['DisplayOptions'] ="ram='65536' vram='16384' vgamem='16384' heads='1' primary='yes'"; + $strDisplayOptions = $gpu['DisplayOptions']; + } + $vmrc = " @@ -869,7 +875,7 @@ $strEGLHeadless