ansible/ansible — pull request #1656 by dagwieers (2012-11-22 01:54:56+00:00)
Title: Implemented more virtualization types

I added all known virtualization types from the virt-what project. However, the few virt types that rely on cpuid information have not been implemented lacking native python cpuid access. (hyperv)

This has been tested with modified virt-what unit-tests:
```
[dag@moria virt-what]$ for dir in tests/*/; do echo -n "$dir - "; cd $dir && ../../test.py && cd ../..; done
tests/baremetal/ - {}
tests/esx4.1/ - {'virtualization_type': 'VMware', 'virtualization_role': 'guest'}
tests/hyperv/ - {'virtualization_type': 'VirtualPC', 'virtualization_role': 'guest'}
tests/kvm/ - {'virtualization_type': 'kvm', 'virtualization_role': 'guest'}
tests/kvm-explicit-cpu/ - {'virtualization_type': 'kvm', 'virtualization_role': 'guest'}
tests/linux-vserver/ - {'virtualization_type': 'linux_vserver', 'virtualization_role': 'guest'}
tests/lx86/ - {'virtualization_type': 'powervm_lx86', 'virtualization_role': 'guest'}
tests/parallels-desktop/ - {'virtualization_type': 'parallels', 'virtualization_role': 'guest'}
tests/qemu/ - {'virtualization_type': 'kvm', 'virtualization_role': 'guest'}
tests/rhel5-xen-dom0/ - {'virtualization_type': 'xen', 'virtualization_role': 'host'}
tests/rhel5-xen-domU-hvm/ - {'virtualization_type': 'xen', 'virtualization_role': 'guest'}
tests/rhel5-xen-domU-hvm-ia64/ - {'virtualization_type': 'xen', 'virtualization_role': 'guest'}
tests/rhel5-xen-domU-pv/ - {'virtualization_type': 'xen', 'virtualization_role': 'guest'}
tests/virtualbox/ - {'virtualization_type': 'virtualbox', 'virtualization_role': 'guest'}
tests/zvm/ - {'virtualization_type': 'ibm_systemz', 'virtualization_role': 'guest'}
```