P2V using Hyper-V 2012

Here is how I started doing P2V on a Hyper-V 2012.

I have SCVMM 2012. I want to do a V2V from a Citrix XenServer VM to a Hyper-V VM. The way to go about it is to do a P2V. The official technet documentation says run System Center Virtual Machine Manager Configuration Analyzer (VMMCA) first.

Installing and running SC VMMCA

So I installed System Center Virtual Machine Manager Configuration Analyzer on my Windows 7 workstation. It needed a couple of prerequisites like MBCA 2.0. Actually VMMCA is run from inside MBCA.

When I run it I get this error message:

vmm2

Troubleshooting:

  1. Test ping: yes I can ping the VM
  2. Check Windows Remote Management (WS-Management) aka WinRM server is running on the VM – yes it is running.
  3. Check firewall. Firewall is on but there is no exception for WinRM. Lets add it:
  4. vmm3
  5. After that I run VMMCA again. I got the same error as before Sad smile
  6. Lets see if turning the firewall off will help….it did  not help….but the err error message changed slightly:
  7. vmm4
  8. so I ran the command on an elevated prompt on the VM:
  9. winrm quickconfig
  10. It prompted me with this message and I let it configure WinRM:
  11. vmm5
  12. Lets scan again! This time it did connect but I got another error message:
  13. vmm6
  14. I googled this but could not find an answer which works. At this point I am ready to give up on this whole remotely running  VMMCA thing and want to try running VMMCA on the VM itself.
  15. So I installed MBCA and VMMCA on the VM itself and by hit and trial found out what are the options you need to choose to make it scan properly. Here are the two screens:
  16. vmm7
  17. Select the dropdown SC VMMCA and then click on start scan. It will come to the “Enter parameters” page where you select these checkboxes:
  18. vmm8
  19. You can leave the individual server blank to have it scan the local machine.
  20. Note: before the scan will run successfully, you need to set the PowerShell policy to RemoteSigned by using this command on an elevated PS window:  Set-ExecutionPolicy RemoteSigned
  21. The click the “start Scan” link in MBCA
  22. The scan finished successfully!
  23. The result gave me two warnings, telling me that two hotfixes were not found on the VM. Impact: VMM may not function correctly or at all without this update or hotfix.
  24. I tried downloading the 2 hotfixes but I was not successful. The Microsoft download server kept on giving me errors (some internal server error).

So I gave up on the hotfixes and tried running the P2V from VMM.

P2V using VMM

I followed the instructions on technet here

It was pretty straightforward. The P2V is still running. I will report  back later.

Getting Started with SCVMM 2012

After I installed SCVMM I wanted to get up and running quickly. At that time I wrote this document. However after using VMM for a few months I fouund what I did wrong. I re-installed VMM and now I have updated this document to reflect the changed.

Here are the updated steps:

  1. Start SC VMM manager on the VMM server (At least once start the VMM manager on the VMM server, later on you can install and use it from your own Workstation.)
  2. Authenticate to the localhost using the admin account (I was already logged on using an admin account so I chose the option – “Use current…)
  3. On the lower left corner, click on “Settings”.
  4. On the left side, expand “security” and click on the “Run As Accounts”.
  5. On the ribbon at the top, click on “Create Run As Account” button.
  6. Create a new account called “Host Admin” and give it the credentials of the AD account we created earlier – “SCVMM Admin”. More info about why this account is needed is here.
  7. Now that you  have a run as account in VMM, you will use it to add Hyper-V hosts to VMM.
  8. Click on “Fabric” on the lower left side.
  9. Click on the big green plus sign called “Add Resources” on the top left corner and choose “Hyper-V hosts and Clusters”.

Note: The next screen has some very interesting options. The last one is very, very interesting:

VMM1

  1. At this point, I will just choose the first option and go with it.
  2. On the next page, choose “Use and existing Run As Account” and click “Browse”.
  3. Choose the “Host admin” account and click OK
  4. On the next page I specified an AD query to search for all my hyper-v hosts. I just used a wildcard because all my hyper-v hosts are named similarly.
  5. It found all my 4 Hyper-V hosts including the Hyper-V cluster I had setup separately.
  6. I selected all hosts and the cluster and clicked “next”.
  7. On the next screen I checked the checkbox “Reassociate this host…” because I  had been using these hosts with another VMM server earlier.
  8. I added two VM placement paths
    1. C:\ClusterStorage\Volume2 (for a CSV on SAN)
    2. D:\Hyper-V (for local disk array on the HV nodes)
  9. On the next screen I turned on the incoming/outgoing live migrations.
  10. Since my servers are already configured to  use Kerberos, I checked that radio button.
  11. I set the Cluster heartbeat network to be used for live migrations – 10.10.10.0/24
  12. Click next and it shows a confirmation page of what it is going to do next.
  13. Click finish and it shows the jobs page.
  14. I got a few failures…all of them were saying that the hosts have an unsupported version of VMM agent. I uninstalled the old VMM agent software on the host servers and tried the operation again.
  15. I went to “VMs and Services” on the left side and noticed that my cluster was there but the nodes under were in a pending state. I removed the cluster from VMM and tried re-adding the hosts and clusters and described above.
  16. At this point the add succeeded.
  17. Sweet!

Notes from the install I did earlier:

  1. It takes a minute or two for the jobs to finish. I think it installs an agent on each hyper-v host.
  2. I got a warning for each machine, telling me that a restart is required because “the server needs to complete claiming of multi-path I/O devices”. I did that later.
  3. I closed the jobs window and now I see all three hyper-v hosts and my VMM server in the managed computers list.
  4. Click on “VMs and Services” and I see all my Hosts and the VMs running on those hosts.
  5. The console provides a lot of options for managing these VMs and hosts from within one application. Sweet!

More, detailed information on Administering SCVMM 2012 is here.