<div dir="ltr"><div><div><div><div>Jim,<br><br></div>Thanks so much for your help.  Much appreciated!  <br><br>I filed a bug report with Ubuntu:  <br><br><a href="https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1180281">https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1180281</a><br>
<br></div>Hopefully other Ubuntu users who are experiencing the same issue will add comments/feedback to the bug report.<br><br></div>Best regards,<br></div>Gizmo Chicken<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, May 20, 2013 at 9:46 AM, Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Gizmo Chicken wrote:<br>
> Hi Jim,<br>
><br>
> Thanks much for suggestions.  And please accept my apologies for not<br>
> replying sooner.  Your reply got buried in lots of other list-serve<br>
> messages.<br>
><br>
> You asked:   "Ensure xend is *not* running and then restart libvirtd.<br>
>  The libvirt libxl driver will only load when xend is not running."<br>
><br>
> I'm a bit new at this, but I was under the impression that setting<br>
> setting toolstack=xl in /etc/default/xen would prevent xend from<br>
> starting.  That is, I thought that xend wouldn't start when xl was<br>
> running.  Am I totally wrong about that?<br>
><br>
> In any case, xl is running and if I try to send an xm command, I get<br>
> the following:  "A different toolstack (xl) has been selected!"  Is<br>
> there something else that I should try to insure that xend isn't running?<br>
<br>
</div>According to that, xend is not running.<br>
<div class="im"><br>
><br>
> (As a reminder, if I set toolstack=xm in /etc/default/xen,<br>
> virt-manager works great.  But I'm hoping to use the xl toolstack.)<br>
><br>
> You asked:  "Did the libxl driver even load?  There should be some<br>
> evidence of that in libvirtd.log."<br>
><br>
> My libvirtd.log doesn't seem provide any evidence of that the libxl<br>
> driver is loaded.  (See log copied below.)  But libvirtd.log does<br>
> mention an "internal error failed to connect with xend."  So honestly,<br>
> I'm not quite sure whether libxl loaded. What's the best way to confirm?<br>
<br>
</div>The log snippet confirms xend is not running, but nothing about the<br>
libxl driver.<br>
<div class="im"><br>
><br>
> You asked:  "Has your libvirt package been built with the libxl driver<br>
> enabled?"<br>
><br>
> I'm using the libvirt package that is available from the Ubuntu 13.04<br>
> (and now 13.10) repository.  How would I go about checking whether<br>
> that package was built with the libxl driver enabled?<br>
<br>
</div>Not sure.  I use fedora and openSUSE.  I haven't used Ubuntu's virt<br>
packages.  Sounds like you should file a bug with Ubuntu or ask on one<br>
of their related mailing lists.<br>
<br>
Regards,<br>
Jim<br>
<div class="im"><br>
><br>
> Thanks so much for any additional help you can provide!<br>
><br>
> Best regards,<br>
> GizmoChicken<br>
><br>
><br>
> var/log/libvirt/libvirtd.log<br>
><br>
> 2013-05-18 05:44:47.614+0000: 1304: info : libvirt version: 1.0.5<br>
> 2013-05-18 05:44:47.614+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.615+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.617+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.618+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.618+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.619+0000: 1304: error : xenHypervisorDoV2Sys:1006<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-05-18 05:44:47.635+0000: 1304: error : do_connect:103 : internal<br>
> error failed to connect to xend<br>
> 2013-05-18 05:44:47.636+0000: 1304: error : xenDaemonOpen_tcp:700 :<br>
> unable to connect to 'localhost:8000': Connection refused<br>
> 2013-05-18 05:45:13.647+0000: 1289: error : virNetSocketReadWire:1362<br>
> : Cannot recv data: Connection reset by peer<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Apr 1, 2013 at 9:21 AM, Jim Fehlig <<a href="mailto:jfehlig@suse.com">jfehlig@suse.com</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:jfehlig@suse.com">jfehlig@suse.com</a>>> wrote:<br>
><br>
>     Gizmo Chicken wrote:<br>
>     > QUESTION:  What, if anything, can I do so that I can use xl (in<br>
>     place<br>
>     > of xm) with libvirt 1.0.2 and Xen 4.2.1 in Ubuntu 13.04?<br>
><br>
>     Ensure xend is *not* running and then restart libvirtd.  The libvirt<br>
>     libxl driver will only load when xend is not running.<br>
><br>
>     ><br>
>     > BACKGROUND:  I am testing a fully updated (as of March 27)<br>
>     > installation of Ubuntu 13.04 that includes the following packages:<br>
>     ><br>
>     > libvirt - version 1.0.2-0ubuntu9<br>
>     > xen-hypervisor-4.2-amd64 - version 4.2.1-0ubuntu1<br>
>     ><br>
>     > Upon setting TOOLSTACK=xm in /etc/default/xen (as well as making<br>
>     a few<br>
>     > needed tweaks to /etc/xen/xend-config.sxp), libvirt and virt-manager<br>
>     > worked great.  Yippee!<br>
>     ><br>
>     > I guess that I should be happy that the xm toolstack still works<br>
>     with<br>
>     > Xen 4.2.1 and quit while I'm ahead, but...<br>
>     ><br>
>     > According to libvirt's documentation:<br>
>     ><br>
>     > "libxl: Starting with Xen 4.2, the legacy XenD/xm toolstack is<br>
>     > deprecated in favor of libxl, also commonly called libxenlight.<br>
>     > libvirt supports this new Xen toolstack via the libxl driver. If<br>
>     XenD<br>
>     > is enabled, the legacy xen driver consisting of the above mentioned<br>
>     > channels will be used. If XenD is disabled, the libxl driver will be<br>
>     > used."<br>
>     ><br>
>     > See <a href="http://libvirt.org/drvxen.html" target="_blank">http://libvirt.org/drvxen.html</a>.<br>
>     ><br>
>     > In view of the above, I attempted to use xl in place xm by setting<br>
>     > TOOLSTACK=xl in /etc/default/xen.   And after doing so (both<br>
>     with and<br>
>     > without, the above mentioned tweaks to /etc/xen/xend-config.sxp), I<br>
>     > recieved the following error when attempting to start virt-manager:<br>
>     ><br>
>     > Unable to connect to libvirt.<br>
>     ><br>
>     > unable to connect to 'localhost:8000': Connection refused<br>
><br>
>     Did the libxl driver even load?  There should be some evidence of that<br>
>     in libvirtd.log.  Has your libvirt package been built with the libxl<br>
>     driver enabled?<br>
><br>
>     Regards,<br>
>     Jim<br>
><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<br>
>     1027,<br>
>     > in _open_thread<br>
>     >     self.vmm = self._try_open()<br>
>     >   File "/usr/share/virt-manager/virtManager/connection.py", line<br>
>     1009,<br>
>     > in _try_open<br>
>     >     flags)<br>
>     >   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in<br>
>     > openAuth<br>
>     >     if ret is None:raise libvirtError('virConnectOpenAuth() failed')<br>
>     > libvirtError: unable to connect to 'localhost:8000': Connection<br>
>     refused<br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ------------------------------------------------------------------------<br>
>     ><br>
>     > _______________________________________________<br>
>     > virt-tools-list mailing list<br>
</div></div>>     > <a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a> <mailto:<a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a>><br>
>     > <a href="https://www.redhat.com/mailman/listinfo/virt-tools-list" target="_blank">https://www.redhat.com/mailman/listinfo/virt-tools-list</a><br>
><br>
><br>
</blockquote></div><br></div>