Quantcast
Channel: VMware Communities : Popular Discussions - General Issues
Viewing all articles
Browse latest Browse all 41042

How to add a nic to a VM via command line on vmware server 2.0 using command "vmware-vim-cmd vmsvc/devices.createnic"

$
0
0

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


Viewing all articles
Browse latest Browse all 41042

Trending Articles