Virtualization Technology News and Information
Article
RSS
Gathering processor information about running virtual machines

Ben Armstrong, the Virtual PC Guy, explains that under Virtual Server each virtual machine has access to the same processor capabilities that are present in the physical computer.  He offers a sample script that uses the Virtual Server COM API to find out the processor capabilities that are currently available for a specific virtual machine. 

It can gather information about the presence of MMX, SSE, SSE2, and 3DNow.  You can also find out the speed of the processor which is exposed to the virtual machine.  And Ben states, "this information can be very useful if you are managing virtual machines on a large number of physical computers, and do not have information about the physical processor capabilities handy."

Option Explicit

dim vs, vm

' Attempt to connect to Virtual Server
Set vs = CreateObject("VirtualServer.Application")

'Get virtual machine object
set vm = vs.FindVirtualMachine("A virtual machine")

'Display virtual machine processor information
wscript.echo "HasMMX             : " & vm.HasMMX
wscript.echo "HasSSE             : " & vm.HasSSE
wscript.echo "HasSSE2            : " & vm.HasSSE2
wscript.echo "Has3DNow           : " & vm.Has3DNow
wscript.echo "ProcessorSpeed     : " & vm.ProcessorSpeed

You can comment and read Ben's original story, here.

Published Saturday, January 13, 2007 3:09 PM by David Marshall
Filed under:
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<January 2007>
SuMoTuWeThFrSa
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910