I have the same problem. I've already tried to start vbox vm without GUI but I couldn't do it.<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Christian, as it seems that you've managed to do it successfully, could you help us out in this task?</div>

<div><br><div>If not, does anyone here have a way to do it? Or is it impossible with current libvirt code?</div><div><br></div><div>thanks in advance!<br><br><div class="gmail_quote">2011/7/25 Guilherme Santos <span dir="ltr"><<a href="mailto:guisgb13@gmail.com">guisgb13@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>My objective is also to run headless virtual machines through libvirt library.<br>I am using an Ubuntu 10.04 distro and libvirt 0.9.2.<br>

<br>Before asking you guys about it, I searched on the web and found this:<br><br>

</div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote"><pre>Hi,<br><br>thanks for your hint.<br><br>I read the lines in the documentation, but unfortunately editing the xml<br>



within virsh lead to the errors.<br><br>The Solution to a headless domain was to edit the XML file from bash and<br>then<br><br>#virsh: define <domainname.xml><br><br>to reload the new values for the graphics type of the machine.<br>



<br>Obvioulsy something went wrong when editing "live"....<br><br>Regards,<br>Christian<br><br>Am 24.06.2010 18:27, schrieb Jean-Baptiste Rouault:<br>> Hi,<br>><br>> Something like this should work, as can be seen in the<br>



> documentation here : <a rel="nofollow" href="http://libvirt.org/formatdomain.html#elementsGraphics" target="_blank">http://libvirt.org/formatdomain.html#elementsGraphics</a><br>><br>> <drivers><br>>   <graphics type='rdp' autoport='yes' /><br>



> </drivers><br>><br>> Regards,<br>><br>> Jean-Baptiste<br>><br>>   <br>>> Hello,<br>>><br>>> I'm trying to use the VirtualBox/vbox driver together with libvirt 0.8.1<br>>> on a Ubuntu Lucid Machine, VirtualBox Release 3.1.<br>



>><br>>> The goal is to run the virtual machines headless and to connect using RDP.<br>>><br>>> When starting a virtual domain using 'virsh start <domainname>' the GUI<br>>> of VirtualBox will pop up and I see no option to prevent this. If X is<br>



>> not running, the virsh command will terminate with 'unknown failure'.<br>>><br>>> I've found some hints on inclusion of the headless statement in the<br>>> 'graphics' part of the XML definition file, but when I tree to adopt<br>



>> this, the editing of the file will crash.<br>>><br>>> Has anyone achieved to manage VBox machines with libvirt on a headless<br>>> server ?<br>>><br>>> Thanks in advance for some hints or experiences with this issue,<br>



>> Christian<br>>><br></pre></blockquote><br>Unfortunately this isn't working for me.<br>Following is my XML configuration:<br><br><domain type='vbox'><br>  <name>THEDOMAIN</name><br>



  <uuid>33f6e188-1479-46f4-9d90-4d5a2d3a30f2</uuid><br>  <memory>393216</memory><br>  <currentMemory>393216</currentMemory><br>  <vcpu>1</vcpu><br>  <os><br>    <type arch='i686'>hvm</type><br>



    <boot dev='hd'/><br>    <boot dev='cdrom'/><br>  </os><br>  <features><br>    <acpi/><br>  </features><br>  <clock offset='localtime'/><br>  <on_poweroff>destroy</on_poweroff><br>



  <on_reboot>destroy</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>    <disk type='file' device='disk'><br>      <source file='/local/vbox-shared.vdi' /><br>



      <target dev='hda' bus='ide'/><br>    </disk><br>    <disk type='file' device='cdrom'><br>      <source file='/local/ubuntu-11.04-desktop-i386.iso' /><br>



      <target dev='hdc' bus='ide'/><br>    </disk><br>    <interface type='user'><br>      <mac address='08:00:27:9a:d0:63'/><br>      <model type='Am79C973'/><br>



    </interface><br>    <input type='mouse' bus='ps2'/><br>    <graphics type='rdp' autoport='yes' /><br>    <video><br>      <model type='vbox' vram='12' heads='1'><br>



        <acceleration accel3d='no' accel2d='no'/><br>      </model><br>    </video><br>  </devices><br></domain><br clear="all"><br>When I run command<br><br><i>virsh start THEDOMAIN</i><br>



<br>it is popping up the following error message:<br><br><i>OpenRemoteSession/LaunchVMProcess failed, domain can't be started</i><br><br>As it wasn't working I also tried other options, but unfortunately, using all other graphic type options (except for 'spice', which I didn't try) the GUI is launched.<br>



<br>I don't think I'll be needing a RDP connection, neither anything similar to that, except if these are necessary to basic management of the vm through virsh (start, stop, reboot, create and revert snapshots).<br>



Isn't there one simple way to run a virtual machine domain headless without vnc, spice or rdp servers?<br>If not, which could be going wrong in my xml configuration?<br><br>To help understanding of my desired behavior, what I need is to do through virsh what can be done using<br>



<br><i>VBoxManage startvm THEDOMAIN --headless</i><br><br>or<br><br><i>VBoxHeadless startvm THEDOMAIN</i>,<br><br>because will use other hypervisors in the future, so it is a critical thing to me.<br><br>Thanks in advance for the help,<br>

<font color="#888888">

<br>Guilherme Santos<br>
</font><br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rodolfo de Lima Viana<div>Undergraduate in Computer Science at UFCG</div>

<div>LSD - Distributed Systems Laboratory </div><br>
</div></div>