Cloning the VM
Copy existing SharePoint VM. In this case I have VS2010 SharePoint Foundation dev VM. I wanted to clone it and upgrade it to Enterprise, to have both VMs in my kit. This was a standalone farm installation with a full SQL 2k8 install.
- Rename the SharePoint server.
Rename-SPServer -Identity "wfb1" -Name "WFE1"- This example changes the name of the SharePoint server wfb1 to WFE1.
- Rename the SQL Server.
- Get current server name.
SELECT @@SERVERNAME AS 'Current_Name'
GO
-
Execute the following, substituting your values.
Use Master
GO
sp_dropserver "Current_Name"
GO
sp_addserver "New_Name", local
GO
- Rename the server
- Set up Sql Alias for SharePoint
- Throw in some reboots and maybe mix up the order of operations if things don’t go as planned. It is a VM so if things get borked, start over. It is important to rename SharePoint before renaming SQL. I did it like: Rename server, then rename sharepoint, then rename sql. That was bad until I figured out SQL Alias was the only was to repoint the configuration db. Then a couple of reboots or so and good. Ah well. Good luck!