Confirm If CPU Supports Virtualization with lscpu

lscpu – hardware virtualization

The RHEL 8 desktop PC I’m working on right now is going to be a testbed for all sorts of virtualization technologies – Docker, KVM and VirtualBox. Today I found a really cool command for showing CPU properties.

lscpu command is one of the Linux commands that helps you confirm hardware properties and key parameters of your CPU: number of cores, threads, 32-bit/64-bit support, architecture and many other useful things.

CPU information with lscpu

I’m using a relatively old AMD based system. Here’s what lscpu reports:

$ lscpu 
 Architecture:        x86_64
 CPU op-mode(s):      32-bit, 64-bit
 Byte Order:          Little Endian
 CPU(s):              4
 On-line CPU(s) list: 0-3
 Thread(s) per core:  2
 Core(s) per socket:  2
 Socket(s):           1
 NUMA node(s):        1
 Vendor ID:           AuthenticAMD
 CPU family:          21
 Model:               19
 Model name:          AMD A8-6500 APU with Radeon(tm) HD Graphics
 Stepping:            1
 CPU MHz:             2815.703
 CPU max MHz:         3500.0000
 CPU min MHz:         1700.0000
 BogoMIPS:            6987.00
 Virtualization:      AMD-V
 L1d cache:           16K
 L1i cache:           64K
 L2 cache:            2048K
 NUMA node0 CPU(s):   0-3
 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 mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl no
 nstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch os
 vw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pa
 usefilter pfthreshold

Based on the above information I can see that my CPU is indeed going to support hardware virtualization and will allow me to host and run multiple 64-bit virtual machines.

That’s it for today!

See Also