Dup Goto 📝

Is_Virtualisation_Enabled

PT2/linux/vm 07-31 13:46:40
To Pop
10 lines, 62 words, 515 chars Monday 2023-07-31 13:46:40

See cyperciti.biz faq

Look in /proc/cpuinfo and look at flags. The lm flag means the CPU is in 64bit mode. The vmx flag means virtualisation is enabled on an Intel CPU. The svm flag means virtualisation is enabled on an AMD CPU. The aes flag means hardware AES is avaiable. So

grep -q -E 'vtx|svm' /proc/cpuinfo && echo "Virtualisation enabled£