This is a piece of code I often use to see if the database server is running in a virtual environment. That is not always obvious or known by the developers.
DECLARE @Result TABLE
(
LogDate DATETIME,
ProcessInfo NVARCHAR(MAX),
Text NVARCHAR(MAX)
)
INSERT @Result
EXEC sys.xp_readerrorlog 0, 1, 'System Manufacturer', 'VMware'
IF EXISTS (SELECT * FROM @Result)
SELECT 'It seems you are running on VMware.' AS Msg
ELSE
SELECT 'It seems you are not running on VMware.' AS Msg
If you test this in your environment and found other virtual manufacturers, please let me know so I can add them in the code above.