Bhyve + Ubuntu change RAM allocation
CyberLeo Kitsana
cyberleo at cyberleo.net
Thu Dec 21 06:06:22 UTC 2017
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 at CyberLeo.Net>
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
Element9 Communications
http://www.Element9.net
Furry Peace! - http://www.fur.com/peace/
More information about the freebsd-questions
mailing list