How-To Import existing Hyper-v virtual machines into VMM

I know of this way:
$VMHost = Get-SCVMHost -ComputerName "HyperVHostName"
Register-SCVirtualMachine -VMHost $VMHost -Path "C:\ClusterStorage\MyVM"

Open in new window


Are there others?
What if the VM being imported is in a paused state? How can I unpause it if it is not attached to eny environment anymore?
LVL 2
itniflAsked:
Who is Participating?
 
itniflAuthor Commented:
Hello Shaik, and thank you for your comment. The first link addresses the topic of adding existing Hyper-v hosts to a VMM installation. This is not my issue.

The second link solves the aspect of importing an existing virtual machine into an vmm environment by adding it to the Library and then refreshing the Library in an attempt that the virtual machine should be automatically deployed by this. I have earlier tried this and this Library refresh trick did not work in my environment using SCVMM 2012 R2. I then made a template of the virtual machine I wanted to import from what I had copied into the Library, and deployed it. I also tried creating a new virtual machine identical to the original one that I was trying to import and then I added the existing disks to it from the machine I was trying to import. Both these workarounds work, but they are cumbersome.

In VMWare, you can just browse to the vmx file of a vmware virtual machine on the datastore, right click it, and choose to register it in the VMWare environment. Thats the easy way it should be done!
0
 
itniflAuthor Commented:
Seems that there is no way to do this the really easy way.
0
 
Joshua7Commented:
Here's a silly consideration:

What happens when you import the existing VM into Hyper-V on the host, and then refresh the library ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.