From: Keir Fraser Subject: Re: 3.0.5-rc3: Creating HVM guest fails with: Cannot allocate memory Date: Fri, 27 Apr 2007 07:53:24 +0100 Message-ID: References: <20070426231219.GC17027@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070426231219.GC17027@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Daniel P. Berrange" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/4/07 00:12, "Daniel P. Berrange" wrote: > The _constructDomain call is failing in xc.domain_create() - the code which > deals with ballooning down Domain-0 is not even run yet - that lives in > the _initDomain method. So HVM domain creation is failing before XenD has > even had a chance to do ballooning. If I manually use 'xm mem-set' to > balloon down Domain-0 ahead of time, everything works just fine. > > I'm at a lose to figure out how to solve this without major re-arranging > of the order of _constructDomain & _initDomain work. Perhaps someone can > figure out an easier fix ? I don't think domain_create() allocates very many pages, although it's possible it's making a default allocation of shadow memory. Assuming not, it may be sufficient to make auto-balloon leave a bit of slack memory rather than try to account for all available memory down to the last page. A few pages might turn out to suffice. Does this problem occur with the very first domain you try to create after booting the machine? -- Keir