VirtWhat - Command
Parses the output of the
virt-what command to check if the host is running
in a virtual machine.
- Sample input::
>>> vw = shared[VirtWhat] >>> vw.is_virtual True >>> vw.is_physical False >>> vw.generic 'kvm' >>> 'aws' in vw False
virt-what-1.13-8 or older on RHEL7, the command fails when running
without an environment (or very restricted environment), and reports below
virt-what: virt-what-cpuid-helper program not found in $PATH
Class for parsing
The type of the virtual machine. ‘baremetal’ if physical machine.
List of the error information if any error occurs.
List of the specific information if the command outputs.
Is the host running in a physical machine? None when something is wrong.
Is the host running in a virtual machine? None when something is wrong.
This method must be implemented by classes based on this class.