Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Attaching ISO file to VM

$
0
0

Hello,

 

I have this workflow to mount a CDROM (ISO file in Datastore) on a VM; the code finds the CD device and changes the path to the specified file with no issues. But the the option to Connect the CDROM never works. After the workflow executes I can see the device pointing to the ISO but it is never connected.

 

cdrom.backing = new VcVirtualCdromIsoBackingInfo();

cdrom.backing.fileName = isoFile;

cdrom.connectable.startConnected = false;

cdrom.connectable.connected = true;

 

 

var deviceChange = new VcVirtualDeviceConfigSpec();

deviceChange.device = cdrom;

deviceChange.operation = VcVirtualDeviceConfigSpecOperation.edit;

 

 

var spec = new VcVirtualMachineConfigSpec();

var changes = new Array();

changes.push(deviceChange);

spec.deviceChange = changes;

 

 

task = vm.reconfigVM_Task(spec);

 

Any clue why is this happening?

 

Thanks,

 

Juan.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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