Sponsored

Not the solution you were looking for?

We’ll help you out!

How to detect Virtualization using Sys::Detect::Virtualization Perl script?

Off late, I started working on a Cloud security project where I need to detect the type of hypervisor that runs a virtual machine. For experiment, I had setup test environments based on OpenStack cloud platform with KVM as the underlying hypervisor and also standalone KVM with QEMU, Xen and VirtualBox. The idea is to start a virtual machine on top of these environments and see if I can detect the virtualization technology that powers the current VM. Thankfully, it’s super easy.

Note: There are few native Linux commands such as dmesg (analyzing the system log), lshw, dmidecode etc… that helps you to accomplish this job – which I’ll be covering in a separate tutorial.

Here, I’m going to use “Sys::Detect::Virtualization” perl script, which you can download from this link.

How to detect Virtualization type from a Virtual Machine (VM)

Once you have “Sys::Detect::Virtualization” script downloaded from the above link, copy it to a virtual machine and install it as shown below: