<div dir="ltr"><div>Hi,<br></div><br><div>I built and installed Xen 4.5.0 from source, on top of Ubuntu 14.04.2, using "make 
world" and "make install" targets.  I then installed latest virt-manager from pre-built packages.  
After bringing up virt-manager I attempt to connect to Xen hypervisor 
and got:<br><br>     unable to connect to libvirt<br>     Failed to connect socket to /var/run/libvirt/libvirt-sock' No such file or directory<br><br></div><div>I then noticed libvirt-bin isn't running.  If
 I try to issue 'service libvirt-bin start' it gives me back a process 
number, but it apparently dies quickly because the service still shows as down.  
Three log files are touched during my start attempt:<br><br>     -rw-r--r-- 1 root      root  39757 Feb 27 06:00 /var/log/xenstored-access.log<br>     -rw-r--r-- 1 root      root  44908 Feb 27 06:00 /var/log/libvirt/libxl/libxl-driver.log<br>     -rw------- 1 root      root  46396 Feb 27 06:00 /var/log/libvirt/libvirtd.log<br><br></div><div>*
 xenstored-access.log has 22 new entries, grouped into pairs that 
increment an  "Axx" identifier and go from A63 to A73.  Here is the A63 
logs:<br><br>     [20150227T11:00:29.478Z]  A63          newconn<br>     [20150227T11:00:29.479Z]  A63          endconn<br><br></div><div>* libxl-driver.log also has 11 log groupings that are just the same set of logs repeated 11 times.  Here is the first group:<br><br>     xc: detail: sysctl operation failed -- need to rebuild the user-space tool set?<br>     libxl: error: libxl.c:4320:libxl_get_physinfo: getting physinfo: Permission denied<br>     xc: debug: hypercall buffer: total allocations:7 total releases:7<br>     xc: debug: hypercall buffer: current allocations:0 maximum allocations:1<br>     xc: debug: hypercall buffer: cache current size:1<br>     xc: debug: hypercall buffer: cache hits:6 misses:1 toobig:0<br><br></div><div>* libvirtd.log also has 11 log groupings, that are just the same set of logs repeated 11 times.  Here is that group:<br><br>     2015-02-27 11:00:29.479+0000: 4842: info : libvirt version: 1.2.2<br>    
 2015-02-27 11:00:29.479+0000: 4842: error : libxlDriverConfigNew:1131 :
 Unable to configure libxl's memory management parameters<br>     
2015-02-27 11:00:29.479+0000: 4842: error : virStateInitialize:749 : 
Initialization of LIBXL state driver failed: Unknown problem<br>     2015-02-27 11:00:29.479+0000: 4842: error : daemonRunStateInit:920 : Driver state initialization failed<br><br></div>When
 I google for libxl_get_physinfo I see other reported errors during "xl 
info" and other "xl" commands.    I tried "xl info" and that works for 
me and does not alter the log files:<br><br>root@<server>:~# xl info<br>host                   : server<br>release                : 3.13.0-46-generic<br>version                : #75-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015<br>machine                : x86_64<br>nr_cpus                : 8<br>max_cpu_id             : 7<br>nr_nodes               : 2<br>cores_per_socket       : 4<br>threads_per_core       : 1<br>cpu_mhz                : 2400<br>hw_caps                : bfebfbff:2c100800:00000000:00003f00:17bee3ff:00000000:00000001:00000000<br>virt_caps              : hvm hvm_directio<br>total_memory           : 98168<br>free_memory            : 128<br>sharing_freed_memory   : 0<br>sharing_used_memory    : 0<br>outstanding_claims     : 0<br>free_cpus              : 0<br>xen_major              : 4<br>xen_minor              : 5<br>xen_extra              : .0<br>xen_version            : 4.5.0<br>xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 <br>xen_scheduler          : credit<br>xen_pagesize           : 4096<br>platform_params        : virt_start=0xffff800000000000<br>xen_changeset          : Mon Jan 12 11:30:05 2015 -0500 git:a8ac229<br>xen_commandline        : placeholder<br>cc_compiler            : gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2<br>cc_compile_by          : root<br>cc_compile_domain      : <a href="http://cisco.com" target="_blank">cisco.com</a><br>cc_compile_date        : Thu Feb 19 07:26:00 EST 2015<br>xend_config_format     : 4<br>root@<server>:~# <br><br><div>After consulting with xen-users mailer, I was given this response by "Ian": <br><br>"<span class="im"></span>Did you install libvirt from source or from packages? If the latter then you may have a disconnect between the packaged version and your source-built Xen. You'll probably need to rebuild libvirt against your Xen libraries."<br></div><div><br></div><div>What are the virt-related steps to take to test out Ian's idea?  I have root access to one machine that serves both as a host to VM's as well as a build environment for source builds such as this.  I already built xen 4.5.0 and installed it.  Do I now need to separately download and build libvirt, then download and build virt-manager?  Is it important to place the virt* code within the xen source tree, or do something else so that the virt* code compiles "against" an appropriate xen environment?  <br><br>In summary, I would like some guidance on how to build libvirt, and if needed, virt-manager, source against a specific Xen version.<br><br></div><div>Thanks,<br></div>Wayne</div>