<div><font class="Apple-style-span">Buddy, I am a noob in libvirt develop.</font></div><div>When I want to create a domain by using<font class="Apple-style-span" color="#3333FF"> virDomainDefineXML </font>and <span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">displays a window on the host desktop. But when I add the line </span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; "><font class="Apple-style-span" color="#CC0000">" <graphics type='sdl' display=':0.0'/>"  </font>into the config xml file, the error as below will happen. </span></div>
<font class="Apple-style-span" color="#CC0000">libvir: QEMU error : internal error process exited while connecting to monitor: Could not initialize SDL(No available video device) - exiting</font><div>when I delete <span class="Apple-style-span" style="color: rgb(204, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">" <graphics type='sdl' display=':0.0'/>",</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">I can create the domain normally. Who can help me?! </span></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif">The config xml file is as below:</font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><div style="color: rgb(51, 0, 153); ">
<domain type='qemu'></div><div style="color: rgb(51, 0, 153); ">  <name>qemu_ubuntu_01</name></div><div style="color: rgb(51, 0, 153); ">  <memory>219200</memory></div><div style="color: rgb(51, 0, 153); ">
  <currentMemory>219200</currentMemory></div><div style="color: rgb(51, 0, 153); ">  <vcpu>2</vcpu></div><div style="color: rgb(51, 0, 153); ">  <os></div><div style="color: rgb(51, 0, 153); ">
    <type arch='x86_64' machine='pc'>hvm</type></div><div style="color: rgb(51, 0, 153); ">    <boot dev='hd'/></div><div style="color: rgb(51, 0, 153); ">    <boot dev='cdrom'/></div>
<div style="color: rgb(51, 0, 153); ">  </os></div><div style="color: rgb(51, 0, 153); ">  <devices></div><div style="color: rgb(51, 0, 153); ">    <emulator>/usr/bin/qemu</emulator></div><div style="color: rgb(51, 0, 153); ">
    <disk type='file' device='cdrom'></div><div style="color: rgb(51, 0, 153); ">      <source file='/root/Downloads/ubuntu-11.04-desktop-amd64.iso'/></div><div style="color: rgb(51, 0, 153); ">
      <target dev='hdc' bus='ide'/></div><div style="color: rgb(51, 0, 153); ">      <readonly/></div><div style="color: rgb(51, 0, 153); ">    </disk></div><div style="color: rgb(51, 0, 153); ">
    <disk type='file' device='disk'></div><div style="color: rgb(51, 0, 153); ">      <source file='/var/lib/libvirt/images/winXP.img'/></div><div style="color: rgb(51, 0, 153); ">      <driver name='qemu' type='raw'/></div>
<div style="color: rgb(51, 0, 153); ">      <target dev='hda'/></div><div style="color: rgb(51, 0, 153); ">    </disk></div><div><font class="Apple-style-span" color="#CC0000">    <video></font></div>
<div><font class="Apple-style-span" color="#CC0000">      <model type='cirrus' vram='9216' heads='1'></font></div><div><font class="Apple-style-span" color="#CC0000">      <span class="Apple-tab-span" style="white-space:pre">   </span><acceleration accel3d='yes'/></font></div>
<div><font class="Apple-style-span" color="#CC0000">      </model></font></div><div><font class="Apple-style-span" color="#CC0000">    </video></font></div><div style="color: rgb(51, 0, 153); ">    <interface type='bridge'></div>
<div style="color: rgb(51, 0, 153); ">      <mac address='52:54:00:d8:65:c9'/></div><div style="color: rgb(51, 0, 153); ">      <source bridge='virbr0'/></div><div style="color: rgb(51, 0, 153); ">
    </interface></div><div style="color: rgb(51, 0, 153); ">    <input type='mouse' bus='ps2'/></div><div><font class="Apple-style-span" color="#CC0000">    <graphics type='vnc' port='10' listen='127.0.0.1'/></font></div>
<div><font class="Apple-style-span" color="#CC0000">    <graphics type='sdl' display=':0.0'/></font></div><div style="color: rgb(51, 0, 153); ">  </devices></div><div style="color: rgb(51, 0, 153); ">
 </domain></div></font></div>