From nobody Sun Apr 23 00:25:44 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q3pvp4G4Cz46XtQ for ; Sun, 23 Apr 2023 00:25:58 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q3pvn5lfCz3mHZ for ; Sun, 23 Apr 2023 00:25:57 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-b8f5400de9eso4501802276.3 for ; Sat, 22 Apr 2023 17:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1682209556; x=1684801556; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FFyoAZdGRvPghM6tcRP7qV0IZI3S/ltv4MemlGiUrz4=; b=AxBcjhyzQBTy//PQG/57nhIwOxHksEqpyfJOxBaI7Ws8UmyfGBOpxX4R0ZdvLA6mii 30/Y2nsmx7DFw/XJwVtFHhLtrfIesYxMk95PxMehRxE7S9yi1lEpC1stHDL407jCprGd 8KjYts2SWkSoT8F8QJ1vUMfy79fE7fvcOqXuRMFOAGkQgOYkDGdREzXmbTWpsRt/ioQC 01QlxQ/W/7BDD8DOYg2rSlvRvBJKUToIE91s4XHbS+CRy7iRKIEwoSR/eccyBH6Wog7R o2xgkeCXgjIG7Ojh94Cfi54RcgsOK0qx0C3SZ06YBfM/zadIieElEL7I1Er63J+7qKgE hTEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682209556; x=1684801556; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FFyoAZdGRvPghM6tcRP7qV0IZI3S/ltv4MemlGiUrz4=; b=Skt//lwwPoTSEDlyeGPEEDa+i0PDYtPYBs0y5qFLjN6OteKeOyY0XV4ZEJ++YxxV9e DUJbT70poqcOKicqrxo1Fs6PtKzB5GWwnB8P8LTXbEu/+XpxbHD66k2/al8rkqCdQQu4 MAb2yayUAQUVbcBLmfl0PHatyanA2rtnzvUpflXpvU21wwdFRZ2eDhvotCf//eNMrvFQ C2/rM9FAhqgw6NsI0PgKiHTaZWOUmrQRGVi8QgvY9vqHU2XPrtpsVolbMZLyoHfwfdhs SWQVMWD6LB6/O3ukvNY47YwhOl09giu96zFpStXpK/NF+FUXnBuxTwY6dizUfryz6D3X LnXw== X-Gm-Message-State: AAQBX9c+joPb4hbeJjLgc3lFO5UtCz5Siv4xLqbr+RHJmWthyfBeYN1/ a26gjV9FTt2QJb3o5s53q8vgCMq/O27Mm0Gx2/4= X-Google-Smtp-Source: AKy350bipO+ZkknOGEl3CXDWzOcZOgnqY7TzZuB07oQqKmkUuwgteLNzF7zH3rF7aIzBKv5XuVILpg== X-Received: by 2002:a25:d301:0:b0:b92:3f8b:d1aa with SMTP id e1-20020a25d301000000b00b923f8bd1aamr5611801ybf.61.1682209556513; Sat, 22 Apr 2023 17:25:56 -0700 (PDT) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com. [209.85.128.179]) by smtp.gmail.com with ESMTPSA id k65-20020a819344000000b00545a08184efsm1963396ywg.127.2023.04.22.17.25.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Apr 2023 17:25:56 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-54f9b37c634so36443807b3.2; Sat, 22 Apr 2023 17:25:55 -0700 (PDT) X-Received: by 2002:a0d:d50a:0:b0:54f:c68f:dc40 with SMTP id x10-20020a0dd50a000000b0054fc68fdc40mr5665586ywd.39.1682209555721; Sat, 22 Apr 2023 17:25:55 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> In-Reply-To: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> From: Tomek CEDRO Date: Sun, 23 Apr 2023 02:25:44 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 To: Dale Scott Cc: FreeBSD Questions Mailing List , freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Q3pvn5lfCz3mHZ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Sat, Apr 22, 2023 at 11:16=E2=80=AFPM Dale Scott wrote: > From the handbook https://docs.freebsd.org/en/books/handbook/virtualizati= on/#virtualization-host-bhyve > > "The easiest way to tell if a processor supports bhyve is to run dmesg or= look in /var/run/dmesg.boot for the POPCNT processor feature flag on the F= eatures2 line for AMD=C2=AE processors or EPT and UG on the VT-x line for I= ntel=C2=AE processors." > > Unfortunately it seems you might be out of luck. Well, on FreeBSD I am able to start VM with both vbox and bhyve.. but the problem is with that "NESTED VIRTUALIZATION" (this seems to be the proper name) that does not seem to work. So I did setup a, yuck, windoze, just to see in practice if "nested virtualization" works on other OS on the same hardware. I did install windoze, then VBox, then created Linux Debian 11 virtual machine, then installed Android Studio on that vm, then launched Virtual Android Device and IT WORKED! o_O So my AMD FX-8320 CPU seems to support "nested virtualization" (its called VT-D for Intel and AMD-V for AMD). Question is why Nested Virtualization does not work on FreeBSD? Should I set it up somehow? Is it supported here at all? Any hints appreciated :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info