From b2f848473c2aee2dc33f56e15448eb45ad850351 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 1 Mar 2022 14:14:12 +0100 Subject: [vmware] Add svga.graphicsMemoryKB to whitelist --- .../configuration/VirtualizationConfigurationVmware.java | 7 ++++--- .../vmx/vmware-player_default-ubuntu_transform-non-persistent.vmx | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVmware.java b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVmware.java index 49f44df..d9ad129 100644 --- a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVmware.java +++ b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVmware.java @@ -55,11 +55,12 @@ public class VirtualizationConfigurationVmware extends VirtualizationConfigurati "^time\\.synchronize", "^bios\\.bootDelay", "^rtc\\.", "^xhci[.:]", "^usb_xhci[.:]", "\\.deviceType$", "\\.port$", "\\.parent$", "^usb[.:]", - "^firmware", "^hpet", "^vm\\.genid" }; - STATELESS_WHITELIST_PATTERN = Pattern.compile( String.join( "|", list1 ).toLowerCase(), Pattern.CASE_INSENSITIVE ); + "^firmware", "^hpet", "^vm\\.genid", + "^svga\\.graphicsMemoryKB$" }; + STATELESS_WHITELIST_PATTERN = Pattern.compile( String.join( "|", list1 ), Pattern.CASE_INSENSITIVE ); // LOWERCASE - Upload privacy filter String[] list2 = { "^displayname$", "^extendedconfigfile$", "^gui\\.", "^nvram$", "^memsize$" }; - PRIVACY_BLACKLIST_PATTERN = Pattern.compile( String.join( "|", list2 ).toLowerCase(), Pattern.CASE_INSENSITIVE ); + PRIVACY_BLACKLIST_PATTERN = Pattern.compile( String.join( "|", list2 ), Pattern.CASE_INSENSITIVE ); } public static enum EthernetType diff --git a/src/test/resources/vmware/vmx/vmware-player_default-ubuntu_transform-non-persistent.vmx b/src/test/resources/vmware/vmx/vmware-player_default-ubuntu_transform-non-persistent.vmx index e62d33a..ac14019 100644 --- a/src/test/resources/vmware/vmx/vmware-player_default-ubuntu_transform-non-persistent.vmx +++ b/src/test/resources/vmware/vmx/vmware-player_default-ubuntu_transform-non-persistent.vmx @@ -35,6 +35,7 @@ sound.autoDetect = "TRUE" sound.fileName = "-1" sound.present = "TRUE" suspend.disabled = "TRUE" +svga.graphicsMemoryKB = "8388608" tools.syncTime = "FALSE" usb.present = "TRUE" usb.vbluetooth.startConnected = "TRUE" -- cgit v1.2.3-55-g7522