When you run Windows Server 2008 R2 as a guest Operating System on the virtual machine, you determine IP address easily.
That is Msvm_KvpExchangeDataItem of WMI class.
Keys and values from this class are used to exchange information between Host and Guest O/S.
Unfortunately, some items are not supported in the eariler version of 2008 R2:
IntegrationServicesVersion
NetworkAddressIPv4
NetworkAddressIPv6
RDPAddressIPv4
RDPAddressIPv6
OSEditionId
Results are here:
Windows Server 2008
VMElementName : demo2
FullyQualifiedDomainName : deleted
OSName : Windows Server (R) 2008 Standard
OSVersion : 6.0.6001
CSDVersion : Service Pack 1
OSMajorVersion : 6
OSMinorVersion : 0
OSBuildNumber : 6001OSPlatformId : 2
ServicePackMajor : 1ServicePackMinor : 0
SuiteMask : 16
ProductType : 3
ProcessorArchitecture : 0
Descriptions : {x86, Server, Terminal}
Windows Server 2008 R2
VMElementName : demo
FullyQualifiedDomainName : deleted
OSName : Windows Server 2008 R2 Enterprise
OSVersion : 6.1.7600
CSDVersion :
OSMajorVersion : 6
OSMinorVersion : 1
OSBuildNumber : 7600
OSPlatformId : 2
ServicePackMajor : 0
ServicePackMinor : 0
SuiteMask : 274
ProductType : 3
OSEditionId : 10
ProcessorArchitecture : 9
IntegrationServicesVersion : 6.1.7600.16385
NetworkAddressIPv4 : deleted
NetworkAddressIPv6 : deleted
RDPAddressIPv4 : deleted
RDPAddressIPv6 : deleted
Descriptions : {x64, Server, Terminal, Single User...}
For more details, Click the follwoing link:
http://msdn.microsoft.com/en-us/library/cc136850(VS.85).aspx
댓글 없음:
댓글 쓰기