Is there any script or utility or way to check if you are running in a virtual machine or in a physical server?
You can install the package virt-what, that is basically a script displaying the type of VM inferred from the system or if you are in a physical machine.