cloudstack/plugins/hypervisors/hyperv/DotNet/ServerResource/WmiWrappers
Devdeep Singh 3744deab14 CLOUDSTACK-5178: DeployVm from ISO fails. Fixed the creation of root
volume and made sure the iso is attached when a vm is deployed.
2013-12-04 19:59:40 +05:30
..
Properties Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.CIMV2.Win32_OperatingSystem.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.CIMV2.Win32_Processor.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_ComputerSystem.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_ConcreteJob.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_EthernetPortAllocationSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_EthernetSwitchPort.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_EthernetSwitchPortVlanSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_ExternalEthernetPort.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_ImageManagementService.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_KvpExchangeComponent.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_KvpExchangeComponentSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_KvpExchangeDataItem.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_LANEndpoint.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_MemorySettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_MigrationJob.cs Changes for allowing migration of a vm on hyperv. Migration was blocked in cloudstack for hyperv. 2013-12-03 17:27:24 +05:30
ROOT.virtualization.v2.Msvm_ProcessorSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_ResourceAllocationSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_StorageAllocationSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_StorageJob.cs CLOUDSTACK-5178: DeployVm from ISO fails. Fixed the creation of root 2013-12-04 19:59:40 +05:30
ROOT.virtualization.v2.Msvm_SummaryInformation.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_SyntheticEthernetPortSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualEthernetSwitch.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualEthernetSwitchManagementService.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualHardDiskSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualSystemManagementService.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualSystemManagementServiceSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
ROOT.virtualization.v2.Msvm_VirtualSystemMigrationService.cs Changes for allowing migration of a vm on hyperv. Migration was blocked in cloudstack for hyperv. 2013-12-03 17:27:24 +05:30
ROOT.virtualization.v2.Msvm_VirtualSystemMigrationSettingData.cs Changes for allowing migration of a vm on hyperv. Migration was blocked in cloudstack for hyperv. 2013-12-03 17:27:24 +05:30
ROOT.virtualization.v2.Msvm_VirtualSystemSettingData.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30
Readme.txt A plugin for Hyper-V control is available for CloudStack. The plugin implements basic VM control; however, its 2013-11-04 18:48:53 +05:30
WmiWrappers.csproj CLOUDSTACK-5178: DeployVm from ISO fails. Fixed the creation of root 2013-12-04 19:59:40 +05:30
root.CIMV2.Win32_PerfFormattedData_Counters_ProcessorInformation.cs Make sure only unit tests are run during build time and not functional tests. 2013-11-04 18:48:54 +05:30

Readme.txt

Classes were generated on a hyper-v server using the Visual Studio GUI, but you can do the same using
mgmtclassgen.exe.  Below are some examples:

mgmtclassgen.exe Msvm_ComputerSystem /N root\virtualization /L CS /O CloudStack.Plugin.WmiWrappers /P ComputerSystem.cs
mgmtclassgen.exe Msvm_VirtualSystemManagementService /N root\virtualization /L CS /O CloudStack.Plugin.WmiWrappers /P VirtualSystemManagementService.cs
mgmtclassgen.exe Msvm_VirtualSystemGlobalSettingData /N root\virtualization /L CS /O CloudStack.Plugin.WmiWrappers /P VirtualSystemGlobalSettingData.cs


BUT, you have to tweak the generated code, because it does not deal with NULL method parameters properly.
E.g. when a method completes immediately, the returned out parameters include a "Job" property that has a NULL value.
The generated code will attempt to call ToString() on this NULL value.

ALSO, you have to tweak the generated code to expose useful details such as the WMI name for the class.
E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem.
Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private
constant static member.  The tweak involves making this member public.