[VBoxVmService] -> Discussion & Support

Discussions related to using VirtualBox on Windows hosts.

That was painful!

Postby nimrod » 6. Aug 2008, 17:41

I solved it!!!

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   Expand viewCollapse view
"C:\Program Files\VBoxVMService\tools\runasv.exe" "C:\Program Files\VBoxVMService\tmp\u_0_sub.exe" \read\virtual.box "******"


This was still resulting in the same thing.

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   Expand viewCollapse view
 > c:\output.log


This successfully caught the output of the call to VBoxHeadless.exe, which revealed that I was apparently calling an invalid VM name. This showed me that it was an issue with access, not a setup issue.

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   Expand viewCollapse view
...
<MachineEntry uuid="{195feec8-eb7c-4048-8db6-8b0c305e015f}" src="Machines\Ubuntu-SVN\Ubuntu-SVN.xml"/>
...
<VirtualDiskImage filePath="VDI\Ubuntu-SVN.vdi"/>
...


to:

Code: Select all   Expand viewCollapse view
...
<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. :wink:
nimrod
 
Posts: 5
Joined: 5. Aug 2008, 17:09

Re: That was painful!

Postby mattz » 6. Aug 2008, 18:31

nimrod wrote:I solved it!!!

Now I just have to find the fix that stops it leaving the run files behind, and it'll be all good. :wink:


First off: It's not that easy to actually offend me. :-) I have to say: Good job and quite a great hint for future users. I will definitely add this to the appropriate section of the manual.

The option to kill any left over runfiles is "BRUTEFORCE" which needs to be added to the startup-calls for each VM within the VBoxVmService.ini-file.

So try this one:

Code: Select all   Expand viewCollapse view
CommandLineUp=c:\PATH-TO-YOUR\startup.exe 0 BRUTEFORCE


Good luck!

--mattz
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

Thanks

Postby nimrod » 7. Aug 2008, 10:28

Thank mattz.

It's all running like a dream now!! I can't tell you how happy I am to have this working. :D

Thanks, Colin 8)
nimrod
 
Posts: 5
Joined: 5. Aug 2008, 17:09

Postby TerryE » 11. Aug 2008, 00:58

mattz wrote:yet again, i have to promote vboxvmservice ...

Mattz, the thing about vboxvmservice is that we don't have a crisp integrated user guide which you can point users to. What we have is complex discussion with over 60 posts in it. What you should consider doing is a trick that I've learnt on other forums and started to use here which is to have two topics: one of which is your documentation / tutorial which only you post to and a link to a separate discussion topic. You can then use the posts within the main topic to create a chapter structure. I realise that this is a bit of a cludge, but it can be made to work.

Normally we would lock the main topic, so that only moderators post to it. Hover we can't in this case, but what we can do is if you put at the the end of the main topic a general comment "please use XXX (hyperlink) to discuss this. Any posts here will be deleted by the moderators" then we can police this for you. I would suggest that you might be an appropriate candidate for a moderator to this forum, but even though you clearly have a lot of expertise in VBox, you don't really contribute to the forum other than on the single subject of vboxvmservice.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
TerryE
Volunteer
 
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS

Postby mattz » 11. Aug 2008, 11:15

TerryE wrote: ... but even though you clearly have a lot of expertise in VBox, you don't really contribute to the forum other than on the single subject of vboxvmservice.


Hi TerryE, you are absolutely right - my contributions here are focussed on VBoxvmservice and you are correct about this thread, as well. It really is becoming a little "difficult" to follow. Yet again there is a user guide bundled with VBoxVmService (available in english and german).
I leave the judgement on it's "crispness" to others. *gg*

My contributions to other topics here are very limited, since I run a startup software-company with a few great people working there and I carry a responsibility for them, so my focus is clearly there.

Furthermore my gorgeous fiance (still) likes me being around from time to time in real life... :-)

So let's pick up your great idea and ask a mod to start two threads.
I suggest:

"VBoxVmService - Announcements"
"VBoxVmService - Discussion & Support"

It would be great if the posts from this thread could be sorted/splitted accordingly to these new topics. Any mod here, who is willing to spare an hour of his time?

--mattz


PS: I will definitely continue to support VBoxVmService the best possible way, since it has become one of my favorite projects.
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

Postby TerryE » 11. Aug 2008, 11:53

Mattz, the easiest way is to create a new topic to act as the tutorial, and then make this post the discussion by editing / replacing the first post changing the title and making it into a discussion preamble. If you don't want to fight the BBCode crap, I'll make you an offer: if you sent me your draft of the tutorial in RTF / DOC / ODT format I have some magic macros which automate most of the conversion, and I'll put up your tutorial and swap the stickies around. My email is my user id at OpenOffice.org. //Terry
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
TerryE
Volunteer
 
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS

Postby mattz » 11. Aug 2008, 12:47

TerryE wrote:Mattz, the easiest way is to create a new topic to act as the tutorial, and then make this post the discussion by editing / replacing the first post changing the title and making it into a discussion preamble. If you don't want to fight the BBCode crap, I'll make you an offer: if you sent me your draft of the tutorial in RTF / DOC / ODT format I have some magic macros which automate most of the conversion, and I'll put up your tutorial and swap the stickies around. My email is my user id at OpenOffice.org. //Terry


Ok, you should have my email by now.

--mattz
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

Postby diogoscs » 12. Aug 2008, 20:46

hi guys,

I read all the posts, but I couldn't solve my problem! I have the same problem of Shriike, but he disapeared and I don't know if he solve too.
My OS is a Windows 2003 Server Enterprise R2, and the #$!#$ vboxheadless.exe never show in taskmanager, only the vboxsvc... i'm really crazy! I wondering if this problem is the same that the Vista...

thanks guys
diogoscs
 
Posts: 5
Joined: 5. Aug 2008, 20:22

Postby mattz » 12. Aug 2008, 21:00

how many times....? :?

1. post your VBoxVmService.ini-file!

2. check your VirtualBox.xml-file for relative links and change them to absolute values (as described by nimrod three or four posts earlier)

3. try using BRUTEFORCE as a startup option parameter (all caps)

---mattz
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

Postby diogoscs » 12. Aug 2008, 21:39

Sorry :D like we said in my land "foi mal!!"

This is my .ini file....

Code: Select all   Expand viewCollapse view
[Settings]
ServiceName=VBoxVmService
PathToVBoxSDL=C:\Program Files\Sun\xVM VirtualBox\VBoxSDL.exe
PathToVBoxVRDP=C:\Program Files\Sun\xVM VirtualBox\VBoxHeadless.exe
PathToVBoxManage=C:\Program Files\Sun\xVM VirtualBox\VBoxManage.exe
RunAsUser=administrador
RunAtDomain=ibeu
UserPassword=*******
[Vm0]
VmName=Bibsrv
CommandLineUp=C:\Program Files\Sun\xVM VirtualBox\vms\startup.exe 0 BRUTEFORCE
CommandLineDown=C:\Program Files\Sun\xVM VirtualBox\vms\shutdown.exe 0
WorkingDir=C:\Program Files\Sun\xVM VirtualBox\vms
StartupMethod=vrdp
ShutdownMethod=savestate
VrdpPort=3390


I read about the relatives names, but to me everything's ok...
Code: Select all   Expand viewCollapse view
<MachineEntry uuid="{ca2410bc-85e9-4572-b798-7058a40f3f83}" src="C:\Documents and Settings\administrador\.VirtualBox\Machines\Bibsrv\Bibsrv.xml"/>

.....

<VirtualDiskImage filePath="C:\Documents and Settings\administrador\.VirtualBox\VDI\Bibsrv.vdi"/>
diogoscs
 
Posts: 5
Joined: 5. Aug 2008, 20:22

Postby mattz » 12. Aug 2008, 22:19

ok, this seems to be ok so far... next steps:

1. check your service control manager for vboxvmservice. it needs to be registered there to work properly.

2. open up a console, cd to your vms dir and try kicking up your vm manually with "startup_cli 0" (optionally add BRUTEFORCE)

does this work?
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

Postby diogoscs » 13. Aug 2008, 00:09

mattz wrote:ok, this seems to be ok so far... next steps:

1. check your service control manager for vboxvmservice. it needs to be registered there to work properly.

2. open up a console, cd to your vms dir and try kicking up your vm manually with "startup_cli 0" (optionally add BRUTEFORCE)

does this work?


In fact no... When I run the startup_cli 0 open the promtp with...

Code: Select all   Expand viewCollapse view
No previously started VM operations to wait for. Continuing...
Reading global parameters...
Reading parameters for VM0...
Using custom VRDP-Port: 3390

C:\Program Files\Sun\xVM VirtualBox\vms\tmp\u_0_sub.bat ==> C:\Program Files\Sun\xVM VirtualBox\vms\tmp\u_0_sub.exe  (-hidden)


C:\Program Files\Sun\xVM VirtualBox\vms\tmp\u_0_run.bat ==> C:\Program Files\Sun\xVM VirtualBox\vms\tmp\u_0_run.exe  (-hidden)

Installing temporary service "runserv"...
Shutting down "runserv" to avoid malfunctions...
Restarting "runserv"...
Starting VM: "Bibsrv" via vrdp as a service using account: "administrador"...
Moving lockfile: STARTUP to RUN
Shutting down "runserv"...
Removing temporary service "runserv"...
Removing temporary helpfiles...
Done. -- Hit any key to quit --



I look for some VBoxHeadless.exe in taskmanager but he not show, only vboxsvc (he disapear some times )

And the service is ok... he start when I turn on the machine, don't create any message in Event Viewer he start vboxsvc too but not the VBoxHeadless.exe
diogoscs
 
Posts: 5
Joined: 5. Aug 2008, 20:22

runasv ran as Default User

Postby originofstorms » 15. Aug 2008, 10:24

okay, at long last, figured out why runasv wasnt behaving for me. after quite a bit of detective work, i found that despite running as user micah, and being able to do things that only user micah can do, runasv gaves me the profile of Default User in windows 2003 server. so, i used the same fsutils technique to hardlink ~\.VirtualBox\VirtualBox.xml as Documents and Settings\Default User\.VirtualBox\VirtualBox.xml. ta da.

many thanks to nimrod for the "> output.log" suggestion. that put me on the right track. sticking the output of "vboxmanage list vms" and "vboxmanage list systemproperties" into that log was very helpful too.
originofstorms
 
Posts: 2
Joined: 15. Apr 2008, 22:05

Re: runasv ran as Default User

Postby diogoscs » 15. Aug 2008, 20:41

originofstorms wrote:okay, at long last, figured out why runasv wasnt behaving for me. after quite a bit of detective work, i found that despite running as user micah, and being able to do things that only user micah can do, runasv gaves me the profile of Default User in windows 2003 server. so, i used the same fsutils technique to hardlink ~\.VirtualBox\VirtualBox.xml as Documents and Settings\Default User\.VirtualBox\VirtualBox.xml. ta da.

many thanks to nimrod for the "> output.log" suggestion. that put me on the right track. sticking the output of "vboxmanage list vms" and "vboxmanage list systemproperties" into that log was very helpful too.


I didn't uderstand something... where exactly I put the "> output.log", I didn't find the u_0_sub.bat...
diogoscs
 
Posts: 5
Joined: 5. Aug 2008, 20:22

Postby mattz » 9. Oct 2008, 23:53

There is no more need to patch VBoxVmService yourself, in order to obtain more or more detailed information on the status of it's components. The logging within the new release 20081009 now combines all component feedback into one single logfile.

--mattz
mattz
 
Posts: 95
Joined: 18. Feb 2008, 11:51
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WinXP/Debian/OSX

PreviousNext

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Baidu [Spider], p0358 and 19 guests