<div dir="ltr">Hi Bob,<div><br></div><div>Thanks for your suggestions. My host machine(dom0) is running ubuntu14.04 and I installed xen hypervisor by running either "apt-get install xen-hypervisor-4.4-amd64" or "apt-get install nova-compute-xen". I check and do not find xencommons in /etc/init.d. Only xen and xendomains exist in that dir. "apt-file search xencommons" does not return any package. No qemu process is running in dom0. </div><div><br></div><div>I am not sure how to move forward. I will try to compile and install xen from source and see whether I can get xencommons installed. If you have some suggestions with this, please let me know. Thanks, </div><div><br></div><div><br></div><div>I will try to follow the following two links. In their installation, they seem to have xencommons installed. </div><div><a href="http://wiki.sebeka.k12.mn.us/virt:xen_4.4_14.04">http://wiki.sebeka.k12.mn.us/virt:xen_4.4_14.04</a><br></div><div><a href="http://pravinchavan.wordpress.com/2013/08/14/xen-hypervisor-setup/">http://pravinchavan.wordpress.com/2013/08/14/xen-hypervisor-setup/</a><br></div><div><br></div><div>-Xing</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 6:09 AM, Bob Ball <span dir="ltr"><<a href="mailto:bob.ball@citrix.com" target="_blank">bob.ball@citrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Xing,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It may be that the dom0 qemu helper process is not running. It seems a very similar issue was tracked down to this on the thread at
</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><a href="http://lists.xen.org/archives/html/xen-users/2014-05/msg00134.html" target="_blank">http://lists.xen.org/archives/html/xen-users/2014-05/msg00134.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ian C pointed out that this helper process is normally started by the xencommons script.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I hope this solves the issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Bob<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xing Lin [mailto:<a href="mailto:linxingnku@gmail.com" target="_blank">linxingnku@gmail.com</a>]
<br>
<b>Sent:</b> 05 November 2014 21:38<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] openstack + libvirt + xl for xen<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am aware that Xen via libvirt is in the group C support but since I am not able to install xenserver iso at compute machines I have, I have to consider to use xen with libvirt. I have three nodes, each one running ubuntu 14.04. I follow
the instruction to install juno in ubuntu 14.04 and it works (I can create instances from horizon) when I use kvm as the hypervisor at the compute node . However, if I switch to use xen as the hypervisor, it will fail to create instances. Note that I am able
to create a xen guest with virt-install from command line, with the following command. So, I believe I am quite close to get libvirt + xl work for openstack. Any help will be highly appreciated! Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">"$ virt-install --connect=xen:/// --name u14.04.3 --ram 1024 --disk u14.04.3.img,size=4 --location
<a href="http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/" target="_blank">http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/</a> --network bridge=virbr0"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">libxl log when creating an instance, launched from horizon (failed).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">------------------<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e5c001890: create: how=(nil) callback=(nil) poller=0x7f4e5c000c50<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=sda spec.backend=qdisk<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:797:initiate_domain_create: running bootloader<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=(null) spec.backend=qdisk<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=qdisk<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e5c001e20: deregister unregistered<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl.c:2712:local_device_attach_cb: locally attaching qdisk /dev/xvda<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: error: libxl_device.c:1224:libxl__wait_for_backend: Backend /local/domain/0/backend/qdisk/0/51712 not ready<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: error: libxl_bootloader.c:405:bootloader_disk_attached_cb: failed to attach local disk for bootloader execution<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e5c001f48: deregister unregistered<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: error: libxl_bootloader.c:276:bootloader_local_detached_cb: unable to detach locally attached disk<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: error: libxl_create.c:1022:domcreate_rebuild_done: cannot (re-)build domain: -3<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x7f4e5c001890: complete, rc=-3<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x7f4e5c001890: inprogress: poller=0x7f4e5c000c50, flags=ic<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x7f4e5c001890: destroy<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">xc: debug: hypercall buffer: total allocations:24 total releases:24<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">xc: debug: hypercall buffer: current allocations:0 maximum allocations:2<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">xc: debug: hypercall buffer: cache current size:2<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">xc: debug: hypercall buffer: cache hits:20 misses:2 toobig:2<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e540083e0: create: how=(nil) callback=(nil) poller=0x7f4e54007fb0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">....<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">--------------------<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">libxl log when creating an instance with virt-install from command line (succeed).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">--------------------<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e641b3ba0: create: how=(nil) callback=(nil) poller=0x7f4e640a94d0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:197:disk_try_backend: Disk vdev=xvda, backend phy unsuitable as phys path not a block device<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_device.c:286:libxl__device_disk_set_backend: Disk vdev=xvda, using backend qdisk<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_create.c:797:initiate_domain_create: running bootloader<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_bootloader.c:327:libxl__bootloader_run: no bootloader configured, using user supplied kernel<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e641cd2f8: deregister unregistered<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA placement candidate found: nr_nodes=1, nr_cpus=8, nr_vcpus=9, free_memkb=1293<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement candidate with 1 nodes, 8 cpus and 1293 KB free selected<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_allocate: cmdline="method=<a href="http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/" target="_blank">http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/</a>", features="(null)"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">libxl: debug: libxl_dom.c:357:libxl__build_pv: pv kernel mapped 0 path /var/lib/xen/virtinst-vmlinuz.mBNvPH<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_kernel_file: filename="/var/lib/xen/virtinst-vmlinuz.mBNvPH"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_malloc_filemap : 5643 kB<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_ramdisk_file: filename="/var/lib/xen/virtinst-initrd.gz.Br5nZP"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_malloc_filemap : 20758 kB<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_boot_xen_init: ver 4.4, 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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_parse_image: called<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: loader probe failed<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_find_loader: trying Linux bzImage loader ...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_malloc : 18898 kB<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x5761bf -> 0x12749b8<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">domainbuilder: detail: loader probe OK<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">------------------<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-Xing<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>