Error: xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_domU_map: failed to mmap domU pages 0x100+0x33 [mmap, errno=-6 (Unknown error:-6)]: Internal error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_domU_map: failed to mmap domU pages 0x100+0x33 [mmap, errno=-6 (Unknown error:-6)]: Internal error

YAMAMOTO Shigeru-2

Hi, all,

I'm using Xen Dom0 on FreeBSD/amd64.
When following error occurs, I can not create new Xen DomU and I need rebooting
Xen Dom0 to recover from error.

# xl create jenkins-01.cfg
Parsing config from jenkins-01.cfg
xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_domU_map: failed to mmap
domU pages 0x100+0x33 [mmap, errno=-6 (Unknown error: -6)]: Internal error
libxl: error: libxl_dom.c:760:libxl__build_dom: xc_dom_build_image failed:
Invalid argument
libxl: error: libxl_create.c:1286:domcreate_rebuild_done: Domain 9:cannot
(re-)build domain: -3
libxl: error: libxl_domain.c:1038:libxl__destroy_domid: Domain
9:Non-existant domain
libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 9:Unable to
destroy guest
libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 9:Destruction of
domain failed


My Xeon Dom0 info is,
# xl info
host                   : edgeworth-kuiper-belt.os-hackers.jp
release                : 13.0-CURRENT
version                : FreeBSD 13.0-CURRENT #0 r350180M: Sun Jul 21
07:39:09 JST 2019
[hidden email]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
machine                : amd64
nr_cpus                : 8
max_cpu_id             : 15
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 2
cpu_mhz                : 3392.152
hw_caps                :
bfebfbff:76faf3ff:2c100800:00000021:00000001:00002fbb:00000000:00000100
virt_caps              : pv hvm hvm_directio pv_directio
total_memory           : 32291
free_memory            : 15404
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 12
xen_extra              : .0
xen_version            : 4.12.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          : credit2
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          :
xen_commandline        : dom0_mem=6144M dom0_max_vcpus=4 dom0=pvh
com1=115200,8n1 guest_loglvl=all loglvl=all console=com1,vga
cc_compiler            : FreeBSD clang version 8.0.1 (tags/RELEASE_801/final
366581) (ba
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Sun Jul 21 08:42:43 JST 2019
build_id               : a582350859a5096dc2ab172c861883fb19a3c6db
xend_config_format     : 4

What informant do I check for debug?

Thanks,
---
YAMAMOTO Shigeru <[hidden email]>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Error: xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_domU_map: failed to mmap domU pages 0x100+0x33 [mmap, errno=-6 (Unknown error:-6)]: Internal error

Roger Pau Monné
On Mon, Jul 22, 2019 at 11:54:35PM +0900, YAMAMOTO Shigeru wrote:

>
> Hi, all,
>
> I'm using Xen Dom0 on FreeBSD/amd64.
> When following error occurs, I can not create new Xen DomU and I need rebooting
> Xen Dom0 to recover from error.
>
> # xl create jenkins-01.cfg
> Parsing config from jenkins-01.cfg
> xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_domU_map: failed to mmap
> domU pages 0x100+0x33 [mmap, errno=-6 (Unknown error: -6)]: Internal error
> libxl: error: libxl_dom.c:760:libxl__build_dom: xc_dom_build_image failed:
> Invalid argument
> libxl: error: libxl_create.c:1286:domcreate_rebuild_done: Domain 9:cannot
> (re-)build domain: -3
> libxl: error: libxl_domain.c:1038:libxl__destroy_domid: Domain
> 9:Non-existant domain
> libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 9:Unable to
> destroy guest
> libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 9:Destruction of
> domain failed

Thanks for the report!

I've fixed this in upstream Xen quite recently, and haven't backported
the patch to FreeBSD yet. I've now created a differential revision at:

https://reviews.freebsd.org/D21028

With the fix. Feel free to apply it to your ports tree and rebuild
xen-kernel, this should give you a working system.

Roger.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "[hidden email]"