Hello,
I using predefined Workflow named 'Create Simple Virtual machine' came in with vCenter Plug-In. Now the Problem is when the VM is created, Nic which it add, is Adaptor Type = Flexible and is not recogised by vCenter Configuration Manager`s Operating system Provisioning server and my operation get failed.
I am not sure how can i modify code in the workflow to make is Add NIC with E1000 or E1000E Adaptor Type.
i need your help in fixing this issue.
Regards,
MG
Hi,
dupplicate the original workflow and edit it. In the scriptable task, change the following scripting line:
deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork );
to
deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork, null, "<your adapter type>" );
for <your adapter type>, you can choose from the following:
"pcnet32" for VcVirtualPCNet32
"e1000" for VcVirtualE1000
"e1000e" for VcVirtualE1000e
"vmxnet2" for VcVirtualVmxnet2
"vmxnet3" VcVirtualVmxnet3
I hope this helps.
Regards,
Chris
Hi,
dupplicate the original workflow and edit it. In the scriptable task, change the following scripting line:
deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork );
to
deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork, null, "<your adapter type>" );
for <your adapter type>, you can choose from the following:
"pcnet32" for VcVirtualPCNet32
"e1000" for VcVirtualE1000
"e1000e" for VcVirtualE1000e
"vmxnet2" for VcVirtualVmxnet2
"vmxnet3" VcVirtualVmxnet3
I hope this helps.
Regards,
Chris
Thanks a lot for prompt and simple answer , it worked
Regards,
MG