• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11764
  • Last Modified:

Process for cloning a SQL Server in VMWare

Hi,

I have a SQL Server Standard 2008 (x64) server on VMWare currently that I'd like to clone in order to create a test/development server.  

I realize that after cloning SQL commands will need to be run to change the server name.  However, when I tried cloning the SQL Server services won't load at startup for me to be able to run commands to update the server name.  FYI, the Windows OS clone process changed both the computer name and also the SID.

Anyone have any process tips on how to successfully clone a SQL Server within VMWare?

Thank you!
Aaron
0
Aaron_J_Marshall
Asked:
Aaron_J_Marshall
2 Solutions
 
Chris MConsulting - Technology ServicesCommented:
First of all, I recommend that before you clone your SQL server, change the start-up mode of all your critical services like SQL server and pplication services (if any) from "Automatic" to "Manual" start-up.

If SQL server and its related services are started by local Windows accounts, then I suggest that you change the service account to "Local system" for now.

Restart your virtual node before cloning just to put everything is put to test. Now you're ready to do the clone.

After cloning, you can change the new virtual server's hostname. SQL server will automatically aquire and hold the new name which you give your virtual server.
This should change everything.

After renaming your new virtual server (your clone), to resolve any cases of services which were originally started by Windows accounts, i suggest that you redo the credentials of those service accounts. Also remember to change the start-up mode of the services back to automatic.

SQL server should then work with the server name.
Be careful not to have an IP address conflict on your VMWare network.

Let me know if you need any more help.
0
 
bbnp2006Commented:
Have you tried to use VMWare Converter to do this? I have done this before and worked well. During the conversion, you can change the name for the server. When the newly converted SQL server started, change the server name that SQL server holds using:

select @@servername
sp_dropserver '<old server name>'
sp_addserver '<new server name>', local

restart your SQL server for the changes to take effect.

hope this helps.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now