summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-30 18:53:37 +0200
committerSimon Rettberg2013-09-30 18:53:37 +0200
commitda157553284ca7ba2f6467e5810e23aa337d4552 (patch)
tree36f6fb4238d6c623c1862c6166d05b49710ae2aa /remote
parent[systemd] Providing links in to systemctl/systemd (halt, init, poweroff, reboot, (diff)
downloadtm-scripts-da157553284ca7ba2f6467e5810e23aa337d4552.tar.gz
tm-scripts-da157553284ca7ba2f6467e5810e23aa337d4552.tar.xz
tm-scripts-da157553284ca7ba2f6467e5810e23aa337d4552.zip
[vmchooser] Add windows binary that will set the resolution in the VM. The binary will be placed in the virtual drive B floppy image
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exebin0 -> 12800 bytes
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt2
2 files changed, 2 insertions, 0 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exe b/remote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exe
new file mode 100755
index 00000000..e016f407
--- /dev/null
+++ b/remote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exe
Binary files differ
diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
index 7e594747..b0d01738 100755
--- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
@@ -432,6 +432,8 @@ fi
cp "$xmlfile" "/opt/openslx/etc/vmchooser/fd-loop/config.xml"
# Add another file with resolution information
xrandr | grep -o -E 'current\s*[0-9]+\s*x\s*[0-9]+' | cut -c 8- | sed -r 's/(\s|\t|\n)//g' | head -n 1 > "/opt/openslx/etc/vmchooser/fd-loop/hostres.txt"
+# Add our magic openslx binary that sets the correct guest resolution
+cp "/opt/openslx/etc/vmchooser/openslx.exe" "/opt/openslx/etc/vmchooser/fd-loop/"
# Try to use dnbd3 to access the image
unset vm_diskfile