关键词:ubuntu, 虚拟化, cpu

ubuntu 下如何支持虚拟化 CPU

  1. 查看是否支持虚拟化 CPU 执行命令 lscpu
架构:                           x86_64
CPU 运行模式:                   32-bit, 64-bit
字节序:                         Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU:                             16
在线 CPU 列表:                  0-15
每个核的线程数:                 2
每个座的核数:                   8
座:                             1
NUMA 节点:                      1
厂商 ID:                        GenuineIntel
CPU 系列:                       6
型号:                           158
型号名称:                       Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
步进:                           12
CPU MHz:                        3600.085
CPU 最大 MHz:                   5000.0000
CPU 最小 MHz:                   800.0000
BogoMIPS:                       7200.00
虚拟化:                         VT-x     【如果有这个就代表有虚拟化技术了】
L1d 缓存:                       256 KiB
L1i 缓存:                       256 KiB
L2 缓存:                        2 MiB
L3 缓存:                        16 MiB
NUMA 节点0 CPU:                 0-15
Vulnerability Itlb multihit:     KVM: Mitigation: VMX disabled
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP
                                  conditional, RSB filling
Vulnerability Srbds:             Mitigation; Microcode
Vulnerability Tsx async abort:   Mitigation; Clear CPU buffers; SMT vulnerable
标记:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat ps
                                 e36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1
                                 gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xt
                                 opology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds
                                 _cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_
                                 2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand l
                                 ahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ib
                                 pb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_a
                                 djust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap c
                                 lflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pl
                                 n pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_
                                 capabilities

  1. 如何开启支持虚拟化 CPU 虚拟化技术的可以在BIOS中开启,开启方法如下: 1、进入BIOS。开机时按F2或F12或DEL或ESC等键(各电脑有所不同)。 2、进入BIOS后,找到Configuration选项,选择Intel Virtual Technology并回车,将光标移至Enabled,然后再回车,最后按F10保存并.