diff options
| author | Simon Rettberg | 2013-09-30 18:53:37 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-09-30 18:53:37 +0200 |
| commit | da157553284ca7ba2f6467e5810e23aa337d4552 (patch) | |
| tree | 36f6fb4238d6c623c1862c6166d05b49710ae2aa /remote/modules/vmchooser | |
| parent | [systemd] Providing links in to systemctl/systemd (halt, init, poweroff, reboot, (diff) | |
| download | tm-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/modules/vmchooser')
| -rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exe | bin | 0 -> 12800 bytes | |||
| -rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 2 |
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 Binary files differnew file mode 100755 index 00000000..e016f407 --- /dev/null +++ b/remote/modules/vmchooser/data/opt/openslx/etc/vmchooser/openslx.exe 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 |
