diff options
author | Simon Rettberg | 2016-03-21 12:17:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-03-21 12:17:49 +0100 |
commit | fbf76c5d243d3815ce2a4bee22e6073ac077ebb6 (patch) | |
tree | f87f5c969d32bb28319dbbec07f0da794cc8e599 /remote/modules/vmware/data/opt/openslx | |
parent | [run-virt] Remove debug messages, pass home drive letter (diff) | |
download | tm-scripts-fbf76c5d243d3815ce2a4bee22e6073ac077ebb6.tar.gz tm-scripts-fbf76c5d243d3815ce2a4bee22e6073ac077ebb6.tar.xz tm-scripts-fbf76c5d243d3815ce2a4bee22e6073ac077ebb6.zip |
[vmware] Enable nested virtualization by default
Diffstat (limited to 'remote/modules/vmware/data/opt/openslx')
-rw-r--r-- | remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc index a8136513..d86a707a 100644 --- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc +++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc @@ -127,6 +127,10 @@ if [ -n "$SLX_EXAM" ]; then echo 'gui.restricted = "true"' >> "$TMPDIR/$IMGUUID" fi +# Enable nested virtualization if not specified in remote vmx +grep -qi '^vhv\.enable' "${TMPDIR}/${IMGUUID}" || echo 'vhv.enable = "TRUE"' >> "${TMPDIR}/${IMGUUID}" +grep -qi '^vpmc\.enable' "${TMPDIR}/${IMGUUID}" || echo 'vpmc.enable = "TRUE"' >> "${TMPDIR}/${IMGUUID}" + # Killing duplicate lines (output much nicer than sort -u): awk '!a[$0]++' "${TMPDIR}/${IMGUUID}" > "${TMPDIR}/${IMGUUID}.tmp" && mv "${TMPDIR}/${IMGUUID}.tmp" "${TMPDIR}/${IMGUUID}" |