Presentation is loading. Please wait.

Presentation is loading. Please wait.

How To Use The WMI Interfaces With Windows Virtualization

Similar presentations


Presentation on theme: "How To Use The WMI Interfaces With Windows Virtualization"— Presentation transcript:

1 How To Use The WMI Interfaces With Windows Virtualization
4/26/2017 1:50 AM How To Use The WMI Interfaces With Windows Virtualization Pierre Jacomet Senior Program Manager Windows Virtualization Microsoft Corporation © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Goals After this presentation you will
4/26/2017 1:50 AM Goals After this presentation you will Have a clear idea of Microsoft’s management approach to virtualization services Have a high level understanding on the virtualization services WMI interface Have a better idea of how you can integrate your product with virtualization services For managing purposes To integrate your hardware © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 4/26/2017 1:50 AM Introduction To WMI WMI – Windows Management Interface is Microsoft’s implementation of DMTF WBEM DMTF = Distributed Management Task Force WBEM = Web Based Enterprise Management Object oriented approach to systems manageability Uses DMTF CIM – Common Information Model Microsoft is working in the DMTF Defining virtualization management profile WMI interface is subject to change DMTF changes Ongoing Microsoft development work © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 4/26/2017 1:50 AM WMI Value Proposition WMI is the interface that applications use to manage all aspects of Windows virtualization services WMI is consumer agnostic Can be accessed remotely by WS-Management, Programmable via C++, WSH, .NET Hardware manufacturers benefit from understanding WMI Understand how their hardware can participate within overall Windows virtualization services manageability © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 Introduction To CIM Common Information Model
4/26/2017 1:50 AM Introduction To CIM Common Information Model Object-oriented information model Provides a conceptual framework for describing management data For computing and business entities In Internet, enterprise and service provider environments Formalism UML – Universal Modeling Language MOF – Managed Object Format CIMOM – CIM object manager Implements CIM WMI includes a CIMOM component © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 CIM Schema Schemas are building blocks of CIM Core model Common models
4/26/2017 1:50 AM CIM Schema Schemas are building blocks of CIM Describe and represent manageability Core model Capture notions applicable to all management areas Common models Capture notions common to particular management areas Independent of any particular implementation © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 CIM Common models Apps Database Device Event Interop Metrics Network
4/26/2017 1:50 AM CIM Common models Apps Database Device Event Interop Metrics Network Physical Policy Support System User Virtualization © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 DMTF Management Profile
4/26/2017 1:50 AM DMTF Management Profile Specification that defines the CIM model and associated behavior for a management domain Use small subset of full CIM schema Within management domain defines Classes, associations, etc. Requirements regarding above classes and associations © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 CIM Virtualization Profile
4/26/2017 1:50 AM CIM Virtualization Profile Specification that defines the CIM model and behavior for virtualization management domain Depends on CIM core model Core includes basic classes, associations, indications, methods and properties Implemented by Windows virtualization WMI provider © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 CIM Virtualization Profile General Design Approach
4/26/2017 1:50 AM CIM Virtualization Profile General Design Approach Model interoperable with other virtualization platforms Virtual resources modeled in the same way as their physical counterparts Virtual aspects abstracted into associated classes © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 CIM Virtualization Profile Note on name differences
Throughout this presentation please note the following Usage of word “Host” or “Physical” maps to parent partition or the computer system running in the parent partition © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 Main Virtualization Objects
4/26/2017 1:50 AM Main Virtualization Objects Computer systems Describe both physical and virtual computers Management service Controls all aspects of the lifecycle of a VM Virtual system settings Represent a VM or a snapshot Resources and resource pools Represent resources © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 Computer Systems Physical or virtual VM is a computer system
4/26/2017 1:50 AM Computer Systems Physical or virtual VM is a computer system Host is a computer system CIM_ComputerSystem (Physical) CIM_ComputerSystem (Virtual) © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 Computer Systems Linking Physical to Virtual
4/26/2017 1:50 AM Computer Systems Linking Physical to Virtual Hosted Dependency association links VM computer system to Host computer system Host Computer System Hosted Dependency VM-1 Computer System VM-2 Computer System VM-3 Computer System © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 Computer Systems Virtual Systems
4/26/2017 1:50 AM Computer Systems Virtual Systems All virtual aspects abstracted into a virtualization specific object Host Computer System Hosted Dependency Virtual Computer System Element Setting Data Virtual System Setting Data © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

18 Virtual System Lifecycle (Or possible states a VM can be in)
4/26/2017 1:50 AM Virtual System Lifecycle (Or possible states a VM can be in) Defined Initial state, resource usage described by configuration, resources not allocated except for disks Active VM is running, all resources are allocated Paused VM is paused, all resources remain allocated Suspended VM resources are de-allocated, state is persisted © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 Virtual System State transitions
4/26/2017 1:50 AM Virtual System State transitions Starting state VM defined VM active VM paused VM suspended End state © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 Management Service Full name: Virtual System Management Service (VSMS)
Central object in virtualization profile Needed to access and manage virtualization services exposed by a host system Exposes operations to manage VM lifecycle Define virtual system Modify virtual system Request State Change Others © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 Management Service Relationship to host
4/26/2017 1:50 AM Management Service Relationship to host VSMS is just another service Scoped by Hosting computer system Associated to host via Hosted Service VSMS is special Associated to host via Associated Virtual System Management Service Associated Virtual System Management Service Host Computer System Virtual System Management Service Hosted Service © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

23 VSMS Discovering Capabilities
4/26/2017 1:50 AM VSMS Discovering Capabilities Virtual System Management Capabilities class describes VSMS implementation level Optional methods Indication support Asynchronous operations support Virtual System Management Service Virtual System Management Capabilities Element Capabilities © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

24 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

25 Resources Physical or virtual resources have the same representation
Include items like Memory Network Ports Allocated from resource pools © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

26 Resource Pools Managed by resource pool configuration service
4/26/2017 1:50 AM Resource Pools Managed by resource pool configuration service One allocated for a each device type May be hierarchical Central class for virtual device allocations Virtual resources are allocated from resource pools © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

27 Resource Pools Resource pool configuration service
4/26/2017 1:50 AM Resource Pools Resource pool configuration service Host System Hosted Service Resource Pool Configuration Capabilities Element Capabilities Resource Pool Configuration Service Service Affects Element System Device Hosted Resource Pool Allocated From Pool Resource Pool Concrete Component Host Resource Virtual Resource © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

28 Host Computer System Instance diagram
Host has resources Processor, memory Host resources go into pools Processor Memory NIC System Device Processor Resource Pool NIC Memory Hosted Resource Pool Concrete Comp. © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

29 Agenda WMI introduction Computer systems Management service
4/26/2017 1:50 AM Agenda WMI introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

30 Virtual System Settings
4/26/2017 1:50 AM Virtual System Settings Virtual aspects of a Computer system One instance for each different configuration settings for a VM Active state Snapshots – 0 or more Associated with resource allocation settings for VM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

31 Resource Allocation Setting Data
4/26/2017 1:50 AM Resource Allocation Setting Data Represents settings of a single resource One instance for each different device settings Active Snapshots – 0 or more © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

32 Virtual Computer System Instance diagram
Element Setting Data Virtual Computer System Virtual System has virtual devices Virtual system settings and Resource allocation settings track allocations Processor Memory NIC Virtual System Settings (Active) System Device Resource Allocation Setting Virtual System Setting Data Component Element Setting Data © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

33 Agenda WMI introduction Computer systems Management service
4/26/2017 1:50 AM Agenda WMI introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

34 Running VM Instance Diagram
Virtual Computer System Host Computer System Hosted Dependency Virtual System Settings (Active) Resource Allocation Setting Processor Processor Resource pool Processor Memory Memory Resource pool Memory NIC NIC Resource pool NIC Allocated from Pool © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

35 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

36 4/26/2017 1:50 AM Snapshots Definition Represents point in time configuration of a VM including it’s resources In CIM terms A Virtual System Settings Data structure All of the associated Resource Allocation Setting Data elements © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

37 Snapshots Creation Simplified instance diagram
Element Setting Data Virtual Computer System Processor Memory NIC Virtual System Settings t-2) Resource Allocation Setting Virtual System Settings t-1) Resource Allocation Setting Virtual System Settings (Active) Resource Allocation Setting © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

38 4/26/2017 1:50 AM Applying A Snapshot Client enumerates snapshots using Element Setting Data aggregation Selects snapshot that she/he wants to apply Invokes ApplySnapshot() method of VSMS Snapshot recorded values become current values © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

39 Applying A Snapshot Simplified instance diagram
Element Setting Data Virtual Computer System Processor Memory NIC Virtual System Settings Snapshot (t-2) Resource Allocation Setting Virtual System Settings t-2) Resource Allocation Setting Virtual System Settings (Active) Resource Allocation Setting Apply Snapshot © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

40 Agenda Introduction Computer systems Management service
4/26/2017 1:50 AM Agenda Introduction Computer systems Management service Resources and resource pools Virtual system settings Runtime instance of a VM Snapshots Code examples © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

41 Common Code Sequence Locate Windows virtualization services
4/26/2017 1:50 AM Common Code Sequence Locate Windows virtualization services Connect to WMI CIMOM in virtualization namespace Connect to VSMS Issue WQL – WMI Query Language to Locate instances of classes Subscribe to events © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

42 Connecting To VSMS Dim WMIService Dim VMHost VMHost = ".“
4/26/2017 1:50 AM Connecting To VSMS Dim WMIService Dim VMHost VMHost = ".“ ‘ Connect to the CIMOM in the destination machine ‘ we use the \virtualization namespace. Set WMIService = GetObject( "winmgmts:\\" & VMHost _ & "\root\Virtualization") ‘ Connect to WMI class that represents VSMS Set VMService = WMIService.Get("Msvm_VirtualSystemManagementService") © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

43 Enumerate VMs Dim WMIService Dim VMList Dim VM Dim VMHost VMHost = "."
4/26/2017 1:50 AM Enumerate VMs Dim WMIService Dim VMList Dim VM Dim VMHost VMHost = "." ' Get instance of the WMI Service in the virtualization namespace. Set WMIService = GetObject("winmgmts:\\" & VMHost & _ "\root\virtualization") ' Enumerate all Msvm_VirtualComputerSystem objects. Set VMList = WMIService.InstancesOf("Msvm_VirtualComputerSystem") For Each VM In VMList WScript.Echo "VM Name: " & VM.ElementName Next © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

44 Activate A VM Const wbemFlagForwardOnly = 32
4/26/2017 1:50 AM Activate A VM Const wbemFlagForwardOnly = 32 Const wbemFlagReturnImmediately = 16 Dim VMList Dim VM ' Use a WQL query to Find the VM passed in as argument in VMName Set VMList = WMIService.ExecQuery ( _ "SELECT * FROM Msvm_VirtualComputerSystem " & _ "WHERE ElementName='" & VMName & "'", "WQL", _ wbemFlagForwardOnly + wbemFlagReturnImmediately _ ) ' Activate the specified VM. For Each VM In VMList WScript.Echo "Activating VM " & VM.Name VMService.ActivateVirtualSystem (VM) Next © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

45 Deactivate A VM Const wbemFlagForwardOnly = 32
4/26/2017 1:50 AM Deactivate A VM Const wbemFlagForwardOnly = 32 Const wbemFlagReturnImmediately = 16 Dim VMList Dim VM ' Use a WQL query to Find the VM passed in as argument in VMName Set VMList = WMIService.ExecQuery ( _ "SELECT * FROM Msvm_VirtualComputerSystem " & _ "WHERE ElementName='" & VMName & "'", "WQL", _ wbemFlagForwardOnly + wbemFlagReturnImmediately _ ) ' Deactivate the specified VM. For Each VM In VMList WScript.Echo “Deactivating VM " & VM.Name VMService.DeActivateVirtualSystem (VM) Next © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

46 MSVirtEx @ microsoft.com
4/26/2017 1:50 AM Call To Action If you are interested to have your software or hardware product participate in virtualized environment manageability Stay in touch with our WMI interface Engage in Beta program Send feedback and questions to microsoft.com © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

47 Additional Resources Related Sessions
4/26/2017 1:50 AM Additional Resources Related Sessions BUS126 Windows Virtualization Strategy and Roadmap VIR065 Microsoft Operating System Virtualization Strategy and Virtual Hard Disk Directions VIR047 Hypervisor, Virtualization Stack, and Device Virtualization Architectures VIR040 Device Virtualization Architecture VIR043 How to Use WMI Interfaces with Windows Virtualization VIR049 Inside Microsoft’s Network and Storage VSP/VSC VIR124 Windows Virtualization Best Practices and Future Hardware Directions VIR046 Hypercall APIs Explained © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

48 msvirtex @ microsoft.com
4/26/2017 1:50 AM Additional Resources Publications and Contact Information Publications Presentations and future papers Preview papers and specs WinHEC Proceedings DVD Windows Hypervisor Top Level Functional Specification Windows Virtualization Glossary Web resources Windows Virtualization Team Blog AMD I/O Virtualization Technology (IOMMU) Specification Intel® Virtualization Technology for Directed I/O Architecture Specification ftp://download.intel.com/technology/computing/vptech/Intel(r)_VT_for_Direct_IO.pdf LaGrande Technology Preliminary Architecture Specification Trusted Computing Group comments to microsoft.com © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

49 4/26/2017 1:50 AM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

50 4/26/2017 1:50 AM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "How To Use The WMI Interfaces With Windows Virtualization"

Similar presentations


Ads by Google