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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hyper-V

From novice to tech pro — start learning today.