WSMAN SOAP call not working for Creating VirtualHarddisk in windows server 2012 DataCenter


i have installed windows server 2012 datacenter evaluation, trying create virtual disk using wmi classes wsman soap call, same soap call working in windows server 2008 r2, fails in windows server 2012 data center.

cross verified in serivces.msc, , found hyper-v image management service" not available in windows server 2012 data center whereas available in windows server 2008r2

please 1 guide me how enable  hyper-v image management service in "window server 2012 datacenter" or other setup needs install.


soap call
================

<s:envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"
 xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
  <s:header>
    <a:to>http://xx.xx.xx.xxxx:5985/wsman</a:to>
    <w:resourceuri s:mustunderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/v2/msvm_imagemanagementservice</w:resourceuri>
    <a:replyto>
             <a:address s:mustunderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:address>
    </a:replyto>
    <a:action s:mustunderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/v2/msvm_imagemanagementservice/getvirtualharddiskstate</a:action>
    <w:maxenvelopesize s:mustunderstand="true">153600</w:maxenvelopesize>
   <a:messageid>uuid:5c77e65f-eb9f-4ec6-9650-93930582c42b</a:messageid>
   <w:locale s:mustunderstand="false" xml:lang="en-us"/>
   <w:operationtimeout>pt60.000s</w:operationtimeout>

  <w:selectorset>
      <w:selector name="name">vhdsvc</w:selector>
      <w:selector name="systemname">xxxxxxxxxx</w:selector>
      <w:selector name="systemcreationclassname">msvm_computersystem</w:selector>
      <w:selector name="creationclassname">msvm_imagemanagementservice</w:selector>
    </w:selectorset>
  </s:header>
 <s:body>
 <p:getvirtualharddiskstate_input xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/v2/msvm_imagemanagementservice">
      <p:path>e:\testvm.vhdx</p:path>
    </p:getvirtualharddiskstate_input>
  </s:body>
</s:envelope>
=====================================

soap call out put
==========


<s:envelope xml:lang="en-us" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:header><a:action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/fault</a:action><a:messageid>uuid:02ad1907-4588-4d24-9df9-5c430788580a</a:messageid><a:to>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:to><a:relatesto>uuid:5c77e65f-eb9f-4ec6-9650-93930582c42b</a:relatesto>
</s:header>
<s:body><s:fault><s:code><s:value>s:sender</s:value><s:subcode><s:value>n:cannotprocessfilter</s:value></s:subcode></s:code><s:reason><s:text xml:lang="en-us">the data source not process filter. filter might missing or might invalid. change filter , try request again.
</s:text></s:reason><s:detail><p:msft_wmierror b:iscim_error="true" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/msft_wmierror" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xsi:type="p:msft_wmierror_type"><p:cimstatuscode xsi:type="cim:cimunsignedint">6</p:cimstatuscode><p:cimstatuscodedescription xsi:type="cim:cimstring" xsi:nil="true" />
<p:errorsource xsi:type="cim:cimstring" xsi:nil="true" />
<p:errorsourceformat xsi:type="cim:cimunsignedshort">0</p:errorsourceformat><p:errortype xsi:type=im:cimunsignedshort">0</p:errortype><p:message xsi:type="cim:cimstring">no instance found given property values. </p:message><p:messageid xsi:type="cim:cimstring">hresult 0x8033801a</p:messageid><p:othererrorsourceformat xsi:type="cim:cimstring" xsi:nil="true" /><p:othererrortype xsi:type="cim:cimstring" xsi:nil="true" /><p:owningentity xsi:type="cim:cimstring" xsi:nil="true" /><p:perceivedseverity xsi:type="cim:cimunsignedshort">0</p:perceivedseverity><p:probablecause xsi:type="cim:cimunsignedshort">0</p:probablecause><p:probablecausedescription xsi:type="cim:cimstring" xsi:nil="true" /><p:error_category xsi:type="cim:cimunsignedint">5</p:error_category><p:error_code xsi:type="cim:cimunsignedint">2150858778</p:error_code><p:error_type xsi:type="cim:cimstring">hresult</p:error_type><p:error_windowserrormessage xsi:type="cim:cimstring">no instance found given property values. </p:error_windowserrormessage></p:msft_wmierror>
</s:detail></s:fault></s:body></s:envelope>
========================

regards

venkat

                   



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...