在CENTOS7访客

时间:2018-06-05 13:43:32

标签: vagrant virtualbox centos7 virtualization

我目前在Windows 10主机中有一个CENTOS7客户端,我正在尝试在CENTOS客户机内安装vagrant和Virtual box来创建一个用于本地开发的kubernetes集群。

我安装了vagrant 2.1.1和VirtualBox 5.2.12

当我尝试

  

流浪汉

它说 VT-X不可用

打开了BIOS中的虚拟化,我检查了Windows功能, HyperV被禁用/未选中

当我捕捉 / proc / cpuinfo 时,vmx不在标志中

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping        : 7
cpu MHz         : 3092.984
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
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 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni ssse3 sse4_1 sse4_2 x2apic hypervisor lahf_lm
bogomips        : 6185.96
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

同样适用于 lscpu 命令:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 42
Model name:            Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
Stepping:              7
CPU MHz:               3092.984
BogoMIPS:              6185.96
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
NUMA node0 CPU(s):     0,1

我非常感谢能够解决这个问题的任何见解。

1 个答案:

答案 0 :(得分:0)

您禁用了hyper-v,这意味着您正在使用备用虚拟机管理程序(virtualbox?)。我不认为除了Windows上的hyper-v之外的任何东西都支持嵌套虚拟化。

您可以尝试使用centos的hyper-v guest虚拟机(通过命令Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true启用嵌套虚拟化)并在其中运行带有vagrant的virtualbox。