[vbox-dev] registervm error webservice but works using cli

alexandre.devely at orange.com alexandre.devely at orange.com
Wed Aug 28 18:22:09 GMT 2013


Hello Devs,

On Linux Ubuntu(precise_amd64), i ve got an error using the Webservice to register a VM, this error does not occur using the command line.

I want to register a VM using the vboxwebsrv (runas vbox user). I use IVirtualBox_openMachine and IVirtualBox_registerMachine.

IVirtualBox_openMachine fails using webservice :
exception VirtualBox error: Cannot attach medium '/mnt/nfs/volcbdata/demoAlexWindowsXp/demoAlexWWindowsXp-disk1.vdi' {b3cf56ef-48ba-4dc8-9efc-77a64c43e534} from snapshot '775ed2f4-fd3e-487d-8963-f8ae4515eccd': medium is already in use by this snapshot! (0x80BB000C)
But if i use the command line "vboxmanage registervm", it works using the same file

vbox at pbox:~$ vboxmanage registervm /mnt/nfs/volcbdata/demoAlexWindowsXp/demoAlexWindowsXp.vbox
vbox at pbox:~$ vboxmanage list vms
"demoAlexWindowsXp" {2bac5ce4-4e95-4573-b42f-29c3536c58a1}
vbox at pbox:~$

I use the last release VirtualBox 4.2.16

Why does the command line work ?
Thank you in advance...

Best Regards
Alex




_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20130828/46174b55/attachment.html>


More information about the vbox-dev mailing list