December 3, 2024
Howtoupgradgeneration1togeneration2.png
his procedure upgrades a Windows Server 2012 R2 generation Hyper-V virtual machine to Windows Server 2019 (2022) generation 2 Hyper-V virtual machine.

This procedure upgrades a Windows Server 2012 R2 generation Hyper-V virtual machine to Windows Server 2019 (2022) generation 2 Hyper-V virtual machine.

You can use the same procedure to upgrade a Windows Server 2012 R2 generation Hyper-V virtual machine to Windows Server 2019 (2022) generation 2 Hyper-V virtual machine.

The MiniTool Partition software supports windows 10 for free, and we will use a Windows 10 Hyper-V generation 1 virtual machine and mini partition tool to help us to upgrade it.

1.Logon to the Windows Server 2012R2 virtual machine.

2.Open Programs and Features and uninstall Anti-virus and backup agent software.

012623 1754 Howtoupgrad1 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

3.Mount the Windows Server 2019 ISO image file and select setup.exe.

012623 1754 Howtoupgrad2 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

4.Click Yes on the User Account Control page.

012623 1754 Howtoupgrad3 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

5.Select Download updates, drives and optional features (recommended) on the Get updates, drives and optional features page.

6.Click Next.

012623 1754 Howtoupgrad4 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

7.Select Windows Server 2019 Standard (Desktop Experience) on the Select Image page and click Next.

Note:

The Windows Server 2019 version must be the same as Windows Server 2012 R2.

012623 1754 Howtoupgrad5 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

8.On the Applicable notices and license terms page, click Accept.

012623 1754 Howtoupgrad6 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

9.Select Keep personal files and apps on the Choose what to keep page and click Next.

012623 1754 Howtoupgrad7 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

10.Click Install on the Ready to install page.

012623 1754 Howtoupgrad8 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

11.The virtual machine will restart serval times when upgrading to Windows Server 2019.

012623 1754 Howtoupgrad9 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

12.Don’t turn off the virtual machine when it’s working on updates.

012623 1754 Howtoupgrad10 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

13.Logon to the virtual machine after upgrading is completed.

012623 1754 Howtoupgrad11 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

14.Review the server status to ensure it’s working perfectly.

15.Shut down the virtual machine.

012623 1754 Howtoupgrad12 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

16.Open the Hyper-V Manager tool, Right-click the 2012 R2 virtual machine and select Settings.

17.Expand IDE Controller 0 on the Hardware page, select the C drive hard Drive and click Remove.

012623 1754 Howtoupgrad13 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

18.If you have multiple drives, repeat the steps to remove them.

012623 1754 Howtoupgrad14 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

19.Click Apply on the Settings page.

012623 1754 Howtoupgrad15 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

20.Click OK on the Settings page.

012623 1754 Howtoupgrad16 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

21.Open the Hyper-V Manager tool and Right-click the Windows 10 generation 1 virtual machine.

22.Select IDE Controller 0 on the Hardware page.

23.Select Hard Drive in the IDE Controller session and click Add.

012623 1754 Howtoupgrad17 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

24.Click Browse in the Virtual hard disk field.

012623 1754 Howtoupgrad18 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

25.Select the unmounted Windows 2012 R2 VHDX file and click Open.

012623 1754 Howtoupgrad19 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

26.If you have multiple disks, select IDE Controller 1 or SCSI Controller (you must use the same controller type as the original one) on the Hardware page.

27.Select Hard Drive in the IDE (or SCSI) Controller session and click Add.

012623 1754 Howtoupgrad20 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

28.Click Browse in the Virtual hard disk field.

012623 1754 Howtoupgrad21 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

29.Select the unmounted Windows 2012 R2 VHDX file and click Open.

012623 1754 Howtoupgrad22 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

30.Click Apply on the Settings page.

012623 1754 Howtoupgrad23 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

31.Click OK on the Settings page.

012623 1754 Howtoupgrad24 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

32.Start the Windows 10 generation 1 virtual machine and logon to the Windows 10 virtual machine.

012623 1754 Howtoupgrad25 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

33.Open Command Prompt as administrator and type diskpart.

012623 1754 Howtoupgrad26 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

34.Type list disk to ensure the Windows 2012 R2 C drive disk number.

012623 1754 Howtoupgrad27 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

35.Type exit to exit diskpart.

012623 1754 Howtoupgrad28 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

36.Enter the command below to convert it from MBR to GPT.

mbr2gpt.exe /validate /allowFullOS /disk:1

012623 1754 Howtoupgrad29 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

37.Verify the conversion process and ensure success.

012623 1754 Howtoupgrad30 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

38.Download and install MiniTool Partition software on the Windows 10 virtual machine.

https://www.minitool.com/download-center/

012623 1754 Howtoupgrad31 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

39.Open the MiniTool Partition Wizard.

012623 1754 Howtoupgrad32 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

40.On the Partition Management page, select another 2012 R2 virtual disk (if the 2012 r2 virtual machine has multiple drives) and click Convert MBR Disk to GPT Disk.

012623 1754 Howtoupgrad33 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

41.Click Apply in the Operation Pending session.

012623 1754 Howtoupgrad34 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

42.Click Yes in the Apply Changes? Page.

012623 1754 Howtoupgrad35 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

43.Ensure applied success and click OK.

012623 1754 Howtoupgrad36 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

44.Click Yes to quit the MiniTool Partition program.

012623 1754 Howtoupgrad37 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

45.Shut down the Windows 10 generation 1 virtual machine.

012623 1754 Howtoupgrad38 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

46.Open the Hyper-V Manager tool and Right-click the Windows 10 generation 1 virtual machine.

47.Expand IDE Controller 0 on the Hardware page, select the windows 2012 R2 C drive hard Drive and click Edit.

012623 1754 Howtoupgrad39 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

48.Click Next on the Local Virtual Hard Disk page.

012623 1754 Howtoupgrad40 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

49.Select Convert on the Choose Action page and click Next.

012623 1754 Howtoupgrad41 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

50.Select VHDX on the Choose Disk Format page and click Next.

012623 1754 Howtoupgrad42 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

51.Select Dynamically expanding on the Choose Disk Type page and click Next.

012623 1754 Howtoupgrad43 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

52.On the Configure Disk page, click Browse in the name field.

012623 1754 Howtoupgrad44 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

53.Select the folder path, enter the file name in the File name field and click Save.

012623 1754 Howtoupgrad45 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

54.Click Next on the Configure Disk page.

012623 1754 Howtoupgrad46 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

55.Click Finish on the Summary page.

012623 1754 Howtoupgrad47 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

56.Expand IDE Controller 1, select another Hard Drive and click Edit in the Virtual hard disk field.

012623 1754 Howtoupgrad48 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

57.Click Next on the Locate Disk page.

012623 1754 Howtoupgrad49 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

58.Select Convert on the Choose Action page and click Next.

012623 1754 Howtoupgrad50 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

59.Select VHDX on the Choose Disk Format page and click Next.

012623 1754 Howtoupgrad51 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

60.Select Dynamically expanding on the Choose Disk Type page and click Next.

012623 1754 Howtoupgrad52 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

61.On the Configure Disk page, click Browse in the Name field.

012623 1754 Howtoupgrad53 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

62.Select the folder path, enter a file name in the File name field and click Save.

012623 1754 Howtoupgrad54 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

63.Click Next on the Configure Disk page.

012623 1754 Howtoupgrad55 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

64.Click Finish on the Summary page.

012623 1754 Howtoupgrad56 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

65.Click Apply on the Settings page.

012623 1754 Howtoupgrad57 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

66.Expand IDE Controller 0 on the Hardware page, select the windows 2012 R2 C drive hard Drive and click Remove.

012623 1754 Howtoupgrad58 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

67.Expand IDE Controller 1 on the Hardware page, select the windows 2012 R2 D drive hard Drive and click Remove.

012623 1754 Howtoupgrad59 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

68.Click Apply and click OK on the Settings page.

012623 1754 Howtoupgrad60 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

69.Open Hyper-V Manager and create a new generation 2 virtual machine.

012623 1754 Howtoupgrad61 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

70.Select Attach a virtual hard disk later on the Connect Virtual Hard Disk page.

012623 1754 Howtoupgrad62 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

71.Right-click the new virtual machine and select Settings.

72.Select SCSI Controller on the Hardware page, select the Hard Drive and click Add.

012623 1754 Howtoupgrad63 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

73.Click Browse in the virtual hard disk field.

012623 1754 Howtoupgrad64 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

74.Select the new C drive VHDX file and click Open.

012623 1754 Howtoupgrad65 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

75.Select SCSI Controller on the Hardware page, select Hard Drive and click Add.

012623 1754 Howtoupgrad66 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

76.Click Browse in the virtual hard disk field.

012623 1754 Howtoupgrad67 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

77.Select the new D drive VHDX file and click Open.

012623 1754 Howtoupgrad68 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

78.Click Apply on the Settings page.

012623 1754 Howtoupgrad69 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

79.Select Firmware on the Hardware page.

80.Select the C Hard Drive in the Boot order and click Move UP.

012623 1754 Howtoupgrad70 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

81.Ensure the C Hard Drive is on the top and click Apply.

012623 1754 Howtoupgrad71 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

82.Click OK on the Settings page.

012623 1754 Howtoupgrad72 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

83.Start the new virtual machine.

012623 1754 Howtoupgrad73 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

84.Logon to the new virtual machine to ensure everything works well.

012623 1754 Howtoupgrad74 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

85.Open the virtual machine settings and select Firmware on the Hardware page.

86.You noticed the top of the Boot order changed to File.

012623 1754 Howtoupgrad75 - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

I hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - How to upgrade Server 2012 R2 generation 1 VM to 2019 (2022) generation 2

Author: Cary Sun

Cary Sun has a wealth of knowledge and expertise in data center and deployment solutions. As a Principal Consultant, he likely works closely with clients to help them design, implement, and manage their data center infrastructure and deployment strategies.
With his background in data center solutions, Cary Sun may have experience in server and storage virtualization, network design and optimization, backup and disaster recovery planning, and security and compliance management. He holds CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1999. Cary is also a Microsoft Most Valuable Professional (MVP), Microsoft Azure MVP, Veeam Vanguard and Cisco Champion. He is a published author with several titles, including blogs on Checkyourlogs.net, and the author of many books.
Cary is a very active blogger at checkyourlogs.net and is permanently available online for questions from the community. His passion for technology is contagious, improving everyone around him at what they do.

Blog site: https://www.checkyourlogs.net
Web site: https://carysun.com
Blog site: https://gooddealmart.com
Twitter: @SifuSun
in: https://www.linkedin.com/in/sifusun/
Amazon Author: https://Amazon.com/author/carysun