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

    How-To clone a Xen USB on Windows

    IT Discussion
    how to xen clone usb cloning bootable xenserver
    9
    33
    6.8k
    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.
    • D
      DustinB3403
      last edited by DustinB3403

      In this How-To I'll show you how to clone your bootable Xen USB.

      What's required:

      • USB of equal or greater capacity than your existing Bootable USB
      • imageUSB
      1. Shutdown your VM's and Xen installation.

      2. Remove your bootable USB

      3. Download imageUSB.

      4. Connect the bootable USB to your Windows System

      5. Do not format the drive! Click Cancel
        0_1458330007385_explorer_2016-03-18_15-39-41.png

      6. Launch imageUSB
        0_1458330058289_imageUSB_2016-03-18_15-40-45.png

        • Select "Create image from USB drive"
        • Click Browse, and choose location / file name of the image as "image.bin"
      7. Click "Create" and let it complete.

      8. Eject this disk; Properly!

      9. Plug in the second USB drive

      10. In imageUSB select "Write image to USB drive"

      11. Browse for the image file you created.

      12. Click "Write" and let it complete.

      13. Test the new USB and once it works put it into your D.R. Plans.

      1 Reply Last reply Reply Quote 2
      • D
        Dashrender
        last edited by

        I'm wondering, if your server supports two internal USB ports (or willing to use an external one) I wonder if you can dd a running disk to an image, then dd it to the other disk?

        T 1 Reply Last reply Reply Quote 1
        • T
          travisdh1 @Dashrender
          last edited by

          @Dashrender said in How-To clone a Xen USB on Windows:

          I'm wondering, if your server supports two internal USB ports (or willing to use an external one) I wonder if you can dd a running disk to an image, then dd it to the other disk?

          XenServer 6.5 is using LVM for the root file system, so no need to do something so gouch as using dd to image drives. Create a physical volume on the backup drive, add the new PV to the system volume group, create a mirror image by making a new snapshot of the system logical volume on the backup PV. Remove the backup PV from the VG. Remove backup USB. Verify it boots, and stash it some where.

          D S 2 Replies Last reply Reply Quote 2
          • D
            Dashrender @travisdh1
            last edited by

            @travisdh1 said in How-To clone a Xen USB on Windows:

            @Dashrender said in How-To clone a Xen USB on Windows:

            I'm wondering, if your server supports two internal USB ports (or willing to use an external one) I wonder if you can dd a running disk to an image, then dd it to the other disk?

            XenServer 6.5 is using LVM for the root file system, so no need to do something so gouch as using dd to image drives. Create a physical volume on the backup drive, add the new PV to the system volume group, create a mirror image by making a new snapshot of the system logical volume on the backup PV. Remove the backup PV from the VG. Remove backup USB. Verify it boots, and stash it some where.

            wow, that made my head spin.

            B 1 Reply Last reply Reply Quote 0
            • N
              ntoxicator
              last edited by

              What about from an SD card? Similar process I presume?

              S 1 Reply Last reply Reply Quote 0
              • S
                scottalanmiller @ntoxicator
                last edited by

                @ntoxicator said in How-To clone a Xen USB on Windows:

                What about from an SD card? Similar process I presume?

                SD cards are actually USB thumb drives. Only difference is where the controller is located. The USB drive has a tiny controller built in. The SD card has the USB controller portion hard wired to the mobo and you only plug and unplug the memory chip portion. They are actually the same devices under the hood.

                1 Reply Last reply Reply Quote 1
                • B
                  BRRABill @Dashrender
                  last edited by

                  @Dashrender said

                  wow, that made my head spin.

                  Me, too.

                  I'm waiting for sommeone to dumb that down for a rook for when I need it, shortly.

                  1 Reply Last reply Reply Quote 1
                  • S
                    stacksofplates @travisdh1
                    last edited by

                    @travisdh1 said in How-To clone a Xen USB on Windows:

                    @Dashrender said in How-To clone a Xen USB on Windows:

                    I'm wondering, if your server supports two internal USB ports (or willing to use an external one) I wonder if you can dd a running disk to an image, then dd it to the other disk?

                    XenServer 6.5 is using LVM for the root file system, so no need to do something so gouch as using dd to image drives. Create a physical volume on the backup drive, add the new PV to the system volume group, create a mirror image by making a new snapshot of the system logical volume on the backup PV. Remove the backup PV from the VG. Remove backup USB. Verify it boots, and stash it some where.

                    Will it boot though? I didn't think the boot partition could use LVM?

                    Maybe it's something else. I know there is some limitation for /boot.

                    1 Reply Last reply Reply Quote 0
                    • R
                      Romo
                      last edited by

                      @johnhooks Grub2 can read files from LVM, so it could boot without a problem.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        stacksofplates @Romo
                        last edited by stacksofplates

                        @Romo said in How-To clone a Xen USB on Windows:

                        @johnhooks Grub2 can read files from LVM, so it could boot without a problem.

                        Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          travisdh1 @stacksofplates
                          last edited by

                          @johnhooks said in How-To clone a Xen USB on Windows:

                          @Romo said in How-To clone a Xen USB on Windows:

                          @johnhooks Grub2 can read files from LVM, so it could boot without a problem.

                          Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.

                          After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.

                          Google doesn't find any LVM how to things on mangolassi yet. Guess someone should get around to that.

                          S S 2 Replies Last reply Reply Quote 1
                          • S
                            stacksofplates @travisdh1
                            last edited by

                            @travisdh1 said in How-To clone a Xen USB on Windows:

                            @johnhooks said in How-To clone a Xen USB on Windows:

                            @Romo said in How-To clone a Xen USB on Windows:

                            @johnhooks Grub2 can read files from LVM, so it could boot without a problem.

                            Does XenServer support grub2? I know even in 7 they still set it up as a separate partition.

                            After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.

                            Google doesn't find any LVM how to things on mangolassi yet. Guess someone should get around to that.

                            It might be a CentOS 6 limitation, I'll have to look at a RHEL system when I get to my desk.

                            1 Reply Last reply Reply Quote 0
                            • B
                              BRRABill
                              last edited by

                              Did anyone ever figure out if you could do this with dual USB slots?

                              I was trying to think of a way to do this from home via iDRAC as opposed to being in the office.

                              I guess I could leave the "blank" USB in the other slot, then boot to a Live Windows CD, do the clone, then reboot the server.

                              S 1 Reply Last reply Reply Quote 0
                              • B
                                BRRABill
                                last edited by

                                Was my post so laziness prone it didn't even deserve a response? LOL.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  scottalanmiller @BRRABill
                                  last edited by

                                  @BRRABill said in How-To clone a Xen USB on Windows:

                                  Was my post so laziness prone it didn't even deserve a response? LOL.

                                  Likely.

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    BRRABill @scottalanmiller
                                    last edited by

                                    @scottalanmiller said

                                    Likely.

                                    I mean that's a thing, right?

                                    What's the point of iDRAC if I have to come into the office?

                                    Though I know a lot of people can't work from home, so we'll just say this is all theoretical.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      scottalanmiller @travisdh1
                                      last edited by

                                      @travisdh1 said in How-To clone a Xen USB on Windows:

                                      After actually looking at my server yesterday, it doesn't look like XenServer puts itself on an LVM partition. wth man, makes no sense. Even ProxMox got that part right.

                                      And uses EXT4 and VHD!!!!

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        scottalanmiller @BRRABill
                                        last edited by

                                        @BRRABill said in How-To clone a Xen USB on Windows:

                                        Did anyone ever figure out if you could do this with dual USB slots?

                                        I was trying to think of a way to do this from home via iDRAC as opposed to being in the office.

                                        I guess I could leave the "blank" USB in the other slot, then boot to a Live Windows CD, do the clone, then reboot the server.

                                        Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          BRRABill @scottalanmiller
                                          last edited by

                                          @scottalanmiller said

                                          Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.

                                          Though I am assuming a "Windows Live CD" is probably against all sorts of licensing rules.

                                          S T 2 Replies Last reply Reply Quote 0
                                          • S
                                            scottalanmiller @BRRABill
                                            last edited by

                                            @BRRABill said in How-To clone a Xen USB on Windows:

                                            @scottalanmiller said

                                            Yes, that should work. iDRAC with the full license should let you do anything that you could do with the keyboard and monitor.

                                            Though I am assuming a "Windows Live CD" is probably against all sorts of licensing rules.

                                            Correct.

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