Date: Wed, 20 Dec 2017 23:57:15 -0600 From: CyberLeo Kitsana <cyberleo@cyberleo.net> To: Paul Macdonald <paul@ifdnrg.com>, freebsd-questions@freebsd.org Subject: Re: Bhyve + Ubuntu change RAM allocation Message-ID: <38d16e3e-c988-9885-4918-d61e5b30d823@cyberleo.net> In-Reply-To: <ec20ce68-9bdb-2433-05ea-289fb4f5758f@ifdnrg.com> References: <ec20ce68-9bdb-2433-05ea-289fb4f5758f@ifdnrg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <CyberLeo@CyberLeo.Net> Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Element9 Communications http://www.Element9.net Furry Peace! - http://www.fur.com/peace/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38d16e3e-c988-9885-4918-d61e5b30d823>