Site Search:
Sign in | Join | Help

This Blog

Syndication

Steve Gray

Random Thoughts from the 4Penny VP of Development

April 2007 - Posts

  • Cloning a VMWare machine

    Clone the Virtual Machine

    The current version of VMware Server does not include an option to clone a virtual machine, but the following steps illustrate how this can be achieved manually.

    Shut down the virtual machine and copy the directory that contains the VM

    Edit the contents of the vmx file, making the following change.

    displayName = "myNewName"

    In the VMware Server Console, select the File > Open menu options and browse for the new vmx file. Once opened, the new virtual machine is visible on the console. Start the new virtual machine by clicking the "Power on this virtual machine" button and click the "Always Create" button on the subsequent "Question" screen.



    The cloning process sometimes alters the network connection setup, so repeat the steps mentioned previously for removing extra network adapters and renaming the connections.

    Open the "System Properties" dialog (Start > Control Panel > System), click on the "Computer Name" tab and click the "Change" button. Enter the name "myNewServer" then click the "OK" button.



    Click all subsequent "OK" buttons to exit the "System Properties" dialog and restart the server when prompted.

    Once the new virtual machine has restarted, start the old virtual machine. When both nodes have started, check they can both ping all the public and private IP addresses using the following commands.

     Rename the SQL Server, if one was installed prior to the clone, like this:
    http://forum.4penny.net/blogs/sqlserver/archive/2007/04/10/renaming-a-sql-server.aspx


     

    The virtual machine setup is now complete.