When I used the method 'addNetworkAdapter()' in the sample class 'VmNetworkUtil', to create a vNIC for my Windows2012 VM, I received the IllegalArgumentException as the title mentioned.
I've looked into the Enum in VirtualMachineDeviceManager, and find the following value list:
VirtualE1000("VirtualE1000"),
VirtualE1000E("VirtualE1000e"),
VirtualPCNet32("VirtualPCNet32"),
VirtualSriovEthernetCard("VirtualSriovEthernetCard"),
VirtualVmxnet("VirtualVmxnet"),
VirtualVmxnet2("VirtualVmxnet2"),
VirtualVmxnet3("VirtualVmxnet3"),
Unknown("Unknown");
While the result returned by the method 'guestOsInfo.getSupportedEthernetCard()' contains 'VirtualE1000e', which is different from the 'VirtualE1000E ' in the Enum.
So, please kindly fix this issue via correct the 'VirtualE1000E ' into 'VirtualE1000e', or just add value for 'VirtualE1000e'...
Thanks!