VMware Cloud Community
erwinVeliz
Contributor
Contributor

orchestrator - when a create a virtual machine - flexible adapter is created - and failed

Hello World,

when a create a virtual machine - flexible adapter is created.

Network adapter flexible is created.

How May I choose a type of network adapter like e1000, e1000e, vxnet3, etc.

cause, my windows machine report an error This type of network adapter is not supported by {0}Microsoft Windows 7 (32-bit)

thanks

0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

Hi,

Which workflow do you use to create a virtual machine?

If you use out-of-the-box 'Create simple virtual machine' workflow, you cannot directly choose the type of the network adapter because such option is not exposed as input parameter. Take a look of this workflow (and its scriptable task labelled 'Create ConfigSpec') - it invokes scripting action com.vmware.library.vc.vm.spec.config.device.createVirtualEthernetCardNetworkConfigSpec() without providing a value for its 3rd parameter, which is exactly the NIC type to create.

So, if you want to specify NIC type, one possible option is to duplicate 'Create simple virtual machine' (in order to be able to modify it), open it for edit, and replace the line:

deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork );

with:

var nicType = "e1000"; // or other valid NIC type; also you can take its value from an input parameter of the new workflow

deviceConfigSpec = System.getModule("com.vmware.library.vc.vm.spec.config.device").createVirtualEthernetCardNetworkConfigSpec( vmNetwork, null, nicType );

0 Kudos