<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1174223214;
        mso-list-type:hybrid;
        mso-list-template-ids:-3113444 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:1784498223;
        mso-list-type:hybrid;
        mso-list-template-ids:986371516 1163284858 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-.5in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Virtualbox dev,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a windows machine hosting VMs(hostmachine). I have a few vms – server1, server2, server3. I have a requirement of starting other vms from a VM. For example, I would like to start server1 or server2 from my linux VM server3. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Below are the things I did<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Upgraded Virtualbox to 4.1.18 r78351 (<a href="http://download.virtualbox.org/virtualbox/4.1.18/VirtualBox-4.1.18-78361-Win.exe">http://download.virtualbox.org/virtualbox/4.1.18/VirtualBox-4.1.18-78361-Win.exe</a> )<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Started webserver in the windows machine hosting vms (hostmachine) – VboxWebSrv.exe –H 0.0.0.0<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Downloaded sdk (<a href="http://download.virtualbox.org/virtualbox/4.1.18/VirtualBoxSDK-4.1.18-78361.zip">http://download.virtualbox.org/virtualbox/4.1.18/VirtualBoxSDK-4.1.18-78361.zip</a>) in vm – server3<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Installed appropriate perl modules and modified vboxService.pm to point to correct URL.<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Clienttest.pl of listvms works fine.<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph>[root@rhel5-64 samples]# ./clienttest.pl --help<o:p></o:p></p><p class=MsoListParagraph>clienttest: test the VirtualBox web service.<o:p></o:p></p><p class=MsoListParagraph>Usage:<o:p></o:p></p><p class=MsoListParagraph>    clienttest <mode><o:p></o:p></p><p class=MsoListParagraph>with <mode> being one of 'version', 'list', 'start'; default is 'list'.<o:p></o:p></p><p class=MsoListParagraph>    clienttest version: print version of VirtualBox web service.<o:p></o:p></p><p class=MsoListParagraph>    clienttest list: list installed virtual machines.<o:p></o:p></p><p class=MsoListParagraph>    clienttest startvm <vm>: start the virtual machine named <vm>.<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph>[root@server3 samples]# ./clienttest.pl<o:p></o:p></p><p class=MsoListParagraph>Subroutine XML::Parser::Lite::_parse_re redefined at /usr/lib/perl5/site_perl/5.8.8/XML/Parser/Lite.pm line 144.<o:p></o:p></p><p class=MsoListParagraph>[clienttest] Listing machines:<o:p></o:p></p><p class=MsoListParagraph>machine IMachine cfa8ecdddb56ca06-0000000000000140: server1<o:p></o:p></p><p class=MsoListParagraph>machine IMachine cfa8ecdddb56ca06-0000000000000141: server2<o:p></o:p></p><p class=MsoListParagraph>machine IMachine cfa8ecdddb56ca06-0000000000000142: server3<o:p></o:p></p><p class=MsoNormal>                <o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]>Clienttest.pl of startvm is not working<o:p></o:p></p><p class=MsoListParagraph>[root@server3 samples]# pwd<o:p></o:p></p><p class=MsoListParagraph>/root/sdk/bindings/webservice/perl/samples<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.5in;mso-list:l1 level1 lfo2'><![if !supportLists]><span style='mso-list:Ignore'>i.<span style='font:7.0pt "Times New Roman"'>                     </span></span><![endif]>Run without modifying clienttest.pl<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.0in'><o:p> </o:p></p><p class=MsoListParagraph>[root@server3 samples]# ./clienttest.pl startvm server2<o:p></o:p></p><p class=MsoListParagraph>Subroutine XML::Parser::Lite::_parse_re redefined at /usr/lib/perl5/site_perl/5.8.8/XML/Parser/Lite.pm line 144.<o:p></o:p></p><p class=MsoListParagraph><b>Unrecognized method 'IVirtualBox_getMachine'</b>. List of available method(s): IVirtualBox_getExtraData IStorageController_getBus IMachine_queryLogFilename IMedium_setType IMachine_getName IMachineRegisteredEvent_getRegistered IProgress_getTimeout IMedium_getState ISnapshot_getChildren ISystemProperties_getFreeDiskSpacePercentError <o:p></o:p></p><p class=MsoListParagraph>..<o:p></o:p></p><p class=MsoListParagraph>….<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.5in;mso-list:l1 level1 lfo2'><![if !supportLists]><span style='mso-list:Ignore'>ii.<span style='font:7.0pt "Times New Roman"'>                   </span></span><![endif]>Run modifying clienttest.pl<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph>Modified clienttest.pl and changed getMachine to getMachines - this will get the first of the vm list i.e. uid of server1<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph>C:\Users\rajivj>VBoxManage list vms<o:p></o:p></p><p class=MsoListParagraph>"server1" {e45fc242-0adc-4b84-a26b-bac23a63bbf4}<o:p></o:p></p><p class=MsoListParagraph>"server2" {f57c673b-e2b7-4f1d-85cb-d9e287c8fbcf}<o:p></o:p></p><p class=MsoListParagraph>"server3" {6b2c0c8b-e055-4ed3-bbde-27bcb05b35fe}<o:p></o:p></p><p class=MsoListParagraph>...<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph>[root@server3 samples]# ./clienttest.pl startvm server1<o:p></o:p></p><p class=MsoListParagraph>Subroutine XML::Parser::Lite::_parse_re redefined at /usr/lib/perl5/site_perl/5.8.8/XML/Parser/Lite.pm line 144.<o:p></o:p></p><p class=MsoListParagraph>[clienttest] UUID: e45fc242-0adc-4b84-a26b-bac23a63bbf4<o:p></o:p></p><p class=MsoListParagraph><b>Unrecognized method 'IVirtualBox_openRemoteSession'</b>. List of available method(s): IVirtualBox_getExtraData IStorageController_getBus IMachine_queryLogFilename IMedium_setType IMachine_getName IMachineRegisteredEvent_getRegistered IProgress_getTimeout IMedium_getState ISnapshot_getChildren ISystemProperties_getFreeDiskSpacePercentError IMachine_getOSTypeId IVRDEServer_setVRDEProperty ISystemProperties_getMaxGuestMonitors IBandwidthGroup_getType IMachine_getCPUIDLeaf ISnapshot_setName ISerialPort_setServer <o:p></o:p></p><p class=MsoListParagraph><b> </b>…<o:p></o:p></p><p class=MsoListParagraph> …..<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoListParagraph>Is it expected that IVirtualBox class/java code doesn’t have functions getMachine and openRemoteSession? Can we get the modified IVirtualBox class or jar file?<o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Rajiv<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>