Bhyve and VT-x?

Status
Not open for further replies.

GTCG

Dabbler
Joined
Dec 29, 2017
Messages
11
Hi everyone

I am running a VM in Freenas 11.1U5 on a Gen8 Proliant server with the latest version of Centos running on it. I am sure the CPU supports VT-x and I have enabled it in the Bios as can be seen here (GUI-->Shell: )
Code:
[root@tiamat ~]# grep VT-x /var/run/dmesg.boot								
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID										  
[root@tiamat ~]#				


However, when working in my VM I am looking for the vmx-flag inside the cpuinfo:
Code:
[root@localhost ~]# grep -cw vmx /proc/cpuinfo
0


When running cat /proc/cpuinfo I get:
Code:
[root@localhost ~]# cat /proc/cpuinfo
processor	   : 0
vendor_id	   : GenuineIntel
cpu family	  : 6
model		   : 58
model name	  : Intel(R) Celeron(R) CPU G1610T @ 2.30GHz
stepping		: 9
cpu MHz		 : 2293.138
cache size	  : 2048 KB
physical id	 : 0
siblings		: 1
core id		 : 0
cpu cores	   : 1
apicid		  : 0
initial apicid  : 0
fpu			 : yes
fpu_exception   : yes
cpuid level	 : 13
wp			  : yes
flags		   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq dtes64 ds_cpl ssse3 cx16 xtpr pcid sse4_1 sse4_2 popcnt xsave hypervisor lahf_lm fsgsbase erms xsaveopt arat
bogomips		: 4586.27
clflush size	: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor	   : 1
vendor_id	   : GenuineIntel
cpu family	  : 6
model		   : 58
model name	  : Intel(R) Celeron(R) CPU G1610T @ 2.30GHz
stepping		: 9
cpu MHz		 : 2293.138
cache size	  : 2048 KB
physical id	 : 1
siblings		: 1
core id		 : 0
cpu cores	   : 1
apicid		  : 1
initial apicid  : 1
fpu			 : yes
fpu_exception   : yes
cpuid level	 : 13
wp			  : yes
flags		   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq dtes64 ds_cpl ssse3 cx16 xtpr pcid sse4_1 sse4_2 popcnt xsave hypervisor lahf_lm fsgsbase erms xsaveopt arat
bogomips		: 4587.55
clflush size	: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:



Does this mean that bhyve does not support this particular flag? Or am I doing something wrong or can it be enabled in some way?
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Most if not all hypervisors do not pass this "flag" by default for security reasons and that's if the hypervisor supports it.. With a quick google I have not been able to find any information on nested VMs with bhyve as the base. This begs the question, what are you trying to do?
 

GTCG

Dabbler
Joined
Dec 29, 2017
Messages
11
Most if not all hypervisors do not pass this "flag" by default for security reasons and that's if the hypervisor supports it.. With a quick google I have not been able to find any information on nested VMs with bhyve as the base. This begs the question, what are you trying to do?

I am trying to run a Codius server on my Freenas via Bhyve. Check https://www.youtube.com/watch?v=lCeYVitZyvE&t=414s
for more information. For this I need nested virtualisation which for some reason I cannot use within Bhyve. I doubt if there is a way around in?
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
You need to do a LOT of reading and understand all of the catches that could cause you system to go down and how resource management/allocation work.
 
Status
Not open for further replies.
Top