Page 21 of 30
Re: [VBoxVmService] -> Discussion & Support
Posted: 20. Apr 2011, 13:59
by sivakota
Hi, I'm trying to setup Oracle VM Image on Virtual machine. I'm able to proceed till "Start" Image step, later I loose connection and virtual machine will get shutdown. I've to ask IT to restart virtual machine. I'm trying on win 2003 virtual machine with WinPEx86.iso iamge. Please share any one has tried on virtual machine and how to resolve this. Thanks -Siva Kota
Re: [VBoxVmService] -> Discussion & Support
Posted: 25. Apr 2011, 16:46
by mariocaraujo
Hi guys.
I configured a headless VM with Ubuntu as guest OS. On a Windows 2003(32bits) Host.
Now Im trying to do the exatly same config on a Windows 2008 R2 Server(x64).
The service starts but the VM doesnt wake-up.
VboxVMService.log:
04/25/2011, 11:43:14 - C:\vms\VBoxVmService.exe
04/25/2011, 11:43:14 - C:\vms\VBoxVmService.ini
04/25/2011, 11:43:14 - C:\vms\VBoxVmService.log
04/25/2011, 11:43:14 - VBoxVmService
04/25/2011, 11:43:14 - Running command: '-nologo showvminfo "ubuntu"'.
04/25/2011, 11:43:14 - Running command: '-nologo modifyvm "ubuntu" --vrdeport 3001'.
04/25/2011, 11:43:14 - Running command: '-nologo startvm "ubuntu" --type headless'.
And nothing happens after that. Any clues? Thanks in advance.
edit: Solved, didnt know VBoxVMService.ini is case sensitive, "Ubuntu" on VM name did the trick.
Re: [VBoxVmService] -> Discussion & Support
Posted: 25. Apr 2011, 18:00
by mariocaraujo
Another issue now: when trying to ping the VM from another machine Im getting a LOT of packets lost.
The same thing didnt occur if I ping the VM from the Host OS.
Any hints ?
Re: [VBoxVmService] -> Discussion & Support
Posted: 26. Apr 2011, 20:53
by joeybagdnts
Hi.
I'm pretty excited that the VBoxVmService is available, however, I am not able to get my VM to start (I don't think)
My log looks like this:
Code: Select all
04/26/2011, 14:46:25 - C:\vms\VBoxVmService.exe
04/26/2011, 14:46:25 - C:\vms\VBoxVmService.ini
04/26/2011, 14:46:25 - C:\vms\VBoxVmService.log
04/26/2011, 14:46:25 - VBoxVmService
04/26/2011, 14:46:25 - Running command: '-nologo showvminfo "Windows XP"'.
04/26/2011, 14:46:25 - Running command: '-nologo modifyvm "Windows XP" --vrdeport 3310'.
04/26/2011, 14:46:25 - Running command: '-nologo startvm "Windows XP" --type headless'.
04/26/2011, 14:46:30 - Received control command: start 0
04/26/2011, 14:46:30 - Running command: '-nologo showvminfo "Windows XP"'.
04/26/2011, 14:46:31 - Running command: '-nologo modifyvm "Windows XP" --vrdeport 3310'.
04/26/2011, 14:46:31 - Running command: '-nologo startvm "Windows XP" --type headless'.
I
think I should see a VBoxHeadless.exe in my task manager (which I don't), and I think I should be able to remote desktop to that machine, however, neither of those are true.
What am I doing wrong?
My ini looks like this:
Code: Select all
[Settings]
ServiceName=VBoxVmService
VBOX_USER_HOME=C:\Documents and Settings\autoBuild\.VirtualBox
PauseShutdown=5000
[Vm0]
VmName=Windows XP
WorkingDir=C:\vms
ShutdownMethod=savestate
VrdePort=3310
Re: [VBoxVmService] -> Discussion & Support
Posted: 11. May 2011, 11:23
by jonwblackroc
Hi,
Im on Win 7 64x as Host OS, and trying to run Windows 7x32 as a guest OS.
I have installed VBoxVmService-2.2-Fireworks. I currently have installed VirtualBox 4.0.2
I followed the instructions to install, here is my ini file
Code: Select all
[Settings]
ServiceName=VBoxVmService
VBOX_USER_HOME=C:\Users\JonathanW\.VirtualBox
PauseShutdown=5000
[Vm0]
VmName=Godfrey
WorkingDir=C:\vms
ShutdownMethod=savestate
VrdePort=3001
My Environment variables are setup
Code: Select all
VBOX_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
VBOX_USER_HOME = C:\Users\JonathanW\.VirtualBox
I start the service but the VM is not started. The service log shows this
Code: Select all
05/11/2011, 09:47:38 - c:\vms\VBoxVmService.exe
05/11/2011, 09:47:38 - c:\vms\VBoxVmService.ini
05/11/2011, 09:47:38 - c:\vms\VBoxVmService.log
05/11/2011, 09:47:38 - VBoxVmService
05/11/2011, 09:47:38 - Running command: '-nologo showvminfo "Godfrey"'.
05/11/2011, 09:47:38 - Running command: '-nologo modifyvm "Godfrey" --vrdeport 3001'.
05/11/2011, 09:47:38 - Running command: '-nologo startvm "Godfrey" --type headless'.
If i use VmServiceControl.exe -su 0 I get this in the log file
Code: Select all
05/11/2011, 09:48:14 - c:\vms\VBoxVmService.exe
05/11/2011, 09:48:14 - c:\vms\VBoxVmService.ini
05/11/2011, 09:48:14 - c:\vms\VBoxVmService.log
05/11/2011, 09:48:14 - VBoxVmService
05/11/2011, 09:48:14 - PipeManager: CreateNamedPipe failed with 231.
05/11/2011, 09:48:14 - SetServiceStatus failed, error code = 6
05/11/2011, 09:48:14 - StartServiceCtrlDispatcher failed, error code = 1063
05/11/2011, 09:49:46 - Running command: '-nologo controlvm "Godfrey" "savestate"
I can't work out what has gone wrong. I have even try setting the service to use login details of an administrator. Any ideas on what is wrong with this?
Code: Select all
My VM is here C:\Users\JonathanW\VirtualBox VMs\Godfrey\
VBox is here C:\Program Files\Oracle\VirtualBox\
VBoxService is here C:\vms\
Screenshot of my VBox
Re: [VBoxVmService] -> Discussion & Support
Posted: 21. Jul 2011, 03:49
by FB2000
VBoxVmService 2.3 - Codename: "Watermelon" has arrived.
Read the announcement here:
LINK:
http://forums.virtualbox.org/viewtopic. ... 5&p=194549
Additional notes:
I am sorry I was not able to follow and reply to all the posts here. I did notice that most of the time people just need a simple reboot to get VBoxVmService work, before they went too fast and started debugging into it, which made things much complicated. We have thus reworked doc in "Watermelon" to always require a reboot after installation. If you still have trouble getting it work, try submit a support ticket at
https://sourceforge.net/tracker/?group_ ... id=1045322.
Re: [VBoxVmService] -> Discussion & Support
Posted: 27. Jul 2011, 00:31
by manorcomputers
I'm having an issue trying to attach a USB device to a VM that's started by VBoxVMService. Everything else works fine, and if I start the VM manually in VBox Manager, then I can attach the USB device without a problem
The output is below
Code: Select all
C:\vms>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" -nologo controlvm "Ubuntu LTD" usbattach 5f341ad4-662d-466b-8abe-3b36e5b81786
VBoxManage.exe: error: Failed to assign the machine to the session (Unknown Status 0x80004005)
VBoxManage.exe: error: Details: code VBOX_E_VM_ERROR (0x80bb0003), component Machine, interface IMachine, callee IUnknown
Context: "LockMachine(a->session, LockType_Shared)" at line 102 of file VBoxManageControlVM.cpp
I have tried changing the service to run as the logged in user but that didn't make any difference. I notice from the logs that VBoxVMService sends controlvm commands to shutdown the guest os, so is there a way I can get VBoxVMService to send the controlvm-usbattach command?
Really hope someone can help as this is the last piece to the puzzle!
Many thanks
James
Re: [VBoxVmService] -> Discussion & Support
Posted: 15. Aug 2011, 09:43
by FB2000
Hi James,
I am not sure but this probably has something to do with the so called Session 0 Isolation added in Vista and later.
http://msdn.microsoft.com/en-us/library/bb756986.aspx
The Vms started by VBoxVmService runs in session 0, and the controlvm command runs in session 1 (or others), they just can't see each other. There is no way to get around this limit at this moment.
If I guessed right, this is also why the VM status can't be see by VirtualBox GUI, when started by VBoxVmService.
FB2000
Re: [VBoxVmService] -> Discussion & Support
Posted: 25. Aug 2011, 18:55
by AllenL
Hi FB2000,
Its been awhile since my last post here mainly because our VBoxVmService has been working almost 90% of the time. 90% because 10% of the time, one or two virtual machine somehow slows down to a halt and I need to restart the VM to get it running back to normal. This is where I seem to have encountered a problem with VBoxVMService.
I have been using VBoxVMService since the start of this thread and have moved from WinXP host to Win7 64-bit with WinXP guests. My current VBoxVMService installation if I'm not mistaken is Fireworks (or Reindeer?). The service is running ok. But during those times when a guest has to be restarted, I'll have to issue thru the command line the shutdown command -sd for that particular VM (to avoid interrupting the other VMs that are running). Once it has shutdown, I start the VM using the VBox GUI interface and force a hard reset on the VM. After the VM boots ok, I shut it down again (soft shutdown via Windows). I then restart the service of this VM thru the command line issuing the -su command. It is here that I encounter the problem. The VM wont startup
No matter what I do, the status is always in the "saved" mode. This is always the case everytime I go thru this procedure. In such instances, I'll have to restart the whole PC to get the service of that VM (and also the others) running again.
In the earlier versions of VBoxVMService, this procedure works fine. Kindly advise if this is something unique to me only or a bug? Thanks.
Re: [VBoxVmService] -> Discussion & Support
Posted: 26. Aug 2011, 06:23
by FB2000
AllenL,
I don't see why you need such a complicated process just to restart the VM. If you want to shutdown the VM cleanly why not just using acpipowerbutton? You could change it back to savestate later.
I do know why your process is causing trouble on Win7, however. The reason for that is as I mentioned on above post -- Session 0 isolation on Vista and later. VirtualBox GUI and VBoxVmService processes just can't see each other and can't share status. This is not a problem for XP and 2003.
FB2000
Re: [VBoxVmService] -> Discussion & Support
Posted: 29. Aug 2011, 18:14
by AllenL
Hi FB2000,
Thanks for the reply.
for the ACPIpowerbutton, if you are refering to this function on the VM GUI, the reason why I have not been using this is because it usually takes a long time for the VM to shutdown specially if the VM is already unstable. I'll look into this and try again when we encounter an unstable VM.
Your session 0 comments noted.
Re: [VBoxVmService] -> Discussion & Support
Posted: 30. Aug 2011, 02:04
by FB2000
AllenL wrote:
for the ACPIpowerbutton, if you are refering to this function on the VM GUI, the reason why I have not been using this is because it usually takes a long time for the VM to shutdown specially if the VM is already unstable. I'll look into this and try again when we encounter an unstable VM.
I was talking about the acpipowerbutton option for ShutdownMethod in VBoxVmService.ini.
Re: [VBoxVmService] -> Discussion & Support
Posted: 30. Aug 2011, 17:03
by AllenL
Hi FB2000,
Let me reset the config file to acpipowerbutton and I'll observe if there are any improvements; maybe tweak the WaitToKill delay if the VM shutdown requires a longer time. Thanks.
Re: [VBoxVmService] -> Discussion & Support
Posted: 27. Sep 2011, 15:51
by dangling
I am very happy user of vmservice running on server 2003 host. I would like to move to server 20003 64bit for more memory and I have searched the threads but cant seem to find a list of compatibility anywhere. Can someone confirm this runs on x64.
Thank you for this piece of software.
Regards
Paul
Re: [VBoxVmService] -> Discussion & Support
Posted: 1. Oct 2011, 08:21
by FB2000
It runs on both x86 and x64 Windows.