<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6620.9">
<TITLE>Issue with starting a VM</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Hi</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> I have code as follows to start a virtual machine </FONT></SPAN>
</P>

<P><SPAN LANG="en-gb">                                <FONT SIZE=2 FACE="Arial">uuid = machine.getId();</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                sessionType = "gui";</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                env = "DISPLAY=:0.0";</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                progress = </FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                        vbox.openRemoteSession(session,</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                            uuid,</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                            null,</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                            env);</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                log.info("Session for VM " + uuid + " is opening...");                </FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                progress.waitForCompletion(10000);          </FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">                                long rc = progress.getResultCode();</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">        </FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Bu tthis code snippet starts a virtual machine with gui. I don’t want gui in my client machine. How do I modify the code ? In first place, is it right to modify the code or do I need to do something with my virtual box Installation ?</FONT></SPAN></P>
<BR>

<P><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Regards</FONT></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Bala        </FONT></SPAN>
</P>

<PRE>The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
</PRE></BODY>
</HTML>