From owner-freebsd-questions@freebsd.org Thu Dec 21 06:06:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EDF5EA4741 for ; Thu, 21 Dec 2017 06:06:22 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from mail.cyberleo.net (paka.cyberleo.net [216.226.128.180]) by mx1.freebsd.org (Postfix) with ESMTP id 522087755C for ; Thu, 21 Dec 2017 06:06:22 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from [172.16.44.4] (vitani.den.cyberleo.net [216.80.73.130]) by mail.cyberleo.net (Postfix) with ESMTPSA id BE7C0359D9; Thu, 21 Dec 2017 00:57:16 -0500 (EST) Subject: Re: Bhyve + Ubuntu change RAM allocation To: Paul Macdonald , freebsd-questions@freebsd.org References: From: CyberLeo Kitsana Message-ID: <38d16e3e-c988-9885-4918-d61e5b30d823@cyberleo.net> Date: Wed, 20 Dec 2017 23:57:15 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 06:06:22 -0000 On 12/15/2017 04:33 AM, Paul Macdonald wrote: > > Hi > > I have a ubuntu VM installed under Bhyve, but seem unable to change the > RAM alocation from the current 2GB to 4. > > I have managed to create a 2nd VM with this allocation, but would prefer > to just allocate ram to the first one > > grub-bhyve  -m device.map -r hd0,msdos1  -M 2048M ubuntu > bhyve  -w -AI -H -P -s 0:0,hostbridge  \ > -s 1:0,lpc -s 2:0,virtio-net,tap0 \ > -s 3:0,virtio-blk,./ubuntu.img \ > -l com1,stdio -c 2 \ > -m 2048M ubuntu > > i;ve updated to be > > grub-bhyve  -m device.map -r hd0,msdos1  -M 4096M ubuntu > bhyve  -w -AI -H -P -s 0:0,hostbridge  \ > -s 1:0,lpc -s 2:0,virtio-net,tap0 \ > -s 3:0,virtio-blk,./ubuntu.img \ > -l com1,stdio -c 2 \ > -m 4096M ubuntu > > but it complains about not being able to allocate memory. > > The box is a slightly greedy ZFS box, but even adding 10MB to the > alocation above givrs rise to a warning re unable to allocate memory, > failed to start VM. > > (and a 2nd VM was installed fine, and both run with the additional ram, > so zfs is releasing ok). > > am i missing something? Are you running this on a 64-bit host, or a 32-bit host? If 32-bit, you may not be able to allocate more than 2GB RAM to any single process, including bhyve. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Element9 Communications http://www.Element9.net Furry Peace! - http://www.fur.com/peace/