<div dir="ltr"><div>Hi Andreas,</div><div>I am using the API directly - and quickly testing, it looks like it is working if I try to use VBoxManage. </div><div><br></div><div>I just went through the source for VBoxManage and I found the problem :)</div>
<div><br></div><div>It looks like you are required to use IGuestProcess.WaitFor to wait until the session has been started - but only if the Guest Additions in the VM using the new API version 2 (for VirtualBox 4.3)</div>
<div><br></div><div>This might be a good idea to have documented in the SDKRef document, as the description for IGuest.createSession doesn't mention this and it seems a bit strange that it is only needed when the Guest Additions are the newer version.</div>
<div><br></div><div>(There is no need for separate logic for the older versions of the additions - the WaitFor command successfully works in this case as well)</div><div><br></div><div>Many thanks!</div><div><br></div><div>
Magnus</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 10:41 AM, Andreas Löffler <span dir="ltr"><<a href="mailto:andreas.loeffler@oracle.com" target="_blank">andreas.loeffler@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
are you using the API itself or some frontend / client which ships with VBox? If using the API, please have a look at the SDK reference;<br>
it contains the things which might need adjustment when using your own<br>
client code with former versions of VBox.<br>
<br>
BTW, did executing with VBoxManage work for you so using the 4.3 Additions? Did the VM log tell something additional if not?<br>
<br>
Andreas<br>
<br>
<br>
<br>
On 16.10.2013 10:11, Magnus Madsen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
Great thanks for the new 4.3 version being released.<br>
<br>
There looks to be a problem with guestcontrol though.<br>
VMs using an older version of the Guest Additions work like normally in<br>
my application, but if I upgrade the additions to 4.3, the GuestSession<br>
is always in the GuestSessionStatus_Error state and I am unable to<br>
execute anything towards the Guest Additions.<br>
<br>
Is there a change in how the API should be used with the new version of<br>
Guest Additions, or is this an error?<br>
<br>
<br>
______________________________<u></u>_________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/<u></u>mailman/listinfo/vbox-dev</a><br>
<br>
</blockquote>
<br>
-- <br>
Kind regards / Mit freundlichen Grüßen<br>
<br>
******************************<u></u>******************************<u></u>******<br>
Andreas Löffler          | VirtualBox Engineering<br>
Senior Software Engineer | Oracle Virtualization<br>
<br>
ORACLE Deutschland B.V. & Co. KG<br>
Werkstrasse 24<br>
D-71384 Weinstadt, Germany<br>
<br>
Hauptverwaltung: Riesstr. 25, D-80992 München<br>
Registergericht: Amtsgericht München, HRA 95603<br>
Geschäftsführer: Jürgen Kunz<br>
<br>
Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
<br>
Green Oracle <<a href="http://www.oracle.com/commitment" target="_blank">http://www.oracle.com/<u></u>commitment</a>><br>
Oracle is committed to developing practices and products that<br>
help protect the environment<br>
</blockquote></div><br></div>