I'm having a problem with the vboxwebsrv app on windows. 'm on windows 7 and all my VMs are stored in c:\users\Richard\VirtualBox Vms but when I launch the web service, and try to get the guest property of a vm, the web service tries to load information in c:\users\Richard\.VirtualBox\VMNAME anything I can do to change that ?
There is no such options for vboxwebsrv to specify the folder for vms, at least not displayed with "vboxwebsrv --help"
I'm using vbox 4.2.4 if that can help
Here's the output of the web service execution :
00:00:17.628000 SQW01 New SOAP thread started
00:00:17.628000 SQW01 Processing connection from IP=127.0.0.1 socket=784 (0 out of 1 threads idle)
00:00:17.675000 SQW01 API return code: 0x80004005 (E_FAIL)
00:00:17.675000 SQW01 COM error info result code: 0x80004005
00:00:17.675000 SQW01 COM error info text: Runtime error opening 'C:\Users\richard\.VirtualBox\test2' for reading: -102 (File not found.).
00:00:17.675000 SQW01 D:\tinderbox\win-4.2\src\VBox\Main\src-server\MachineImpl.cpp[469] (long __cdecl Machine::initFromSettings(class VirtualBox *,const class com::Utf8Str &,const class com::Guid *))
Anything I can do to fix/change that folder ?
My ultimate goal in fact is to be able to clone a VM, start it, and get it's ip once it is finished starting, all that through the web service of my other machine that will hosts all the vms (so not local to the executing code, because I could get the ip from the ARP table directly...)
WebService problems
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: WebService problems
The webservice is yet another front-end for the Virtualbox COM core object, which means that if it goes look into the wrong folder, you need to configure Virtualbox properly.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: WebService problems
The only place I cansee to configure a folder is fo the default virtual vm folder. Here's the configuration chunk :
<SystemProperties LogHistoryCount="3" webServiceAuthLibrary="null" VRDEAuthLibrary="VBoxAuth" defaultHardDiskFormat="VDI" defaultMachineFolder="C:\Users\richard\VirtualBox VMs"/>
Where else can I configure some path for the COM core in windows ?
In the regedit, the only keys talk about the install dir which is not that folder either..
<SystemProperties LogHistoryCount="3" webServiceAuthLibrary="null" VRDEAuthLibrary="VBoxAuth" defaultHardDiskFormat="VDI" defaultMachineFolder="C:\Users\richard\VirtualBox VMs"/>
Where else can I configure some path for the COM core in windows ?
In the regedit, the only keys talk about the install dir which is not that folder either..
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: WebService problems
Can you do the same operation via vboxmanage?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: WebService problems
When I do that I get a "No value set!" response instead of an error
Re: WebService problems
Or the error is going into some file I have no idea of ?
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: WebService problems
Which language are you using to link to the webserver?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: WebService problems
Java
But I just upgraded vbox to version 4.2.6 and I can now receive the ip correctly and I have just found the problem ... I used a portion a java sample code in the SDK zip file which was calling vbox.openMachine(name), and this was the culprit for the file not found message. Although upgrading to the 4.2.6 somewhat solved the problem of retrieving the guest property as I had the addition installed on the VM but was receiving an empty string.
Thanks for your time and help.
But I just upgraded vbox to version 4.2.6 and I can now receive the ip correctly and I have just found the problem ... I used a portion a java sample code in the SDK zip file which was calling vbox.openMachine(name), and this was the culprit for the file not found message. Although upgrading to the 4.2.6 somewhat solved the problem of retrieving the guest property as I had the addition installed on the VM but was receiving an empty string.
Thanks for your time and help.