From owner-freebsd-virtualization@freebsd.org Thu Oct 22 17:39:41 2015 Return-Path: Delivered-To: freebsd-virtualization@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 6EB43A1CD2E for ; Thu, 22 Oct 2015 17:39:41 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from webmail2.jnielsen.net (webmail2.jnielsen.net [50.114.224.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.jnielsen.net", Issuer "freebsdsolutions.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A8F41A50; Thu, 22 Oct 2015 17:39:40 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from [10.10.1.196] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by webmail2.jnielsen.net (8.15.1/8.15.1) with ESMTPSA id t9MHdb0i017290 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Oct 2015 11:39:39 -0600 (MDT) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail2.jnielsen.net: Host office.betterlinux.com [199.58.199.60] claimed to be [10.10.1.196] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: error running grub-bhyve with -S From: John Nielsen In-Reply-To: <56291C6F.9070405@freebsd.org> Date: Thu, 22 Oct 2015 11:39:37 -0600 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8B7A0F48-9307-405A-A7F3-5E1B579DAA34@jnielsen.net> References: <71AAD86C-6966-46AA-BD73-2D0CE1E2C213@jnielsen.net> <56291C6F.9070405@freebsd.org> To: Peter Grehan X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 17:39:41 -0000 On Oct 22, 2015, at 11:27 AM, Peter Grehan wrote: >> # bhyvectl =E2=80=94vm=3Dvm0 --destroy >> # grub-bhyve -m /images/vm0-device.map -M 1024 -r hd1 -S vm0 >> Could not setup memory for VM >> Error in initializing VM >=20 > The -S option will force allocation of guest memory (required by = passthru). Is there 1G of free mem available on the machine when = grub-bhyve was run ? Hi, thanks for the response. Yes, the machine had something like 6GB = free (not including cache/buf). I also tried running grub-bhyve with = smaller memory values down to and including 32MB (just to see if it = would work, not because I expect my VM to run with that), and without a = -M flag (which, IIRC, defaults to 256MB). I always got the same error. JN