[SeaBIOS] enable hvm in SeaBios

pieter van puymbroeck pietervanpuymbroeck at hotmail.com
Wed Aug 10 14:24:25 CEST 2016


Currently I'm building a new homelab based on omnios.

There a kvm enabled zone is created and inside the zone I have 3 kvm-guests running. These guests are running oracle vm (xen based). All is running fine except if I want to start an vm inside oracle vm, the system complains about:

Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?

Inside the kvm enabled zone, kvm is enabled:

root at ovm1:/root# ls -l /dev/kvm

crw------- 1 root sys 125, 0 Aug 10 11:26 /dev/kvm

root at ovm1:/root#

root at ovm1:/root# modinfo |grep -i kvm

224 fffffffff8408000  3a030 125   1  kvm (kvm driver v0.1)

root at ovm1:/root#

For sure I checked the processor itself from the global zone if it is supported:

root at sea:/root# isainfo -v

64-bit amd64 applications

        vmx pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2

        sse fxsr mmx cmov amd_sysc cx8 tsc fpu

32-bit i386 applications

        vmx pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3

        sse2 sse fxsr mmx cmov sep cx8 tsc fpu

root at sea:/root#

and to me it looks I have the required flags available.

inside the lvm-guest the flags are indeed not given to the guest:

[root at ovm2 ~]# uname -s -r -i -p

Linux 2.6.39-400.279.1.el5uek x86_64 x86_64

[root at ovm2 ~]# cat /etc/oracle-release

Oracle VM Server release 5.7

[root at ovm2 ~]# grep flags /proc/cpuinfo

flags : fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc up nopl pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm

[root at ovm2 ~]#

it does not matter if I start the kvm guest using

-cpu host \

or using

-cpu qemu64,+vmx,+aes,+sse4.2,+sse4.1,+ssse3 \  # --> this one is faster

So it looks to me that the bios the kvm is using ( which appears to be SeaBIOS (version ) is not enabling the nested virtualisation by default. Is this correct?

How can I fix this?

Thanks and best regards,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/seabios/attachments/20160810/b20131af/attachment-0001.html>

More information about the SeaBIOS mailing list