<div dir="ltr"><div>hello again,<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 5:41 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>nesredin mahmud wrote:<br>
> Hello Jim,<br>
><br>
> thank for you replying me quickly!<br>
><br>
> That was right i did not use --with-libxl option during configuration<br>
> of libvirt-1.0.6. Now libxenlight is loaded.<br>
><br>
><br>
><br>
> On Thu, Jun 13, 2013 at 10:40 PM, Jim Fehlig <<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.com</a><br>
</div><div><div>> <mailto:<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.com</a>>> wrote:<br>
><br>
>     nesredin mahmud wrote:<br>
>     > hello everyone,<br>
>     ><br>
>     > I have problem starting virt-manager (0.9.1). It tries to connect to<br>
>     > xen forever...<br>
>     > my environment setup is:<br>
>     > -ubuntu-12.0.4<br>
>     ><br>
>     > virsh # version<br>
>     > Compiled against library: libvirt 1.0.6<br>
>     > Using library: libvirt 1.0.6<br>
>     > Using API: Xen 1.0.6<br>
>     > Running hypervisor: Xen 4.2.0<br>
>     ><br>
>     > ERROR: from virt-manager<br>
>     ><br>
>     > Unable to connect to libvirt:<br>
>     ><br>
>     > internal error libxenlight state driver is not active<br>
>     ><br>
>     > Verify that:<br>
>     >  - A Xen host kernel was booted<br>
>     >  - The Xen service has been started<br>
>     ><br>
>     > Traceback (most recent call last):<br>
>     >   File "/usr/share/virt-manager/virtManager/connection.py", line<br>
>     1185,<br>
>     > in _open_thread<br>
>     >     self.vmm = self._try_open()<br>
>     >   File "/usr/share/virt-manager/virtManager/connection.py", line<br>
>     1167,<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: internal error libxenlight state driver is not active<br>
>     ><br>
>     > I taught the libxenligh was already working.<br>
>     > I compiled libvirt --with-xen and am using virsh as well.<br>
><br>
>     To enable building the libxl driver use '--with-libxl'.<br>
><br>
>     > And xl is working good.<br>
>     > I have stopped *xend* as well so that xl will working.<br>
><br>
>     With debug enabled, do you see the libxl driver being initialized by<br>
>     libvirtd at startup?  E.g. you should see something like<br>
><br>
> virsh # version<br>
> Compiled against library: libvirt 1.0.6<br>
> Using library: libvirt 1.0.6<br>
> Using API: xenlight 1.0.6<br>
> Running hypervisor: xenlight 4.2.0<br>
><br>
> # tail  -f /var/log/syslog|grep virStateInitialize<br>
> Jun 14 16:09:59 swart-2 libvirtd: 9643: debug : virStateInitialize:826<br>
> : Running global init for Remote state driver<br>
> Jun 14 16:09:59 swart-2 libvirtd: 9643: debug : virStateInitialize:826<br>
> : Running global init for Network state driver<br>
><br>
><br>
>     2013-06-13 20:35:53.755+0000: 27848: debug : virStateInitialize:826 :<br>
>     Running global init for LIBXL state driver<br>
><br>
> But I dont see the debug message:  Running global init for LIBXL state<br>
> driver<br>
<br>
</div></div>Strange, you should be seeing more than the two noted above.  E.g. on my<br>
system with log_level=1 in libvirtd.conf:<br>
<br>
2013-06-14 15:28:14.216+0000: 13314: debug : virStateInitialize:826 :<br>
<div>Running global init for Remote state driver<br>
</div>2013-06-14 15:28:14.216+0000: 13314: debug : virStateInitialize:826 :<br>
<div>Running global init for Network state driver<br>
</div>2013-06-14 15:28:14.365+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for Storage state driver<br>
2013-06-14 15:28:14.365+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for udev state driver<br>
2013-06-14 15:28:14.526+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for Secret state driver<br>
2013-06-14 15:28:14.527+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for NWFilter state driver<br>
2013-06-14 15:28:14.564+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for Xen state driver<br>
2013-06-14 15:28:14.564+0000: 13314: debug : virStateInitialize:826 :<br>
<div>Running global init for LIBXL state driver<br>
</div>2013-06-14 15:28:14.602+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for QEMU state driver<br>
2013-06-14 15:28:19.934+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for LXC state driver<br>
2013-06-14 15:28:19.965+0000: 13314: debug : virStateInitialize:826 :<br>
Running global init for UML state driver<br>
<div><br>
> Another problem I have seen after I recompiled libvirt: Virsh does not<br>
> list the dom0 and domu<br>
<br>
</div>Currently, dom0 is not listed by the libvirt libxl driver, similar to<br>
the qemu or LXC driver not listing the "host" as a domain.  Perhaps this<br>
needs to be reconsidered though, since in Xen dom0 is just another<br>
domain and in many way can be managed just like any other domU, e.g.<br>
memory ballooned, vcpus added, etc.  But this is a separate discussion<br>
which should be held on the libvirt dev list :).<br>
<br></blockquote><div>I got this from libvirt debug:<br>libvirtd: 11172: error : virConnectListAllDomains:8430 : this function is not supported by the connection driver: virConnectListAllDomains .<br><br>Good to know. I taught the new driver would support it. strange!<br>

</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As for not seeing domUs, were those domUs created with libvirt?  libvirt<br>
won't know about domains managed by another libxl application, e.g.<br>
those created with 'xl create ...'.<br>
<br></blockquote><div>I really don't know where virsh tool stack stores guest domains. I didnt use virsh to create guest machines. In stead, I use xl, xenD/xm  and virt-manager. But I know here xen tool stack store guest domain information:<br>

</div><div>- xenD/xm => /var/lib/xend/domains/71de4ea9-3d30-f108-9eda-1f2a55bec4cb/config.sxp<br></div><div>-xl=> /var/lib/xen/userdata-d.*.xl<br><br></div><div>I made some test on the old and new libvirt driver with virt-manager.0.9.5<br>

<br><b>1. libxl driver + virt-manager - i</b>t can connect to xen. But i could not create the domain. Some location needed by virt-manager are not found in my distribution i guess..you can see it from  the debug<br><br>2013-06-14 18:22:37,307 (connection:161): Using libvirt API for netdev enumeration<br>

2013-06-14 18:22:37,308 (connection:201): Using libvirt API for mediadev enumeration<br>2013-06-14 18:22:56,477 (connect:121): Showing open connection<br>2013-06-14 18:23:00,409 (connect:110): Cancelling open connection<br>

2013-06-14 18:23:00,409 (connect:116): Closing open connection<br>2013-06-14 18:23:35,036 (create:169): Showing new vm wizard<br>2013-06-14 18:23:35,041 (create:867): Guest type set to os_type=hvm, arch=x86_64, dom_type=xen<br>

2013-06-14 18:23:40,984 (create:867): Guest type set to os_type=xen, arch=x86_64, dom_type=xen<br>2013-06-14 18:23:49,160 (storagebrowse:74): Showing storage browser<br>2013-06-14 18:23:50,828 (config:702): get_default_directory(image): returning /var/lib/xen/images<br>

2013-06-14 18:24:00,243 (storagebrowse:80): Closing storage browser<br>2013-06-14 18:24:15,920 (create:1854): Creating a VM test<br>  Type: xen,xen<br>  UUID: bbb37921-3a00-7c08-64f5-fe237c9cd907<br>  Install Source: None<br>

  OS: None:None<br>  Kernel args: None<br>  Memory: 512<br>  Max Memory: 512<br>  # VCPUs: 1<br>  Filesize: 0.117477416992<br>/usr/local/share/virt-manager/virtManager/baseclass.py:240: GtkWarning: Unknown property: GtkTable.halign<br>

  util.sanitize_gtkbuilder(self.uifile))<br><span style="color:rgb(0,0,255)">2013-06-14 18:24:16,081 (util:353): Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard'<br>

2013-06-14 18:24:16,081 (util:323): Could not open "/etc/X11/xorg.conf": [Errno 2] No such file or directory: '/etc/X11/xorg.conf' <br>2013-06-14 18:24:16,093 (util:383): Didn't match keymap 'se' in keytable!<br>

2013-06-14 18:24:16,134 (util:353): Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard'<br>2013-06-14 18:24:16,134 (util:323): Could not open "/etc/X11/xorg.conf": [Errno 2] No such file or directory: '/etc/X11/xorg.conf' </span><br>

<br></div><div><b>2. virt-manager + xenD/xm..</b><br>l<span style="color:rgb(0,0,255)">ibvirtd: 11901: info : libvirt version: 1.0.6<br>Jun 14 21:17:51 swart-2 libvirtd: 11901: error : xenHypervisorDoV2Sys:959 : Unable to issue hypervisor ioctl 3166208: Permission denied<br>

Jun 14 21:18:53  libvirtd: last message repeated 5 times<br></span><br></div><div>I really dont mind if either  way virt-manager works for me. I guess the first problem is concerns to the distribution am using, ubuntu. But the second one..i really dont get it. I run virt-manager with root permission.<br>

<br></div><div>thank you<br><br></div><div>Best<br><br></div><div>nas<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Regards,<br>
Jim<br>
<br>
</blockquote></div><br></div></div>