VMware Cloud Community
Windspirit
Hot Shot
Hot Shot
Jump to solution

Creating a VMXNET 3 NIC

Hi,

I have problems creating (or if not possible changing the existing) a VMXNET3 network card.

The function createVirtualNetworkCard dosnt have an attribute to select the Network card.

0 Kudos
1 Solution

Accepted Solutions
Windspirit
Hot Shot
Hot Shot
Jump to solution

The solution was with https://communities.vmware.com/thread/428221?start=0&tstart=0

There are actually 2 solutions:

a) add into the "Add a NIC" Workflow into the script "add NIC" the line

nic.itemResource.resourceSubType.value="VMXNET3";

between the var nic = System.getModule.... and var nics = vm.getNetworkCards();

b) Change the createVirtualNetworkCard Action.

by adding a new String CardType and changing the line:

resourceSubType.value = CardType

I also attached the modified Action, in whichI included not only the CardType but the MAC.

NOTE:

I just found out that the Workflow "wire a VM" OVERWRITES the existing network card, instead of just adding the network connection

View solution in original post

0 Kudos
2 Replies
Windspirit
Hot Shot
Hot Shot
Jump to solution

The solution was with https://communities.vmware.com/thread/428221?start=0&tstart=0

There are actually 2 solutions:

a) add into the "Add a NIC" Workflow into the script "add NIC" the line

nic.itemResource.resourceSubType.value="VMXNET3";

between the var nic = System.getModule.... and var nics = vm.getNetworkCards();

b) Change the createVirtualNetworkCard Action.

by adding a new String CardType and changing the line:

resourceSubType.value = CardType

I also attached the modified Action, in whichI included not only the CardType but the MAC.

NOTE:

I just found out that the Workflow "wire a VM" OVERWRITES the existing network card, instead of just adding the network connection

0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

Thanks for sharing your solution!

Joerg

0 Kudos