Run bhyve in KVM on Intel E5-2660 v4 issues

2020-03-26 Thread Elena Mihailescu
Hello, We have some issues on using bhyve from inside a FreeBSD KVM virtual machine on Intel E5-2660 v4 servers. The host operating systems we tried and the errors are described below. If the host is one of the following operating systems: Ubuntu 18.04, Ubuntu 18.04 for servers or CentOS8 we

Re: bhyve in KVM

2016-08-11 Thread gabor
2016-08-10 21:30 időpontban Peter Grehan ezt írta: Hi Gábor, First of all, what is this Disabled in BIOS? Second, what needs to use bhyve, az kldloading vmm I got: vmx_init: processor does not support desired basic capabilities module_register_init: MOD_LOAD (vmm, 0x8221c4e0, 0) error

Re: bhyve in KVM

2016-08-10 Thread Peter Grehan
Hi Gábor, First of all, what is this Disabled in BIOS? Second, what needs to use bhyve, az kldloading vmm I got: vmx_init: processor does not support desired basic capabilities module_register_init: MOD_LOAD (vmm, 0x8221c4e0, 0) error 22 What's missing? There are some checks that

bhyve in KVM

2016-08-10 Thread gabor
Hi! I tried the 11-beta4 in a KVM (qemu) virtual machine. In Linux, the nested KVM functionality is enabled. I started the VM with: qemu-system-x86_64 -enable-kvm -cpu host,+vmx -m 512 FBSD.qcow2 And here is processor info in the FreeBSD VM: CPU: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz

Re: Issues with bhyve under KVM

2015-10-23 Thread Peter Grehan
Hi Cory, vmx_init: ept initialization failed (22) module_register_init: MOD_LOAD (vmm, 0x81e16fd0, 0) error 22 A more useful error, but still incorrect I am pretty sure. This one is because KVM doesn't support the invvpid instruction when running nested. The bhyve ept init code

Re: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan
Hi Cory, `dmesg` prints a message saying that VT-x is "disabled by BIOS" (I passed -L and -bios pointed at OVMF just in case it was a strange SEABIOS compile option) to no change. -cpu is set to host, I have also tried passing -cpu qemu64,+vmx manually to no change. That's not strictly

Re: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan
Hi Cory, bhyve expects that the CPU supports INS/OUTS exits. This is signalled in bit 54 of the VMX_BASIC MSR. I'll have a talk with Neel about the implications of ignoring this bit. Hmm. Does Linux KVM ignore it? It must do (as did bhyve for a long time). (does -host not emulate all

Re: Issues with bhyve under KVM

2015-10-22 Thread Cory Smelosky
On 2015-10-21 23:15, Peter Grehan wrote: Hi Cory, `dmesg` prints a message saying that VT-x is "disabled by BIOS" (I passed -L and -bios pointed at OVMF just in case it was a strange SEABIOS compile option) to no change. -cpu is set to host, I have also tried passing -cpu qemu64,+vmx

Re: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan
Hi Cory, Probably just not that bit. You might want to try the this patch which comments out that test, and see if it gets you any further. https://people.freebsd.org/~grehan/patches/vmx_ins.diff --- all_subdir_vmm --- /usr/src/sys/modules/vmm/../../amd64/vmm/intel/vmx.c:535:11: error: