pondelok 1. novembra 2021

check virtualization in Linux

 If you want use virtualization we need check if it is enabled.


How to check? 


1. check file /proc/cpuinfo


this:


egrep -c '(vmx|svm)' /proc/cpuinfo


Some notes:

egrep -c = count grep 


egrep = grep -E = grep use regular expressions 


A) this is an example when virtualization is not enabled:


[root@tomandjerry ~]# egrep -c '(wmx|svm)' /proc/cpuinfo

0




If this system supports virtualization: we need output greater then 0


like this:


B)


root:server1986:~ # egrep -c '(wmx|svm)' /proc/cpuinfo

24



Žiadne komentáre:

Zverejnenie komentára