Solved About nested virtualization for bhyve

alphachi

Member

Reaction score: 12
Messages: 63

I know the scheme like this can be implemented:
Code:
/-------------------------\
|    KVM on Linux Host    |
|   -------------------   |
|  |   FreeBSD guest   |  |
|  |   -------------   |  |
|  |  | bhyve guest |  |  |
|  |   -------------   |  |
|   -------------------   |
\-------------------------/

Does bhyve support the following schemes?
Code:
 Scheme A:
/-------------------------\
|  bhyve on FreeBSD Host  |
|   -------------------   |
|  |   FreeBSD guest   |  |
|  |   -------------   |  |
|  |  | bhyve guest |  |  |
|  |   -------------   |  |
|   -------------------   |
\-------------------------/

Scheme B:
/---------------------------\
|   bhyve on FreeBSD Host   |
|   ---------------------   |
|  |    Windows guest    |  |
|  |   ---------------   |  |
|  |  | Hyper-V guest |  |  |
|  |   ---------------   |  |
|   ---------------------   |
\---------------------------/
 
Last edited:

Zirias

Son of Beastie

Reaction score: 1,701
Messages: 2,870

Maybe my knowledge here is outdated, but AFAIK, hardware only supports one extra layer in page tables for virtualization, so nested virtualization should be avoided anyways (requires expensive address translations in software).
 
OP
A

alphachi

Member

Reaction score: 12
Messages: 63

Maybe my knowledge here is outdated, but AFAIK, hardware only supports one extra layer in page tables for virtualization, so nested virtualization should be avoided anyways (requires expensive address translations in software).
Yes, I just do it for debugging on non-baremetal servers because of the ugly performance.


Thanks, these URLs just refer how to enable nested virtualization on non-bhyve hosts like I knew.

What about on a bhyve host? For example, any configruation in /boot/loader.conf or /etc/sysctl.conf to enable it?
 
OP
A

alphachi

Member

Reaction score: 12
Messages: 63

OK, I have confirmed this to grehan@: this function isn't yet supported as bhyve will have to emulate VT-x/SVM functionality.
 
Top