dorisdb安装文档要求
https://docs.dorisdb.com/zh-cn/main/quick_start/Deploy
解决办法
Intel VT-x和AMD-V是intel和amd支持x86虚拟化技术的相应cpu指令集。
virtual box或者Vmware 开启VT-x和AMD-V,可以使CPU支持AVX2指令集
处理异常
问题1:
启用嵌套VT-x/AMD-v 灰色无法勾选
解决方案:
命令行在virtualbox安装目录执行
vboxmanage modifyvm [虚拟机名] --nested-hw-virt on
启用嵌套VT-x/AMD-v可勾选。
示例:
C:\Users\Neon>D:
D:\>cd "Program Files\Oracle\VirtualBox"
D:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms
"win7" {4e09a96f-2cfd-48ab-b21d-8908f69adc29}
D:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyvm "win7" --nested-hw-virt on
问题2:
在解决问题1的前提下,打开虚拟机报错
不能为虚拟电脑 Centos7_01 打开一个新任务.
Cannot enable nested VT-x/AMD-V without nested-paging and unresricted guest execution!
(VERR_CPUM_INVALID_HWVIRT_CONFIG).
返回 代码: E_FAIL (0x80004005)
组件: ConsoleWrap
界面: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Disable-WindowsOptionalFeature -online -FeatureName VirtualMachinePlatform
解决方案:
1、右键点开始菜单 ,选“windows powershell(管理员)"
2、进入C:\windows\system32 目录。运行以下命令
PS C:\Windows\system32> Disable-WindowsOptionalFeature -online -FeatureName VirtualMachinePlatform
3、运行完成后重启计算机。
重启还报错的话,卸载Hyper-V
注意:
VT-x/AMD-V 硬件加速在您的系统中不可用。某些虚拟机(如OS/2和QNX)需要该功能,并且没有它将无法启动。
当您在使用VirtualBox时看到上面的的错误,请确保:
-
您的CPU支持这些功能;
-
它在BIOS中被设置成使能;它有许多名称,例如对于AMD称它为:Secure Virtual Machine Mode, Intel称之:Intel Virtualization Technology;
-
Hyper-V没有被安装;当Hyper-V被安装时,VirtualBox的VT-x/AMD-V支持被关闭,当Hyper-V被卸载后,VT-x/AMD-V重新启用;
Hyper-V会被悄悄安装当您安装Windows Phone Emulators或者SDK的时候,比如通过Visual Studio 2015。
卸载Hyper-V
进入控制面板->程序->程序和功能->点击启用或关闭Windows功能->取消选中Hyper-V->点击OK
重启后CPU支持AVX2指令集
[root@linux121 ~]# cat /proc/cpuinfo |grep avx2
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 eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single tpr_shadow flexpriority fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d arch_capabilities
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 eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single tpr_shadow flexpriority fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d arch_capabilities