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

    How to safely copy a Linux VM

    IT Discussion
    5
    10
    317
    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.
    • J
      Jimmy9008
      last edited by

      Hi folks,

      We have a CentOS Linux 7 VM here at work, we would like to have a copy of this running on the same network. Any issues with just copying the VHDX and adding that to a new Virtual Machine on our HyperV host?

      With our Windows Servers we run sysprep when creating copies to stop duplicate SIDs. Does anything like this need to be ran on the CentOS copy to make it safe?

      Best,
      Jim

      1 Reply Last reply Reply Quote 0
      • pchiodoP
        pchiodo
        last edited by

        You should be fine - make sure you change the host name and if it is statically assigned, you will have to give it another address.

        1 Reply Last reply Reply Quote 0
        • pchiodoP
          pchiodo
          last edited by

          And SIDs don't apply to Linux - that's a windows thing

          1 Reply Last reply Reply Quote 1
          • J
            Jimmy9008
            last edited by

            Will do, thanks for the help. Nice and easy 🙂

            pchiodoP 1 Reply Last reply Reply Quote 0
            • pchiodoP
              pchiodo @Jimmy9008
              last edited by

              @Jimmy9008 Anytime - let us know if you run into any issues

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

                To ask why aren't you using your backup solution to restore a copy of this VM to a different host?

                Not that this won't work, but it seems weird to go this route.

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jimmy9008 @DustinB3403
                  last edited by

                  @DustinB3403 said in How to safely copy a Linux VM:

                  To ask why aren't you using your backup solution to restore a copy of this VM to a different host?

                  Not that this won't work, but it seems weird to go this route.

                  We could. But we can have downtime to the VM. Why not do it like we have and just turn off, copy VHDX, create new VM, attach VHDX? Seems to have worked totally fine to me.

                  1 Reply Last reply Reply Quote 0
                  • black3dynamiteB
                    black3dynamite
                    last edited by

                    You actually need to get a new machine id for your clone VM.
                    https://www.thegeekdiary.com/centos-rhel-7-how-to-change-the-machine-id/

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Jimmy9008 @black3dynamite
                      last edited by

                      @black3dynamite said in How to safely copy a Linux VM:

                      You actually need to get a new machine id for your clone VM.
                      https://www.thegeekdiary.com/centos-rhel-7-how-to-change-the-machine-id/

                      Perfect, thanks. I have followed this process. Glad it got caught as otherwise would not have done this. Thanks for the help.

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        As with many things in Linux... the simple answer makes sense. Windows introduces all kinds of risk and complexity to keep you from simply copying a VM. Linux just keeps it simple.

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