Hi there,
I'm trying to add a nic to a VM that does not have one configured using the following command
Command usage is: devices.createnic vmid unit number type network
vmware-vim-cmd vmsvc/devices.createnic 144 0 e1000 Bridged
the output that follows is:
(vim.Network.Summary) {
+ dynamicType = <unset>,+
+ network = 'vim.Network:HaNetwork-Bridged',+
+ name = "Bridged",+
+ accessible = true,+
+ ipConfig = (vim.Network.IpConfigInfo) null,+
}
As this is exaclty the same output as when query a vm that have a nic configured with the command "vmware-vim-cmd vmsvc/get.networks vmid" I thought this is the trick.
Unfortunatly there is no nic configured in the vmx config file after that.
Looking forward to your feedback .
Regards Agent