Jump to content

Recommended Posts

Posted

Hi All

 

Please could anyone help one a conversion from gen 1 to gen 2 windows 10 VM

 

I have tried to use the following below and i get a time out error, yes all unrestricted policies have been removed to i can run the powershell script.

 

Do i need to edit this powershell script or should it just run on C drive. I have put in on the command line where it says VName next to it the name of the hyperv name but still no luck.

 

https://code.msdn.microsoft.com/windowsdesktop/Convert-VMGeneration-81ddafa2

 

I hope someone knows a way of doing it.

 

Thanks

Posted

I have used this script before with success. It was a Server 2008 R2 VM on ESXi that was Disk2VHD'd across as gen 1 Hyper-V, in-place upgraded to 2012 R2, then converted to gen 2. It's certainly been through some permutations!

 

The script should just work as-is IIRC. Make sure it's running locally on that host, is run as admin or a privileged enough user, so usage is

 

.\Convert-VMGeneration.ps1 -VMName "Convert me" -Path D:\Storage\Volume1

 

changing "Convert me" and the destination storage path (which needs lots of free space to re-create the disks).

Posted
The error doesn't have enough info around it for it to be helpful. You're going to have to look at the environment you're converting in and your VM itself (e.g. is the Z: drive used? Can I make other queries to Hyper-V through Powershell successfully? Do I have sufficient system resources?)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...