From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Hemsell, Todd
Sent: Thursday, July 02, 2009 5:04 PM
To: mssms@lists.myitforum.com
Subject: RE: [mssms] Inventory for HW virtualization enabled CPUs
It is getting the value from the Bddutlity
You can download the code for that and see what it is doing.
BDDUtility.SupportsVT
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Casey Robertson
Sent: Thursday, July 02, 2009 2:48 PM
To: mssms@lists.myitforum.com
Subject: RE: [mssms] Inventory for HW virtualization enabled CPUs
It looks like ZTIGather in MDT 2010 can determine if HW assisted virtualization is present.
http://blogs.technet.com/mniehaus/archive/2009/06/26/mdt-2010-new-feature-2-gathering-virtualization-details.aspx
Just need to figure out how I can leverage what that script is doing to inventory that item. Here is the pertinent part from the script – I’m not good at VB so I don’t understand where exactly the script is pulling the information from:
'//---------------------------------------------------------------------------
'// Function: GetVirtualizationInfo()
'// Purpose: Get virtualization details
'//---------------------------------------------------------------------------
Function GetVirtualizationInfo
Dim oInstance, oInstances
Dim sVersionString
Dim bIsVM, sVMPlatform
oLogging.CreateEntry "Getting virtualization info", LogTypeInfo
' Set variables based on the capabilities of the hardware
oEnvironment.Item("IsHypervisorRunning") = ConvertBooleanToString(oUtility.BDDUtility.IsHypervisorRunning)
oEnvironment.Item("SupportsVT") = ConvertBooleanToString(oUtility.BDDUtility.SupportsVT)
oEnvironment.Item("SupportsNX") = ConvertBooleanToString(oUtility.BDDUtility.SupportsNX)
oEnvironment.Item("Supports64Bit") = ConvertBooleanToString(oUtility.BDDUtility.Supports64Bit)
If oUtility.BDDUtility.SupportsVT and oUtility.BDDUtility.SupportsNX and oUtility.BDDUtility.Supports64Bit then
oEnvironment.Item("SupportsHyperVRole") = "True"
Else
oEnvironment.Item("SupportsHyperVRole") = "False"
End if
' Determine what virtual machine environment this might be. Get the BIOS version information
Set oInstances = objWMI.ExecQuery("Select * from Win32_BIOS")
For each oInstance in oInstances
sVersionString = oInstance.Version
Next
' Check the BIOS version information against known values
bIsVM = false
sVMPlatform = ""
Select Case sVersionString
Case "VRTUAL - 1000831"
bIsVM = true
sVMPlatform = "Hyper-V Beta or RC0"
Case "VRTUAL - 5000805", "BIOS Date: 05/05/08 20:35:56 Ver: 08.00.02"
bIsVM = true
sVMPlatform = "Hyper-V"
Case "A M I - 2000622"
bIsVM = true
sVMPlatform = "VS2005R2SP1 or VPC2007"
Case "A M I - 9000520"
bIsVM = true
sVMPlatform = "VS2005R2"
Case "A M I - 8000314"
bIsVM = true
sVMPlatform = "VS2005 or VPC2004"
Case "PTLTD - 6040000"
bIsVM = true
sVMPlatform = "VMware"
Case "VBOX - 1"
bIsVM = true
sVMPlatform = "VirtualBox"
Case else
If oEnvironment.Item("Model") = "Virtual Machine" then
sVMPlatform = "Hyper-V" ' Make a guess
bIsVM = true
ElseIf oEnvironment.Item("Model") = "VMware Virtual Platform" then
sVMPlatform = "VMware"
bIsVM = true
Else
oLogging.CreateEntry "This computer does not appear to be a virtual machine (BIOS is '" & sVersionString & "').", LogTypeInfo
End if
End select
' Set the appropriate variables
oEnvironment.Item("IsVM") = ConvertBooleanToString(bIsVM)
If sVMPlatform <> "" then
oEnvironment.Item("VMPlatform") = sVMPlatform
End if
oLogging.CreateEntry "Finished getting virtualization info", LogTypeInfo
End function
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Hemsell, Todd
Sent: Thursday, July 02, 2009 9:18 AM
To: mssms@lists.myitforum.com
Subject: RE: [mssms] Inventory for HW virtualization enabled CPUs
do not think that is a property of a processor.
Just make a report with a case statement and enter in the models that support it.
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Casey Robertson
Sent: Thursday, July 02, 2009 11:07 AM
To: mssms@lists.myitforum.com
Subject: [mssms] Inventory for HW virtualization enabled CPUs
How can I extend HW inventory (if possible) to discover whether or not a CPU supports hardware-assisted virtualization? Thanks,
Casey Robertson
==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/
==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/
==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/
==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/