To migrate the virtual machine and SQL server to a different datastore, use one of these methods:
Note: The ESX\ESXi host must be able to see the source and target datastores.
- If available, use Storage vMotion to migrate the virtual machines vmdk files to a new datastore.
- Manually move the files of vCenter Server and the SQL server virtual machines.
To manually move the files of vCenter Server and the SQL server virtual machines:
- Close all VMware vSphere Client connections to vCenter Server.
- Connect vSphere Client directly to the ESXi\ESX host where vCenter Server and SQL server virtual machines are running.
- Shutdown the vCenter Server virtual machine.
- Shutdown the SQL server virtual machine.
- Right-click the vCenter Server and SQL server virtual machines in the inventory and choose Remove from Inventory.
- Using Datastore browser, create the destination folders, right-click the virtual machine files, and copy them.
Note: Alternatively, you can also run this command to clone the vmdk files:
vmkfstools -i source disk cloned disk
- In the vSphere Client, browse the new datastore and add the copied virtual machines to inventory.
To add the copied virtual machines: - Locate the .vmx file.
- Right-click and choose Add to Inventory.
- In the vSphere Client, start the SQL server virtual machine and verify that SQL server is up and running.
- In the vSphere client, start the vCenter Server virtual machine.
- Close all vSphere Client connections to the host.
- Open a vSphere Client connection to vCenter Server.
- Remove any orphaned virtual machines from the Inventory.