I want to create a vmdk on my datastore so I attempted this
- sub atomicAddDisks{
- # Getting the views
- print"DEBUG : GETTING CONTENT\n";
- my$content= Vim::get_service_content();
- my$VDiskManager= Vim::get_view(mo_ref =>$content->virtualDiskManager);
- my$diskSpec= VirtualDiskSpec->new(
- adapterType =>"ide",
- diskType =>"thin"
- );
- print"DEBUG : CREATING VDISK\n";
- $VDiskManager->CreateVirtualDisk_Task(name =>"[zebi1n]helloworld.vmdk", spec =>$diskSpec);
- 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?