Vmware server 2 under linux (debian) : How to add a network card vmware-vim-cmd


I try to add a new network card on a virtual machine with vmware-vim-cmd :

vmware-vim-cmd -U user vmsvc/devices.createnic 176 0 e1000 HostOnly

but i got this message in viclient:

Incompatible device backing specified for device '0'
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you installed VMware Tools on your client (virtual machine)? This piece includes the NIC drivers. That is what you pay for on WMware workstation. Perhaps you should go with VirtualBox. At least that is free and you can load guest machines from VMware.
fas3rAuthor Commented:
Well in fact vmware 2 is free. I develop some script in sh to add manually an ethernet card in a vmware. To add it i modify deirectly the vmx file on the vw and it's work but it's an agly way.

It's why i would like to use vmware-vim-cmd.

If this is a new installation, I would recommend using ESXi since Vmware is discontinuing VMware Server2.

If you do, there is a great webpage for additional help http://www.vm-help.com
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Here is how I do it manually ... and I use the webui to add the interface

here is an examples on how to add 2 new interface to vmware

1. vi /etc/vmware/locations

answer VNET_3_NAME Bridged-eth2
answer VNET_3_INTERFACE eth2
remove_file /dev/vmnet3
file /dev/vmnet3
answer VNET_4_NAME Bridged-eth3
answer VNET_4_INTERFACE eth3
remove_file /dev/vmnet4
file /dev/vmnet4

2. Create the device in Host OS

mknod /dev/vmnet3 c 119 3
mknod /dev/vmnet4 c 119 4
chmod 600 /dev/vmnet3
chmod 600 /dev/vmnet4

3. Activatiing the bridges

/usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-3.pid -n 3 -i eth2
/usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-4.pid -n 4 -i eth3

5. Map the brides to the interfaces

vi /etc/vmware/netmap.conf

network2.name = "Bridged-eth2"
network2.device = "vmnet3"
network3.name = "Bridged-eth3"
network3.device = "vmnet4"

6 Then go in WebUI, and on the server tab  "Refresh Network List" you should see the new interface.

Maybe if you try to add the Vm to a specific vm from here "vmware-vim-cmd -U user vmsvc/devices.createnic .... "   it will work since vmware now see the new network bridge ....

Let us know if it works.

fas3rAuthor Commented:

i cant use the mode "bridge" but do you know if it's possible to the same for "Hostonly" interface ?

Many thank

I would assume that you can do the same with hostonly but since i dont use those interface I wont be of great help.

Let us know your findings !

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fas3rAuthor Commented:
thank :D
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.