There are 4 vms under the same ESXi (vm1, vm2, vm3 and vm4). All 4 vm's are created with one "SCSI Controller 0" by default with LsiLogicController Parallel.
I want to add a FC(Fiber Channel) LUN to vm1 and share the same FC LUN to other vm's(share with vm2, vm3 and vm4) under the same ESX host. I need to do this for around 800 ESX hosts which has 4 vm's as explained.
Steps:
1. Add FC LUN to vm1.
2. Share the same FC LUN to vm2, vm3 and vm4
3. Repeat 1 and 2 for around 800 ESXi hosts.
Can you please share the approach using vsphere Perl SDK. I am stuck as many forums give different approaches with different errors explained(I am confused and did not understand the approach)