Disable networking for suspended VM before starting it
Posted on 2009-12-16
I have a SCO OpenServer 5.0.7 server running as a guest OS under VMware Server 1.0.10. There are no vmware-tools for SCO 5 (except for the "V versions," which I do not have). The host system is running CentOS 5.4
Every night, I have a perl script that suspends the VM and copies the VM files to a backup / test server and then starts up the VM again on the live server.
The problem is that I need a way to start up the suspended VM on the backup / test server without interfering with the live server. Since they both have the same IP address, I cannot just start up the VM on the backup server, and, since the VM is suspended, I cannot change from Bridged to Host-only networking.
I am considering using IPTables on the host to accomplish this by blocking all in- and outgoing traffic to the IP of the VM, but I am not sure if this will prevent the VM from responding to ARP requests, etc.
Preferably, I would like to turn off all networking for the VM using vmware-cmd or similar, but I am not very knowledgeable in VMware.
Any help on this would be greatly appreciated.