| 1 |
imvirt - I'm virtualized? |
| 2 |
========================= |
| 3 |
|
| 4 |
This script tries to detect if it is run under a (para)virtualization. |
| 5 |
This is done by looking for wellknown boot messages, device names, |
| 6 |
installed tools etc. |
| 7 |
|
| 8 |
Detected virtualizations: |
| 9 |
- ARAnyM |
| 10 |
- KVM |
| 11 |
- lguest |
| 12 |
- LXC |
| 13 |
- Microsoft Virtual PC / Hyper-V |
| 14 |
- OpenVZ/Virtuozzo |
| 15 |
- Parallels Workstation |
| 16 |
- QEMU |
| 17 |
- UML |
| 18 |
- VMware GSX, ESX, Workstation |
| 19 |
- VirtualBox |
| 20 |
- Xen (para and non-para virtualized) |
| 21 |
- any HVM providing CPUID 0x40000000 detection |
| 22 |
|
| 23 |
imvirt is comparable with virt-what [1]. imvirt was written to run as |
| 24 |
non-root - virt-what requires to be run as root but had some more |
| 25 |
details on Xen (Dom0/DomU/HVM) in the past. |
| 26 |
|
| 27 |
There is a portable version available: [ImVirt Portable](imvirt/tree/master/PORTABLE.md) |
| 28 |
|
| 29 |
Some random links taken as suggestions: |
| 30 |
|
| 31 |
1. http://et.redhat.com/~rjones/virt-what/ |
| 32 |
2. http://www.dmo.ca/blog/detecting-virtualization-on-linux/ |
| 33 |
3. http://my.opera.com/jaelanicu/blog/2008/04/02/a-better-red-pill-scooby-for-vmware |
| 34 |
4. http://my.opera.com/jaelanicu/blog/show.dml/4257341 |
| 35 |
5. http://www.codegurus.be/codegurus/Programming/virtualpc&vmware_en.htm |
| 36 |
6. http://flierlu.blogspot.com/2008/04/virtualization-detection.html |
| 37 |
7. http://www.microsoft.com/downloads/details.aspx?FamilyId=91E2E518-C62C-4FF2-8E50-3A37EA4100F5&displaylang=en |
| 38 |
8. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 |
| 39 |
9. http://invisiblethings.org/papers/redpill.html |
| 40 |
10. http://www.offensivecomputing.net/files/active/0/vm.pdf |
| 41 |
11. http://www.s21sec.com/descargas/vmware-eng.pdf |
| 42 |
12. http://www.trapkit.de/research/vmm/scoopyng/index.html |
| 43 |
|
| 44 |
-- Thomas Liske <[email protected]> Thu, 31 Aug 2012 22:36:09 +0200 |