<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 2:54 AM, Julian Zhou <span dir="ltr"><<a href="mailto:jzhou2oo6@gmail.com" target="_blank">jzhou2oo6@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> Hi
      I am trying to add a virtualbox domain to my virsh installation, I
      get:</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> error:
      Failed to define domain from Ondria.xml >></span><a rel="nofollow" href="https://gist.github.com/jztech101/5aeebb82412c1910dc1f" dir="ltr" style="color:rgb(66,127,237);text-decoration:none;font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank"></a><a href="https://gist.github.com/jztech101/5aeebb82412c1910dc1f" target="_blank">https://gist.github.com/jztech101/5aeebb82412c1910dc1f</a><span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><span> </span><< error: internal
      error: unexpected domain type vbox, expecting one of these: qemu,
      kqemu, kvm, xen.</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> virsh
      is compiled with VirtualBox support so I'm confused:</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">Virsh
      -V >> Virsh command line tool of libvirt 1.2.2</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">See
      web site at<span> </span></span><a rel="nofollow" href="http://libvirt.org/" dir="ltr" style="color:rgb(66,127,237);text-decoration:none;font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank"></a><a href="http://libvirt.org/" target="_blank">http://libvirt.org/</a><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">Compiled
      with support for:</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> Hypervisors:
      QEMU/KVM LXC UML Xen LibXL OpenVZ VMWare VirtualBox Test</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> Networking:
      Remote Network Bridging Interface netcf Nwfilter VirtualPort</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> Storage:
      Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Sheepdog</span><br style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> Miscellaneous:
      Daemon Nodedev AppArmor Secrets Debug Readline Modular.<br>
      <br>
      After some insight, I decided to run it like this instead: " virsh
      -c vbox:///session create Ondria.xml"<br>
      Now I get: <br>
      <br>
      error: failed to connect to the hypervisor<br>
      error: internal error: unable to initialize VirtualBox driver API<br>
      <br>
      So, after further insight, I ran "export
      VBOX_APP_HOME=/usr/lib/virtualbox" and tried again. Same error as
      above. (/usr/lib/virtualbox is where VBoxCPCOMC.so lies and I'm
      told the reason for the above error is it cannot find that file in
      any "normal" location. Help? It should be noted I installed
      VirtualBox-5.0 directly from the VBox Repo for Ubuntu 14.04LTS<br>
      <br></span></div></blockquote><div><br></div><div>not sure if it help:   Ubuntu libvirt's driver for Virtualbox is disabled by default:<br><br><a href="https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/667076">https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/667076</a><br><br></div><div>So...u may have do recompile it as follow:<br><br><a href="http://stackoverflow.com/questions/2778638/libvirt-and-virtualbox-getting-started">http://stackoverflow.com/questions/2778638/libvirt-and-virtualbox-getting-started</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">
      Regards,<br>
      Julian Zhou</span>
    
    <span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(245,245,245)"></span><span style="color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(245,245,245)"></span>
  </div>

<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" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Regards,<br>Peter Teoh</div>
</div></div>