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

vdiskcreate.pl reports Can't call method "key" on an undefined value at ./vdiskcreate.pl line 112.

$
0
0

Dear All,

 

I want to add disk to VM, hence using the sample script provided. while executing it reports error can someone please help me what going wrong.

 

./vdiskcreate.pl --datacenter <data centername> --server <servername.company.com> --disksize 10000 --filename test.vmdk --pool private-cloud --vmname test --username <username>

Can't call method "key" on an undefined value at ./vdiskcreate.pl line 112.

 

Looks like line # 112

my $controller = VMUtils::find_scsi_controller_device(vm => $_);

      my $controllerKey = $controller->key;

 

Unable to get controller value hence reporting this error message is there any workaround for this.

 

Thanks.


Viewing all articles
Browse latest Browse all 223568

Trending Articles



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