我目前在Windows10主机中有一个CENTOS7来宾,我正在尝试在CENTOS来宾中安装vagrant和Virtual box,以便为本地开发创建一个kubernetes集群。
我已经安装了vagrant 2.1.1和VirtualBox 5.2.12
当我试着
流浪汉向上
它说不提供VT-X。
我在中启用了虚拟化,并且选中了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
我真的很感激任何关于我如何解决这个问题的见解。
发布于 2018-06-08 04:16:21
您禁用了hyper-v,这意味着您正在使用替代虚拟机管理程序(virtualbox?)。我认为除了windows上的hyper-v之外,其他任何工具都不支持嵌套虚拟化。
您可以尝试使用centos(通过命令Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
启用嵌套虚拟化)来运行hyper-v guest,并在virtualbox中运行vagrant。
https://stackoverflow.com/questions/50701661
复制相似问题