Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Soap fault on vmdk creation

$
0
0

I want to create a vmdk on my datastore so I attempted this

 

  1. sub atomicAddDisks{
  2.   # Getting the views
  3.   print"DEBUG : GETTING CONTENT\n";
  4.   my$content= Vim::get_service_content();
  5.   my$VDiskManager= Vim::get_view(mo_ref =>$content->virtualDiskManager);
  6.   my$diskSpec= VirtualDiskSpec->new(
  7.     adapterType =>"ide",
  8.     diskType    =>"thin"
  9.   );
  10.   print"DEBUG : CREATING VDISK\n";
  11.   $VDiskManager->CreateVirtualDisk_Task(name =>"[zebi1n]helloworld.vmdk", spec =>$diskSpec);
  12.   print"DEBUG : AFTER VDISK\n";

 

As you can see, I hardcoded the path for debugging but I get a very unhelpful SOAP error

 

SOAP Fault:

-----------

Fault string:

Fault detail: InvalidArgumentFault

 

Does anyone know what is going on?


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>