From owner-freebsd-virtualization@freebsd.org Wed Sep 30 17:32:18 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 1F6F8A0B52B for ; Wed, 30 Sep 2015 17:32:18 +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 040B01D38 for ; Wed, 30 Sep 2015 17:32:17 +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 t8UHW9BS018960 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Sep 2015 11:32:11 -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 8.2 \(2104\)) Subject: Re: AMD processors supported under bhyve From: John Nielsen In-Reply-To: Date: Wed, 30 Sep 2015 11:32:09 -0600 Cc: "freebsd-virtualization@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "C. L. Martinez" X-Mailer: Apple Mail (2.2104) 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: Wed, 30 Sep 2015 17:32:18 -0000 On Sep 30, 2015, at 11:22 AM, C. L. Martinez = wrote: > On Wed, Sep 30, 2015 at 4:54 PM, C. L. Martinez = wrote: >> On Tue, Sep 29, 2015 at 11:03 AM, C. L. Martinez = wrote: >>> On Tue, Sep 29, 2015 at 10:43 AM, Jason Tubnor = wrote: >>>> On 29 September 2015 at 20:07, C. L. Martinez = wrote: >>>>>=20 >>>>> Hi all, >>>>>=20 >>>>> Maybe a stupid question, but are AMD processors supported under >>>>> FreeBSD 10.2-STABLE for bhyve or are they only supported under >>>>> 11-CURRENT? >>>>=20 >>>>=20 >>>> 10.2-RELEASE is the first release to contain AMD support = (10.1-STABLE did >>>> have support however). 11-CURRENT obviously supports it and is = where you'll >>>> find all the latest patches/fixes when reports are made. I use = TrueOS >>>> monthly 11-CURRENT snapshots specifically for this reason (and to = have >>>> binary updates). >>>=20 >>>=20 >>> Thanks Jason... My idea is to use or FreeBSD or HardenedBSD for this >>> host, and if I have problems maybe I will try TrueOS ... >>=20 >> Uhmm I am installing 10.2-STABLE and I am seeing the following error: >>=20 >> module_register_init: MOD_LOAD (vmm, 0xffffffff81d914b0, 0) error 6 >>=20 >> Does this means AMD is not supported yet or what?? >=20 > Uhmm .. It seems it doesn't works. When I try to launch a FreeBSD > guest install with vmrun.sh script: >=20 > root@tstbhyve:/usr/share/examples/bhyve # sh > /usr/share/examples/bhyve/vmrun.sh -c 1 -m 512M -t tap0 -d > /dev/zvol/zroot/export/vmachines/fbsddnssrv -i -I > /export/isoimages/FreeBSD-10.2-RELEASE-amd64-disc1.iso fbsddnssrv > Launching virtual machine "fbsddnssrv" ... > vm_create: Device not configured > root@tstbhyve:/usr/share/examples/bhyve # >=20 > dmesg out about this processor: >=20 > [1] CPU: Quad-Core AMD Opteron(tm) Processor 1354 (2200.04-MHz = K8-class CPU) > [1] Origin=3D"AuthenticAMD" Id=3D0x100f23 Family=3D0x10 Model=3D0x2= Stepping=3D3 > [1] = Features=3D0x178bfbff > [1] Features2=3D0x802009 > [1] AMD = Features=3D0xee500800 > [1] AMD = Features2=3D0x7ff > [1] SVM: NP,NAsids=3D64 > [1] TSC: P-state invariant >=20 > As you can see, virtualization support is enabled: "AMD > = Features2=3D0x7ff=E2=80=9D While your processor has SVM, it does not have the NRIP feature which is = also required by bhyve. See e.g. = http://svnweb.freebsd.org/base?view=3Drevision&revision=3D272926 . That = is why the VMM module wouldn=E2=80=99t load successfully. See the =E2=80=9CSVM=E2=80=9D line in your dmesg output above, versus = this one from a Phenom II X4 (which is running 10-STABLE with bhyve VMs = successfully): SVM: NP,NRIP,NAsids=3D64 JN