Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2015 11:52:43 +0200
From:      =?windows-1252?Q?Roger_Pau_Monn=E9?= <roger.pau@citrix.com>
To:        Hannes Mehnert <hannes@mehnert.org>, <freebsd-xen@freebsd.org>
Subject:   Re: [fixed] Re: GELI encrypted root and FreeBSD dom0 ; libxl cannot allocate memory
Message-ID:  <552B91EB.4060709@citrix.com>
In-Reply-To: <552B8A1C.1000000@mehnert.org>
References:  <552AA3AE.20205@mehnert.org> <552B8A1C.1000000@mehnert.org>

next in thread | previous in thread | raw e-mail | index | archive | help
El 13/04/15 a les 11.19, Hannes Mehnert ha escrit:
> On 04/12/2015 17:56, Hannes Mehnert wrote:
>> I am able to boot FreeBSD dom0 (using r281439) on my Lenovo X220
>> [no serial port :/].  Unfortunately, I cannot see any console
>> output while the FreeBSD dom0 kernel is booting, using the
>> following xen command line:
> 
>> xen_cmdline="dom0_mem=4096M dom0_max_vcpus=4 dom0pvh=1
>> com1=115200,8n1 guest_loglvl=all loglvl=all console=com1,vga"
> 
> I got it working by putting "-Dh" into /boot.config.
> 
> Now, when running `xl list`, I get:
> libxl: error: libxl.c:669:libxl_list_domain: getting domain info list:
> Cannot allocate memory
> libxl_list_domain failed.
> 
> Relevant output from `xl info`:
> total_memory           : 8075
> free_memory            : 3837
> 
> The output of `xl dmesg` is attached.
> 
> Xen is installed from ports (4.5), kernel is GENERIC in r281439.

You probably need to increase the amount of allowed wired mappings in
the kernel. You can set it to unlimited with the following:

# sysctl -w vm.max_wired=-1

Or if you want to make it permanent:

# echo 'vm.max_wired=-1' >> /etc/sysctl.conf

This is because the Xen tools make extensive use of wired memory in
order to interact with the hypervisor.

Roger.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?552B91EB.4060709>