[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#538202: ITP: virt-what -- detect if we are running in a virtual machine



Manoj Srivastava wrote:
On Sat, Jul 25 2009, Joe Smith wrote:

"Manoj Srivastava" <srivasta@debian.org> wrote:
Virt-what is more accurate than Imvirt, version 1.0 can tell the
difference between Xen Dom0 and DomU. The new version (1.1, released
on 23 july 2009) can tell the difference between QEMU and KVM, and can
tell if you are running inside a Xen fullvirt guest.
       This sounds cool. Does it support user-mode-linux as well?
At the moment, it can detect VMWare, Microsoft Versions of Virtual PC,
OpenVZ, Xen-HVM, Xen-DomU, Xen-Dom0, KVM, and QEMU.

I'm betting the author would be willing to incorporate checks for
other systems if they can be easilly done in a bash script.

root@cinder:~# cat /proc/cpuinfo processor : 0
vendor_id       : User Mode Linux
model name      : UML
mode            : skas
host            : Linux anzu 2.6.30.2-anzu #3 SMP Thu Jul 23 15:24:12 CDT 2009 x86_64
bogomips        : 548.86

        It would be appreciated if the ITP'er could convey this to
 upstream. The output above should leave no doubt that we are running in
 an UML machine.

Some doubt always exists; the environment could be lying. Someone might run UML under VMWare under Mac OS X, if that's not too ridiculous. Which host would you like to know about?

Something to think about eventually might be nested virtualization, a la Blue Pill. (Not something to worry about right now, though.)

What about VirtualBox, assuming it survives Oracle? (Maybe it will; the OSE version is GPL, is it not?)

Mark Allums



Reply to: