I'm running VMware Server (linux host) with multiple of a linux system I'm working on. The virtual instances come up with a specific IP address (192.168.20.20) and in NAT mode. The host machine needs to connect to the linux machine and run a command to change the IP. The command is specific to us, but for the sake of demonstration I'll call it inetchanger. My planned sequence is this:
cp /repo/path/version/* /live/instance/version/
vmware-cmd -s register instance.vmx
vmware-cmd instance.vmx start
ssh "/path/to/netchanger "
vmware-cmd instance.vmx setconfig ethernet0.connectionType bridged
When I do this, I get the happy message from vmware-cmd \[setconfig(ethernet0.connectionType bridged) = 1] but it doesn't actually become active. If I open up the VMware Console Client and go to settings, it shows the network should be in bridged mode. When I click the \[OK] button everything starts working. It looks like it's not actually commiting the changes. Is this the expected behavior? Is there a way to get it to commit?
We can't put the vmware tools on this because then it would be making changes on a machine that we can't mirror in a production machine and that's bad for testing. Any help is appreciated. I'm offline for the night and will check replies tomorrow.