ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Convert Hyper-V Gen1 to Gen2... is it easy?

    IT Discussion
    5
    15
    3.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LAH3385
      last edited by

      We have some virtual machines that were created using Gen1. We want to get those VM to Gen2 instead. The reason behind the change is IDE/SCSI resizing VM disk space. I read Microsoft's technet and learn that Gen1 utilize IDE, and is not capable of Shrinking the disk space. Only SCSI offer shrinking mechanism.

      I found some powershell commands to do just that... but there are reports of errors as well. So I want to know if there is an easy way to convert Gen1 to Gen2... or better yet is there a way for Gen1 to shrink its size?

      Ultimately we can create new VM and reconfigure everything from scratch (File Server).. only going to take us half a day if there is no easy way for conversion.

      JaredBuschJ 1 Reply Last reply Reply Quote 2
      • L
        LAH3385
        last edited by

        For additional information: we have 1 VM running 2008 R2 and 2 VMs running 2012 R2.

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @LAH3385
          last edited by

          @LAH3385 said:

          We have some virtual machines that were created using Gen1. We want to get those VM to Gen2 instead. The reason behind the change is IDE/SCSI resizing VM disk space. I read Microsoft's technet and learn that Gen1 utilize IDE, and is not capable of Shrinking the disk space. Only SCSI offer shrinking mechanism.

          I found some powershell commands to do just that... but there are reports of errors as well. So I want to know if there is an easy way to convert Gen1 to Gen2... or better yet is there a way for Gen1 to shrink its size?

          Ultimately we can create new VM and reconfigure everything from scratch (File Server).. only going to take us half a day if there is no easy way for conversion.

          There is no support method to convert an existing Hyper-V VM from Type 1 to Type 2 directly. I have seen some of the same stuff and I would not waste the time trying it.

          Remember that Server 2012 or newer is required for a Type 2. Server 2008 R2 will not boot in a Type 2 VM.

          1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403
            last edited by

            There is a tool to do just this..... https://code.msdn.microsoft.com/windowsdesktop/Convert-VMGeneration-81ddafa2

            JaredBuschJ 1 Reply Last reply Reply Quote 2
            • JaredBuschJ
              JaredBusch @DustinB3403
              last edited by

              @DustinB3403 said:

              There is a tool to do just this..... https://code.msdn.microsoft.com/windowsdesktop/Convert-VMGeneration-81ddafa2

              That is not converting. That creates a new VM. It is 100% not a conversion.

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                Not to be rude @JaredBusch but did you read it?

                JaredBuschJ L 2 Replies Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @DustinB3403
                  last edited by

                  @DustinB3403 said:

                  Not to be rude @JaredBusch but did you read it?

                  Yes, you on the other hand, apparently did not.

                  0_1460391486536_upload-f5643c0c-efba-4d7e-aa4d-253b6857007f

                  1 Reply Last reply Reply Quote 0
                  • L
                    LAH3385 @DustinB3403
                    last edited by LAH3385

                    @DustinB3403 said:

                    Not to be rude @JaredBusch but did you read it?

                    Judging from the screenshot on the post I have to say it doesn't not look like conversion, but cloning instead
                    0_1460391572006_upload-0d2396d3-e8c4-47da-8037-9e867ba377d7

                    1 Reply Last reply Reply Quote 1
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      Semantics aside, cloning tool or "creating a new boot disk" you still get the same end result.

                      A version 2 VM.

                      JaredBuschJ 1 Reply Last reply Reply Quote 1
                      • JaredBuschJ
                        JaredBusch @DustinB3403
                        last edited by gjacobse

                        @DustinB3403 said:

                        Semantics aside, cloning tool or "creating a new boot disk" you still get the same end result.

                        A version 2 VM.

                        Glossing over shit is how people f[moderated] shit up.

                        If that is the only end result, then yes.
                        But the specific question was asked to "convert"

                        Cloning means you are duplicating space used. Converting will generally not.

                        1 Reply Last reply Reply Quote 0
                        • L
                          LAH3385
                          last edited by

                          Let's not get too technical.. My real question is the ability to expand/shrink on the fly/VM stay online. I know for a fact that Gen1 cannot do that.. thus the question about conversion.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @LAH3385
                            last edited by

                            @LAH3385 said:

                            Let's not get too technical.. My real question is the ability to expand/shrink on the fly/VM stay online. I know for a fact that Gen1 cannot do that.. thus the question about conversion.

                            But do you have teh space for two copies during the operation? That's a key piece of why it is important.

                            L 1 Reply Last reply Reply Quote 1
                            • L
                              LAH3385 @scottalanmiller
                              last edited by LAH3385

                              @scottalanmiller said:

                              @LAH3385 said:

                              Let's not get too technical.. My real question is the ability to expand/shrink on the fly/VM stay online. I know for a fact that Gen1 cannot do that.. thus the question about conversion.

                              But do you have teh space for two copies during the operation? That's a key piece of why it is important.

                              Good question... we are 60% of the disk at the moment... so that would be no. The space inside VM it self is 50% full.. Say 2TB disk space on hypervisor. the VM is uing 1.2TB. But the OS/Files is using only 600GB out of 1.2TB.
                              If the cloning means 100% identical then I will not have enough space. But if there is a way to shrink while cloning then it is a viable option.

                              scottalanmillerS DashrenderD 2 Replies Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @LAH3385
                                last edited by

                                @LAH3385 said:

                                @scottalanmiller said:

                                @LAH3385 said:

                                Let's not get too technical.. My real question is the ability to expand/shrink on the fly/VM stay online. I know for a fact that Gen1 cannot do that.. thus the question about conversion.

                                But do you have teh space for two copies during the operation? That's a key piece of why it is important.

                                Good question... we are 60% of the disk at the moment... so that would be no.

                                See..... these things aren't details, they are super important.

                                1 Reply Last reply Reply Quote 0
                                • DashrenderD
                                  Dashrender @LAH3385
                                  last edited by

                                  @LAH3385 said:

                                  @scottalanmiller said:

                                  @LAH3385 said:

                                  Let's not get too technical.. My real question is the ability to expand/shrink on the fly/VM stay online. I know for a fact that Gen1 cannot do that.. thus the question about conversion.

                                  But do you have teh space for two copies during the operation? That's a key piece of why it is important.

                                  Good question... we are 60% of the disk at the moment... so that would be no. The space inside VM it self is 50% full.. Say 2TB disk space on hypervisor. the VM is uing 1.2TB. But the OS/Files is using only 600GB out of 1.2TB.
                                  If the cloning means 100% identical then I will not have enough space. But if there is a way to shrink while cloning then it is a viable option.

                                  This also means you're using thick provisioning.

                                  Perhaps you can copy the current VM disk to another VM disk, but one that is thin provisioned. Then it will only take up 600 GB on the disk, leaving you with 2 GB free space until you delete the old VM disk.

                                  1 Reply Last reply Reply Quote 0
                                  • 1 / 1
                                  • First post
                                    Last post