Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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:

MY_NEW_IP VM_1 VM_2

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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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

iisreset

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%.

share|improve this answer
    
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 Apr 26 '11 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... –  Andrey Markeev Apr 26 '11 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. –  Andrey Markeev Apr 26 '11 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 Apr 26 '11 at 14:21
1  
Rename computer => Reboot computer => stsadm -o renameserver => iisreset => fix alternate mappings –  Andrey Markeev Apr 26 '11 at 16:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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