Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214415

how to define disk size with clone vm

$
0
0

Any one know how to define disk size when clone one vm ?

 

following code doesn't work :

 




 my $disk = VirtualDisk->new (capacityInKB => $size);

 my $devspec = VirtualDeviceConfigSpec->new(operation => VirtualDeviceConfigSpecOperation->new('add'),         device => $disk,        );



 my $cust_hardware = VirtualMachineConfigSpec->new (         deviceChange => [$devspec] ,



 );

 my $clone_spec = VirtualMachineCloneSpec->new( 



 config => $cust_hardware, 

 );

Viewing all articles
Browse latest Browse all 214415

Trending Articles



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