[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] HVM Attempt: libxl errors


  • To: xen-users@xxxxxxxxxxxxx
  • From: "John L. Poole" <jlpoole56@xxxxxxxxx>
  • Date: Wed, 14 Dec 2016 20:31:38 -0800
  • Delivery-date: Thu, 15 Dec 2016 04:33:32 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>



On 12/14/2016 5:08 PM, John L. Poole wrote:
I need help trying to overcome what appear to be parsing errors in
a xen HVM guest configuration in Xen 4.8.0. But, it may be that I have
missed something in configuration and the errors are not truly indicative
of a misconfiguration.

Also, this is my first guest attempt on this new Xen Server (which I
boot up manually from the EFI console).

One thing I am unsure about is the designation of the disk's vdev settings despite reading https://xenbits.xen.org/docs/4.8-testing/misc/xl-disk-configuration.txt
I am still not certain what I should be specifying.  My server has a
single SATA drive.  I used gparted to configure for my initial Gentoo
session (sda1-sda4), and then used LVM to manage the remainder sda5.

When I try to launch a guest (new), it fails with:

    zeta xen # /etc/init.d/xencommons status
     * status: started
    zeta xen # xl -vvvv create  /etc/xen/foxserver.cfg -c
    Parsing config from /etc/xen/foxserver.cfg
libxl: error: libxl_xshelp.c:149:libxl__xs_get_dompath: failed to get dompath for 0: No such process libxl: error: libxl.c:4195:libxl_set_memory_target: unable to retrieve domain configuration: No such file or directory
    failed to free memory for the domain
    xencall:buffer: debug: total allocations:19 total releases:19
    xencall:buffer: debug: current allocations:0 maximum allocations:2
    xencall:buffer: debug: cache current size:2
    xencall:buffer: debug: cache hits:15 misses:2 toobig:2
    zeta xen #

There are no logs and my boot configuration provides for logs
(see /boot/efi/gentoo/xen-4.8.0.config at end):

    zeta xen # ls -la /var/log/xen-consoles/
    total 8
    drwxr-xr-x 2 root root 4096 Dec 14 13:01 .
    drwxr-xr-x 6 root root 4096 Dec  8 17:28 ..
-rw-r--r-- 1 root root 0 Dec 14 13:00 .keep_app-emulation_xen-tools-0
    zeta xen #

Have I misconfigured or completely missing something?  What can I do
to provide further details?  I did try to re-install xen-tools with the
debug flag, but the build failed: see Gentoo Bug #602656
"xen-tools-4.8.0 build fails: implicit declaration of function 'unlikely'"
https://bugs.gentoo.org/show_bug.cgi?id=602656

Suggestions?

Thank you,

John

========================================================================
Below are bits of information which are suggested at
https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project#Guest_console_logs


UNAME:

zeta jlpoole # uname -a
Linux zeta 4.4.26-gentoo #1 SMP Wed Dec 7 20:56:22 PST 2016 x86_64 Intel(R) Atom(TM) CPU C2750 @ 2.40GHz GenuineIntel GNU/Linux
zeta jlpoole #

XL Info:

    zeta jlpoole # xl info
    host                   : zeta
    release                : 4.4.26-gentoo
    version                : #1 SMP Wed Dec 7 20:56:22 PST 2016
    machine                : x86_64
    nr_cpus                : 8
    max_cpu_id             : 7
    nr_nodes               : 1
    cores_per_socket       : 8
    threads_per_core       : 1
    cpu_mhz                : 2400
hw_caps : b7ebfbff:43d8e3bf:28100800:00000101:00000000:00002282:00000000:00000100
    virt_caps              : hvm
    total_memory           : 63207
    free_memory            : 129
    sharing_freed_memory   : 0
    sharing_used_memory    : 0
    outstanding_claims     : 0
    free_cpus              : 0
    xen_major              : 4
    xen_minor              : 8
    xen_extra              : .0
    xen_version            : 4.8.0
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
    xen_scheduler          : credit
    xen_pagesize           : 4096
    platform_params        : virt_start=0xffff800000000000
    xen_changeset          :
xen_commandline : console=vga,com1 com1=9600 loglvl=all guest_loglvl=all cc_compiler : x86_64-pc-linux-gnu-gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3
    cc_compile_by          :
    cc_compile_domain      : [unknown]
    cc_compile_date        : Fri Dec  9 09:25:39 PST 2016
    build_id               : 22b45f9d3e22085c9d9f204322ed8920
    xend_config_format     : 4
    zeta jlpoole #

HVM Configuration:

    zeta xen # pwd; cat foxserver.cfg
    /etc/xen
    # This configures an HVM rather than PV guest
    builder = "hvm"

    name = "foxserver"

    #boot="c"

    kernel  = "/boot/kernel-genkernel-x86_64-4.4.26-gentoo"
    ramdisk = "/boot/initramfs-genkernel-x86_64-4.4.26-gentoo"
    # memory is "starting amount" in MBs
    memory = 512

    # Number of VCPUS
    vcpus = 2


    vif = [ '' ]
    dhcp = "dhcp"
    disk = [
    'format=raw, vdev=xvda, access=rw, target=/dev/vg0/foxserver',
    'format=raw, vdev=xvda, access=rw, target=/dev/vg0/foxswap'
    ]
    #root = "/dev/vg0/foxserver ro"


    # Guest VGA console configuration, either SDL or VNC
    sdl = 1

    # end

    zeta xen #

BLOCKS:

    zeta xen # lsblk
    NAME              MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda                 8:0    1  3.7T  0 disk
    +-sda1              8:1    1    2M  0 part
    +-sda2              8:2    1  128M  0 part /boot
    +-sda3              8:3    1  512M  0 part [SWAP]
    +-sda4              8:4    1 19.5G  0 part /
    +-sda5              8:5    1  3.6T  0 part
      +-vg0-foxserver 253:0    0   50G  0 lvm
      +-vg0-foxswap   253:1    0    8G  0 lvm
    zeta xen #

INSTALLED XEN & XEN-TOOLS:

    zeta xen # eix -I xen
    [I] app-emulation/xen
Available versions: 4.6.4-r1^st ~4.6.4-r2^st (~)4.7.1-r1^st (~)4.7.1-r2^st (~)4.8.0^st {custom-cflags debug efi flask} Installed versions: 4.8.0^st[?](09:27:07 AM 12/09/2016)(efi flask -custom-cflags -debug)
         Homepage:            http://xen.org/
         Description:         The Xen virtual machine monitor

    [I] app-emulation/xen-tools
Available versions: 4.6.4-r1(0/4.6)^t ~4.6.4-r2(0/4.6)^t ~4.6.4-r3(0/4.6)^t ~4.7.1-r2(0/4.7)^t ~4.7.1-r3(0/4.7)^t (~)4.8.0(0/4.8)^t {api custom-cflags debug doc flask hvm ocaml ovmf +pam pygrub python (+)qemu +qemu-traditional screen sdl static-libs system-qemu system-seabios PYTHON_TARGETS="python2_7"} Installed versions: 4.8.0^t(01:00:41 PM 12/14/2016)(flask hvm ovmf pam qemu qemu-traditional screen sdl -api -custom-cflags -debug -doc -ocaml -pygrub -python -static-libs -system-qemu -system-seabios PYTHON_TARGETS="python2_7")
         Homepage:            http://xen.org/
         Description:         Xen tools including QEMU and xl

    Found 2 matches
    zeta xen #

PYTHON:

    zeta xen # python -V
    Python 2.7.12
    zeta xen #

XEN BOOT Configuration:

    zeta xen # cat /boot/efi/gentoo/xen-4.8.0.config
    [global]
    default=abc

    [abc]
    options=console=vga,com1 com1=9600 loglvl=all guest_loglvl=all
    kernel=kernel-genkernel-x86_64-4.4.26-gentoo root=/dev/sda4
    ramdisk=initramfs-genkernel-x86_64-4.4.26-gentoo

    zeta xen #

XENCOMMONS Configuration:

    zeta xen #   cat /etc/conf.d/xencommons
    # /etc/conf.d/xencommons

    # Load xen's kernel modules, and this will override defaults
    XEN_KERNEL_MODULES=""

    #
    # 12/14/2016 jlpoole: added per
# https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project#Guest_console_logs
    #
    XENCONSOLED_TRACE=guest

    zeta xen #

I found several problems.

1) I needed to set the dom0 in my EFI configuration so that dom0 did not
consume all of the memory and processors (I have 8 on this system).

Here's my revised options line in the /boot/efi/gentoo/xen-4.8.0.config:

options=console=vga,com1 com1=9600 loglvl=all guest_loglvl=all autoballoon=0 dom0_mem=512M,max:512M


2) I needed to start the various xen daemons under /etc/init.d. I had gotten distracted from this vital step in wrestling with the UEFI issues and getting Xen
to launch at all under grub2; I ended up launching the EFI within an EFI
shell instead of using grub2 as I have been told Xen + grub2 + EFI will not work
now, but might in 2017.

Now I'm getting 129+ lines of output which will help fine tune the HVM.

- John




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.