#30 4.0.6 issues

open
nobody
script (16)
9
2011-05-09
2011-05-09
tlhackque
No

1) The script doesn't extract session names correctly when a USB device is attached.

The problem is that the script assumes that any line containing 'Name: ' is a session name.
Regrettably, the USB Filters section includes such a line.

e.g.:
-snip-
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
USB: enabled

USB Device Filters:

Index: 0
Active: yes
Name: LEXR PLUG DRIVE [0001]
VendorId: 05dc
-snip-

2) vrdp needs to be VRDE (as noted by others)

3) vrde port number extraction is broken by format changes. Easiest to extract it from the VRDE port: line

Attached script fixes these.

There may be more, but this is a start.

Discussion

  • tlhackque
    tlhackque
    2011-05-09

    • priority: 5 --> 9
     
  • tlhackque
    tlhackque
    2011-05-09

    Also, -type on startvm needs to be --type headless

    Fixed in updated script/patch.2

     
  • tlhackque
    tlhackque
    2011-05-10

    Sigh, more debugging.

    Autostart always discards saved state because vrde port is extracted from a field that's only valid when the machine is running.

    Machines aren't saved during shutdown on (at least) fedora because /var/lock/suubsys/vboxtoolinit isn't created.

    Fixes for these are vboxtool,patch.3 and vboxtoolinit.patch.1. These are cumulative patches against 0.4

    With these patches, fedora 14 and VirtualBox 4.0.6 seem to do the basics.

    N.B. I have not been careful to make the script work with older versions of VB - I don't have them to test and in any case, you can just use an older version of the script. (Except for the init script - which IS backward-compatible.)

    Enjoy

     
  • tlhackque
    tlhackque
    2011-05-10

    Improved script

     
    Attachments
  • tlhackque
    tlhackque
    2011-05-10

    Improved init script

     
    Attachments
  • tlhackque
    tlhackque
    2011-05-10

    Cumulative patch for init script

     
    Attachments
  • tlhackque
    tlhackque
    2011-05-10

    Cumulative patch for tool script

     
    Attachments