<div dir="ltr"><div>Hi,</div><div><br></div><div>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,</div><div><br></div><div>"$ 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/">http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/</a> --network bridge=virbr0"</div><div><br></div><div>libxl log when creating an instance, launched from horizon (failed).</div><div>------------------</div><div>libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e5c001890: create: how=(nil) callback=(nil) poller=0x7f4e5c000c50</div><div>libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=sda spec.backend=qdisk</div><div>libxl: debug: libxl_create.c:797:initiate_domain_create: running bootloader</div><div>libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=(null) spec.backend=qdisk</div><div>libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=qdisk</div><div>libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e5c001e20: deregister unregistered</div><div>libxl: debug: libxl.c:2712:local_device_attach_cb: locally attaching qdisk /dev/xvda</div><div>libxl: error: libxl_device.c:1224:libxl__wait_for_backend: Backend /local/domain/0/backend/qdisk/0/51712 not ready</div><div>libxl: error: libxl_bootloader.c:405:bootloader_disk_attached_cb: failed to attach local disk for bootloader execution</div><div>libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e5c001f48: deregister unregistered</div><div>libxl: error: libxl_bootloader.c:276:bootloader_local_detached_cb: unable to detach locally attached disk</div><div>libxl: error: libxl_create.c:1022:domcreate_rebuild_done: cannot (re-)build domain: -3</div><div>libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x7f4e5c001890: complete, rc=-3</div><div>libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x7f4e5c001890: inprogress: poller=0x7f4e5c000c50, flags=ic</div><div>libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x7f4e5c001890: destroy</div><div>xc: debug: hypercall buffer: total allocations:24 total releases:24</div><div>xc: debug: hypercall buffer: current allocations:0 maximum allocations:2</div><div>xc: debug: hypercall buffer: cache current size:2</div><div>xc: debug: hypercall buffer: cache hits:20 misses:2 toobig:2</div><div>libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e540083e0: create: how=(nil) callback=(nil) poller=0x7f4e54007fb0</div><div>....</div><div>--------------------</div><div><br></div><div><br></div><div>libxl log when creating an instance with virt-install from command line (succeed).</div><div>--------------------</div><div>libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7f4e641b3ba0: create: how=(nil) callback=(nil) poller=0x7f4e640a94d0</div><div>libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown</div><div>libxl: debug: libxl_device.c:197:disk_try_backend: Disk vdev=xvda, backend phy unsuitable as phys path not a block device</div><div>libxl: debug: libxl_device.c:286:libxl__device_disk_set_backend: Disk vdev=xvda, using backend qdisk</div><div>libxl: debug: libxl_create.c:797:initiate_domain_create: running bootloader</div><div>libxl: debug: libxl_bootloader.c:327:libxl__bootloader_run: no bootloader configured, using user supplied kernel</div><div>libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f4e641cd2f8: deregister unregistered</div><div>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</div><div>libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement candidate with 1 nodes, 8 cpus and 1293 KB free selected</div><div>domainbuilder: detail: xc_dom_allocate: cmdline="method=<a href="http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/">http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/</a>", features="(null)"</div><div>libxl: debug: libxl_dom.c:357:libxl__build_pv: pv kernel mapped 0 path /var/lib/xen/virtinst-vmlinuz.mBNvPH</div><div>domainbuilder: detail: xc_dom_kernel_file: filename="/var/lib/xen/virtinst-vmlinuz.mBNvPH"</div><div>domainbuilder: detail: xc_dom_malloc_filemap    : 5643 kB</div><div>domainbuilder: detail: xc_dom_ramdisk_file: filename="/var/lib/xen/virtinst-initrd.gz.Br5nZP"</div><div>domainbuilder: detail: xc_dom_malloc_filemap    : 20758 kB</div><div>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</div><div>domainbuilder: detail: xc_dom_parse_image: called</div><div>domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...</div><div>domainbuilder: detail: loader probe failed</div><div>domainbuilder: detail: xc_dom_find_loader: trying Linux bzImage loader ...</div><div>domainbuilder: detail: xc_dom_malloc            : 18898 kB</div><div>domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x5761bf -> 0x12749b8</div><div>domainbuilder: detail: loader probe OK</div><div>...</div><div>------------------</div><div><br></div><div>-Xing</div><div><br></div></div>