From: Wei Liu Subject: Re: [BUG] Qemu crash on xl create with memory allocation error (probably xl not consider all videoram for initial memory check) Date: Fri, 10 Oct 2014 15:15:39 +0100 Message-ID: <20141010141539.GB10526@zion.uk.xensource.com> References: <5437DCBE.3000201@m2r.biz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5437DCBE.3000201@m2r.biz> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Fabio Fantoni Cc: xen-devel , Wei Liu , Ian Campbell , Stefano Stabellini , Ian Jackson , Anthony PERARD List-Id: xen-devel@lists.xenproject.org On Fri, Oct 10, 2014 at 03:18:54PM +0200, Fabio Fantoni wrote: > On dom0 with xen from git 4.4-stable I found unexpected case about memory > check on xl create. > If I try to start domU with 2 gb of ram but only 1840384k free (from xentop) > xl give me the correct error: > >xl create /etc/xen/W7-04.cfg > >Parsing config from /etc/xen/W7-04.cfg > >libxl: notice: libxl_numa.c:494:libxl__get_numa_candidate: NUMA placement > >failed, performance might be affected > >xc: error: Could not allocate memory for HVM guest as we cannot claim > >memory! (12 = Cannot allocate memory): Internal error > >libxl: error: libxl_dom.c:651:libxl__build_hvm: hvm building failed > >libxl: error: libxl_create.c:1067:domcreate_rebuild_done: cannot > >(re-)build domain: -3 > >libxl: error: libxl_dm.c:1486:kill_device_model: unable to find device > >model pid in /local/domain/30/image/device-model-pid > >libxl: error: libxl.c:1421:libxl__destroy_domid: > >libxl__destroy_device_model failed for 30 > Can't say much about QEMU, but isn't this failure expected? You had <2G free RAM but the guest asked for 2G. Wei.