summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware-common
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-11 17:37:32 +0200
committerSimon Rettberg2022-07-11 17:37:32 +0200
commit5c75e7f83a37df4931509f665f40ad16c059ceb8 (patch)
treed3a2d049155a01246f464f1db8133475020b66e0 /core/modules/vmware-common
parentstage32: Enable zram-swap module (diff)
downloadmltk-5c75e7f83a37df4931509f665f40ad16c059ceb8.tar.gz
mltk-5c75e7f83a37df4931509f665f40ad16c059ceb8.tar.xz
mltk-5c75e7f83a37df4931509f665f40ad16c059ceb8.zip
[vmware-common] Force mainMem swap backing even if we don't have swap
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
index 2a023fa2..497ce086 100644
--- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
+++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
@@ -307,6 +307,10 @@ finalize_hardware() {
# Disable space check warnings
sed -i '/^mainMem.freeSpaceCheck/Id' "${TMPCONFIG}"
echo 'mainMem.freeSpaceCheck = "FALSE"' >> "${TMPCONFIG}"
+ # Need this to avoid VMware requiring as much free space in /tmp/virt as we have vmem
+ # and no swap. Should never happen because of zram swap, but hey...
+ sed -i '/^mainMem.backing/Id' "${TMPCONFIG}"
+ echo 'mainMem.backing = "swap"' >> "${TMPCONFIG}"
# Fix keymap fuckup when leaving VM
sed -i '/^mks.x.resetModMap/Id' "${TMPCONFIG}"