I have made a copy of a standalone SP 2010 VM -> VM_2. I've renamed it, defined another IP. Now VM_1 and VM_2 run simultaneously. I've added following line to hosts file:


to redirect the request to itself.

Problem: There're still references from VM_2 to SQL Server on VM_1 according to netstat -a -o

Question: Is there a solution to completely remove these dependencies?

1 Answer 1


You need to rename your SharePoint server as well.

Start -> Run.., cmd

cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\"

stsadm -o renameserver -oldservername VM_1 -newservername VM_2


Next, go to Central Administration site, System settings => Configure alternate access mappings, and change all the VM_1 to VM_2 there.

This should work.

Also, Microsoft provides instructions of renaming SharePoint server with PowerShell, but in our company we tried it and couldn't get it to work. Meanwhile, stsadm command works 100%.

  • Thanks I've done this however in Central Administration -> Servers in Farm -> It's referenced to VM_1 and netstat shows opened connections to VM_1. Can a record in a hosts file be a problem?
    – AlexSSE
    Commented Apr 26, 2011 at 11:34
  • Record in hosts file is no longer needed, however, I'm not sure it is the reason. Did you perform the iisreset? We are creating clone VM's almost every day, using this scenario, and all is working... Commented Apr 26, 2011 at 11:42
  • Also, could you please run netstat -ano, and check, which process is connecting to VM_1? Maybe it is not SharePoint already? Hint: to determine which process is connected to VM_1, go to Task Manager => Processes, View => Select columns..., select PID, and compare this column values with PIDs you got from netstat. Commented Apr 26, 2011 at 11:44
  • It's more about SQL processes. Netstat shows that VM_2_IP:1433 has established connection to VM_1_IP:57080 [and some others] Also SP Products Config Wizards shows that SP_Config is mapped to VM_1. And this bothers me.
    – AlexSSE
    Commented Apr 26, 2011 at 14:21
  • 1
    Rename computer => Reboot computer => stsadm -o renameserver => iisreset => fix alternate mappings Commented Apr 26, 2011 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.