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

    There has to be a better way

    IT Discussion
    xen xenserver recovery
    6
    24
    3.4k
    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.
    • DustinB3403D
      DustinB3403 @scottalanmiller
      last edited by

      @scottalanmiller said in There has to be a better way:

      You can mount the offlined VM's drives into a different VM. That way you can modify them while the original VM is offlined.

      How would I do this?

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

        @DustinB3403 said in There has to be a better way:

        @scottalanmiller said in There has to be a better way:

        You can mount the offlined VM's drives into a different VM. That way you can modify them while the original VM is offlined.

        How would I do this?

        You need to attach the virtual disk in the "console" (XenOrchestra or XenCenter) to the VM that you want to work from. The original VM has to be offline first (or you will force a situation like connecting one LUN to two servers at once and BOOM.)

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

          Does the VM I want to work from need to be offline?

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

            @DustinB3403 said in There has to be a better way:

            Does the VM I want to work from need to be offline?

            When attaching the disk? yes.

            thwrT DashrenderD 2 Replies Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Ok let me see if that works, thanks.

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

                Just creating a VM to test with and will update shortly.

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

                  @DustinB3403 said in There has to be a better way:

                  Just creating a VM to test with and will update shortly.

                  Okay

                  1 Reply Last reply Reply Quote 0
                  • thwrT
                    thwr @scottalanmiller
                    last edited by thwr

                    @scottalanmiller said in There has to be a better way:

                    @DustinB3403 said in There has to be a better way:

                    Does the VM I want to work from need to be offline?

                    When attaching the disk? yes.

                    At least in 99% of all cases 😉

                    But yes, what Scott told you should work out of the box. You just need another VM or something else that can read the filesystem. Depending on the disk image format, you could also use a loop-mount for example.

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

                      Would be useful to have xs drivers installed to the test system..

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

                        @DustinB3403 said in There has to be a better way:

                        Would be useful to have xs drivers installed to the test system..

                        Probably a good idea.

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

                          Yep, that should work and I don't have to fuss with trying to pass USB through the host to a VM.

                          1 Reply Last reply Reply Quote -1
                          • StrongBadS
                            StrongBad
                            last edited by

                            It's really just like pulling the hard drive out of one desktop and plugging it into another.

                            1 Reply Last reply Reply Quote 2
                            • DashrenderD
                              Dashrender @scottalanmiller
                              last edited by

                              @scottalanmiller said in There has to be a better way:

                              @DustinB3403 said in There has to be a better way:

                              Does the VM I want to work from need to be offline?

                              When attaching the disk? yes.

                              why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                              coliverC 1 Reply Last reply Reply Quote 0
                              • coliverC
                                coliver @Dashrender
                                last edited by

                                @Dashrender said in There has to be a better way:

                                @scottalanmiller said in There has to be a better way:

                                @DustinB3403 said in There has to be a better way:

                                Does the VM I want to work from need to be offline?

                                When attaching the disk? yes.

                                why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403 @coliver
                                  last edited by

                                  @coliver said in There has to be a better way:

                                  @Dashrender said in There has to be a better way:

                                  @scottalanmiller said in There has to be a better way:

                                  @DustinB3403 said in There has to be a better way:

                                  Does the VM I want to work from need to be offline?

                                  When attaching the disk? yes.

                                  why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                  You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                  You can't however do this if the source drive is running on a separate VM. (That VM must be powered off).

                                  Which is what I did in order to do this.

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

                                    @coliver said in There has to be a better way:

                                    @Dashrender said in There has to be a better way:

                                    @scottalanmiller said in There has to be a better way:

                                    @DustinB3403 said in There has to be a better way:

                                    Does the VM I want to work from need to be offline?

                                    When attaching the disk? yes.

                                    why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                    You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                    Linux can do that, just needs a SCSI Scan run.

                                    1 Reply Last reply Reply Quote 2
                                    • coliverC
                                      coliver @DustinB3403
                                      last edited by

                                      @DustinB3403 said in There has to be a better way:

                                      @coliver said in There has to be a better way:

                                      @Dashrender said in There has to be a better way:

                                      @scottalanmiller said in There has to be a better way:

                                      @DustinB3403 said in There has to be a better way:

                                      Does the VM I want to work from need to be offline?

                                      When attaching the disk? yes.

                                      why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                      You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                      You can't however do this if the source drive is running on a separate VM. (That VM must be powered off).

                                      Which is what I did in order to do this.

                                      Right, unless you unmount the source drive first. I don't even think VMWare can reliably do this.

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

                                        @coliver said in There has to be a better way:

                                        @DustinB3403 said in There has to be a better way:

                                        @coliver said in There has to be a better way:

                                        @Dashrender said in There has to be a better way:

                                        @scottalanmiller said in There has to be a better way:

                                        @DustinB3403 said in There has to be a better way:

                                        Does the VM I want to work from need to be offline?

                                        When attaching the disk? yes.

                                        why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                        You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                        You can't however do this if the source drive is running on a separate VM. (That VM must be powered off).

                                        Which is what I did in order to do this.

                                        Right, unless you unmount the source drive first. I don't even think VMWare can reliably do this.

                                        VMware can do it reliably on its side, but it would still hose the data inside the drive.

                                        DashrenderD coliverC 2 Replies Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender @DustinB3403
                                          last edited by

                                          @DustinB3403 said in There has to be a better way:

                                          @coliver said in There has to be a better way:

                                          @Dashrender said in There has to be a better way:

                                          @scottalanmiller said in There has to be a better way:

                                          @DustinB3403 said in There has to be a better way:

                                          Does the VM I want to work from need to be offline?

                                          When attaching the disk? yes.

                                          why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                          You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                          You can't however do this if the source drive is running on a separate VM. (That VM must be powered off).

                                          Which is what I did in order to do this.

                                          Sure, as scott said before, I totally understand why you don't mount a VHD to two running VMs - boom!

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

                                            @scottalanmiller said in There has to be a better way:

                                            @coliver said in There has to be a better way:

                                            @DustinB3403 said in There has to be a better way:

                                            @coliver said in There has to be a better way:

                                            @Dashrender said in There has to be a better way:

                                            @scottalanmiller said in There has to be a better way:

                                            @DustinB3403 said in There has to be a better way:

                                            Does the VM I want to work from need to be offline?

                                            When attaching the disk? yes.

                                            why? You can add new disks to VMWare while a VM is running without any issues. I'm pretty sure you can attach a pre-existing partition as well.

                                            You can do the same in XenServer. At least with Windows as the guest. I haven't tried it with Linux.

                                            You can't however do this if the source drive is running on a separate VM. (That VM must be powered off).

                                            Which is what I did in order to do this.

                                            Right, unless you unmount the source drive first. I don't even think VMWare can reliably do this.

                                            VMware can do it reliably on its side, but it would still hose the data inside the drive.

                                            Right, unless it's a cluster aware OS and Filesystem.

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