From owner-freebsd-xen@FreeBSD.ORG Mon Apr 13 09:52:51 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB493EDB for ; Mon, 13 Apr 2015 09:52:51 +0000 (UTC) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 62DE2E3F for ; Mon, 13 Apr 2015 09:52:51 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.11,569,1422921600"; d="scan'208";a="252530299" Message-ID: <552B91EB.4060709@citrix.com> Date: Mon, 13 Apr 2015 11:52:43 +0200 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Hannes Mehnert , Subject: Re: [fixed] Re: GELI encrypted root and FreeBSD dom0 ; libxl cannot allocate memory References: <552AA3AE.20205@mehnert.org> <552B8A1C.1000000@mehnert.org> In-Reply-To: <552B8A1C.1000000@mehnert.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2015 09:52:51 -0000 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.