Is there any way to find out if the OS i'm running (actually installing) is running in a VMWare machine. I need to disable ntp settings if the automated install is done on a virtual machine but keep them enabled if installing on bare metal.
|
Using |
||||
|
|
|
If all you need is a way to tell whether the OS/host is a virtualized host or not, just you have a perl module Sys::Detect::Virtualization and the script with it http://search.cpan.org/dist/Sys-Detect-Virtualization/script/virtdetect |
|||
|
|
|
You could try Joanna Rutkowska's Red Pill This little program examines the IDTR (interrupt descriptor table register) using the |
||||
|
|
|
The best idea would probably to look at the hardware. At least with VirtualBox you can easily determine that you are on a virtual machine, due to the names of some of the hardware devices (for example Since all your machines are VMware, just pick one of those things and check that. |
||||
|
Linux adds the |
|||
|
|
|
well, the most intuitive way I always do is:
|
|||
|
