[virt-tools-list] Virt-what support for UML and Virtualbox
Daniel P. Berrange
berrange at redhat.com
Tue Aug 4 09:00:07 UTC 2009
On Tue, Aug 04, 2009 at 01:28:20AM +0200, Laurent L?onard wrote:
> Hi,
>
> You can find attached "cat /proc/cpuid" outputs from UML and VirtualBox
> environments.
>
> For UML, the following code should do the trick:
> if grep -q 'UML' /proc/cpuinfo; then
> echo uml
> fi
>
> For Virtualbox, the CPU vendor and model seem to be the same as the host but
> the output is not exactly the same as the host. I'm not sure those
> differences can be used to make sure we are running in a VirtualBox virtual
> machine.
You might want to investigate the 'dmidecode' output when run within
virtualbox. That may well have useful info you can hook onto. The
cpuinfo file you give below doesn't appear to have any useful virtualbox
specific item you can hook into.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the virt-tools-list
mailing list