From owner-freebsd-questions@freebsd.org Fri Dec 15 10:48:56 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 9BF2FEA2850 for ; Fri, 15 Dec 2017 10:48:56 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from outbound.ifdnrg.com (outbound2.ifdnrg.com [193.200.98.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "outbound.ifdnrg.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55FAE70CEC for ; Fri, 15 Dec 2017 10:48:55 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from [192.168.0.11] (38.156-30-62.static.virginmediabusiness.co.uk [62.30.156.38]) (authenticated bits=0) by outbound.ifdnrg.com (8.15.2/8.15.2) with ESMTPSA id vBFAXL4M070237 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 15 Dec 2017 10:33:23 GMT (envelope-from paul@ifdnrg.com) X-Authentication-Warning: outbound.ifdnrg.com: Host 38.156-30-62.static.virginmediabusiness.co.uk [62.30.156.38] claimed to be [192.168.0.11] To: freebsd-questions@freebsd.org From: Paul Macdonald Subject: Bhyve + Ubuntu change RAM allocation Message-ID: Date: Fri, 15 Dec 2017 10:33:24 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-GB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Fri, 15 Dec 2017 10:48:56 -0000 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? Paul.