QUESTION:  What, if anything, can I do so that I can use xl (in place of xm) with libvirt 1.0.2 and Xen 4.2.1 in Ubuntu 13.04?<br><br>BACKGROUND:  I am testing a fully updated (as of March 27) installation of Ubuntu 13.04 that includes the following packages:<br>
<br><div style="margin-left:40px">libvirt - version 1.0.2-0ubuntu9<br>xen-hypervisor-4.2-amd64 - version 4.2.1-0ubuntu1<br><br></div>Upon setting TOOLSTACK=xm in /etc/default/xen (as well as making a few needed tweaks to /etc/xen/xend-config.sxp), libvirt and virt-manager worked great.  Yippee!<br>
<br>I guess that I should be happy that the xm toolstack still works with Xen 4.2.1 and quit while I'm ahead, but...<br><br>According to libvirt's documentation:<br><br><div style="margin-left:40px">"libxl: Starting with Xen 4.2, the legacy XenD/xm toolstack is deprecated in favor of libxl, also commonly called libxenlight. libvirt supports this new Xen toolstack via the libxl driver. If XenD is enabled, the legacy xen driver consisting of the above mentioned channels will be used. If XenD is disabled, the libxl driver will be used."  <br>
</div><br>See <a href="http://libvirt.org/drvxen.html">http://libvirt.org/drvxen.html</a>.<br><br>In view of the above, I attempted to use xl in place xm by setting TOOLSTACK=xl in /etc/default/xen.   And after doing so (both with and without, the above mentioned tweaks to /etc/xen/xend-config.sxp), I recieved the following error when attempting to start virt-manager:<br>
<br><div style="margin-left:40px">Unable to connect to libvirt.<br><br>unable to connect to 'localhost:8000': Connection refused<br><br>Verify that:<br> - A Xen host kernel was booted<br> - The Xen service has been started<br>
<br>Libvirt URI is: xen:///<br><br>Traceback (most recent call last):<br>  File "/usr/share/virt-manager/virtManager/connection.py", line 1027, in _open_thread<br>    self.vmm = self._try_open()<br>  File "/usr/share/virt-manager/virtManager/connection.py", line 1009, in _try_open<br>
    flags)<br>  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth<br>    if ret is None:raise libvirtError('virConnectOpenAuth() failed')<br>libvirtError: unable to connect to 'localhost:8000': Connection refused<br>
<br></div><br><br><br><br>