After much painfull investigation I got down to the point of running the contents of the u_0_run.bat (which becomes u_0_run.exe). Which is thus:
Code: Select all
"C:\Program Files\VBoxVMService\tools\runasv.exe" "C:\Program Files\VBoxVMService\tmp\u_0_sub.exe" \read\virtual.box "******"
I tried making it call u_0_sub.bat rather than the exe, which I was surprised to find was ok, but still didn't work.
My breakthrough came when I added the following to the end of the line in u_0_sub.bat...
Code: Select all
> c:\output.log
The actual issue eventually turned out to be the fact that my VirtualBox.xml file was referencing the VDI and MACHINE directories relatively. After changing this to fully qualified paths it worked. I don't understand why this would make a difference because it should be running as the virtual.box user in whose directory structure they reside.
Here's what I changed...
from:
Code: Select all
...
<MachineEntry uuid="{195feec8-eb7c-4048-8db6-8b0c305e015f}" src="Machines\Ubuntu-SVN\Ubuntu-SVN.xml"/>
...
<VirtualDiskImage filePath="VDI\Ubuntu-SVN.vdi"/>
...
Code: Select all
...
<MachineEntry uuid="{195feec8-eb7c-4048-8db6-8b0c305e015f}" src="c:\docume~1\virtual.box\.VirtualBox\Machines\Ubuntu-SVN\Ubuntu-SVN.xml"/>
...
<VirtualDiskImage filePath="c:\docume~1\virtual.box\.VirtualBox\VDI\Ubuntu-SVN.vdi"/>
...
Now I just have to find the fix that stops it leaving the run files behind, and it'll be all good.