Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-26 Thread Tomek CEDRO
On Wed, Apr 26, 2023 at 10:15 PM Jan Jurák wrote: > answer as usually late, but you can check procesor virtualisation flags with > command: > (..) > On Freebsd: > > egrep -woi 'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes' > /var/run/dmesg.boot | sort | uniq; egrep -woi 'vmx|lm|aes' > /v

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-26 Thread Tomek CEDRO
On Wed, Apr 26, 2023 at 4:56 PM Gregory Byshenk wrote: > On Mon, Apr 24, 2023 at 11:53:02AM +0200, Tomek CEDRO wrote: > > Thanks Pete, this is my main question if bhyve / vbox / kernel > > supports it at all :-) > > From my experience it does. > Some time back I upgraded the CPUs on an HP Z800 bec

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-26 Thread Gregory Byshenk
On Mon, Apr 24, 2023 at 11:53:02AM +0200, Tomek CEDRO wrote: > Thanks Pete, this is my main question if bhyve / vbox / kernel > supports it at all :-) >From my experience it does. Some time back I upgraded the CPUs on an HP Z800 because the original ones did not support VT-D. Then I had to enab

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-24 Thread Tomek CEDRO
On Sun, Apr 23, 2023 at 7:02 PM Ted Mittelstaedt wrote: > That requires more than just CPU hardware support. Unlike what you > think at the hardware level there is no such thing as "nested > virtualization" instead each virtual session is separate the OS and CPU > just keep track of what session i

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-24 Thread Tomek CEDRO
On Mon, Apr 24, 2023 at 5:24 AM Pete Wright wrote: > > On Sun, Apr 23, 2023 at 02:25:44AM +0200, Tomek CEDRO wrote: > > 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 > > c

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-23 Thread Ted Mittelstaedt
That requires more than just CPU hardware support.  Unlike what you think at the hardware level there is no such thing as "nested virtualization" instead each virtual session is separate the OS and CPU just keep track of what session is tied to what other session.   Sort of like trained monkeys

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-22 Thread Tomek CEDRO
On Sat, Apr 22, 2023 at 11:16 PM Dale Scott wrote: > From the handbook > https://docs.freebsd.org/en/books/handbook/virtualization/#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 featur

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-22 Thread Tomek CEDRO
On Sat, Apr 22, 2023 at 10:16 PM Steve O'Hara-Smith wrote: > Check BIOS settings, I've found virtualisation support disabled by > default in the BIOS when the CPU supports it just fine. Thanks Steve, all is enabled, I would not be able to start VM without that.. the problem that I have is

Re: embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-22 Thread Tomek CEDRO
On Sat, Apr 22, 2023 at 9:08 PM Tomek CEDRO wrote: > (..) > 1. How to check if my CPU has the VT-D/NX support? Cannot find this > information on a vendor site o_O Sorry, here is the fragment of dmesg I forgot to paste: CPU: AMD FX(tm)-8320 Eight-Core Processor(3512.01-MHz K8-class CPU

embedded emulation: bhyve + vt-x on amd fx-8320

2023-04-22 Thread Tomek CEDRO
Hello world :-) I have relatively old but still decent 8 core AMD FX-8320 CPU. I have switched to bhyve in order to do some testing. I am running Debian with Android Studio to test some mobile applications. The Virtual Device however does not want to start because there is no virtualization supp