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

    How Do You Mount a VHDX in CentOS 7

    IT Discussion
    centos centos 7 linux guestfish
    6
    20
    3.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.
    • DustinB3403D
      DustinB3403
      last edited by

      Here is a bit more detail.

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

        I'm a proxy, but I passed it on and will provide feedback when I hear more.

        DustinB3403D 1 Reply Last reply Reply Quote 3
        • DustinB3403D
          DustinB3403 @scottalanmiller
          last edited by DustinB3403

          @scottalanmiller cool.

          I'm surprised someone is wanting to mount directly inside of CentOS. Not that it is weird, just wondering what the setup here is.

          1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce
            last edited by

            What is "loopback mount"?

            If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS? Unless it's a physical machine.

            You could also mount a .VHDX file as an iSCSI device if there's an available Windows Server to install the iSCSI target role on I believe. Could present the .VHDX that way. I haven't tried it, but I think it's definitely worth a go.

            Of course, this all depends on what "loopback mount" means. I'm just assuming mounting a .vhdx on CentOS.

            wirestyle22W scottalanmillerS 3 Replies Last reply Reply Quote 1
            • wirestyle22W
              wirestyle22 @Obsolesce
              last edited by

              @Tim_G said in How Do You Mount a VHDX in CentOS 7:

              What is "loopback mount"?

              I got about this far in my line of questioning

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

                http://docstore.mik.ua/orelly/unix3/upt/ch44_07.htm

                1 Reply Last reply Reply Quote 2
                • scottalanmillerS
                  scottalanmiller @Obsolesce
                  last edited by

                  @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                  What is "loopback mount"?

                  It's when you have a filesystem image on a filesystem and want to mount it onto the same filesystem. Like ISO or IMG files.

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

                    @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                    If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                    Not a VM, just an image.

                    ObsolesceO 1 Reply Last reply Reply Quote 0
                    • ObsolesceO
                      Obsolesce @scottalanmiller
                      last edited by

                      @scottalanmiller said in How Do You Mount a VHDX in CentOS 7:

                      @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                      If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                      Not a VM, just an image.

                      I mean if the CentOS 7 server is a VM on Hyper-V, you could mount the .VHDX to the VM and it would be presented to CentOS as a regular drive.

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

                        @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                        @scottalanmiller said in How Do You Mount a VHDX in CentOS 7:

                        @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                        If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                        Not a VM, just an image.

                        I mean if the CentOS 7 server is a VM on Hyper-V, you could mount the .VHDX to the VM and it would be presented to CentOS as a regular drive.

                        That is a bit of an odd assumption, right?

                        ObsolesceO 1 Reply Last reply Reply Quote 1
                        • ObsolesceO
                          Obsolesce @DustinB3403
                          last edited by

                          @DustinB3403 said in How Do You Mount a VHDX in CentOS 7:

                          @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                          @scottalanmiller said in How Do You Mount a VHDX in CentOS 7:

                          @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                          If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                          Not a VM, just an image.

                          I mean if the CentOS 7 server is a VM on Hyper-V, you could mount the .VHDX to the VM and it would be presented to CentOS as a regular drive.

                          That is a bit of an odd assumption, right?

                          It is quite a reach... but there is a lack of background info. CentOS was mentioned, as well as VHDX. We know there's a CentOS server. We know Windows is somewhere, or there wouldn't be a VHDX. SAM is a proxy in this case, may have been just asked quick without he himself knowing the environment... could have been one of those "quick questions". Who knows.

                          Figured I'd throw out some kind of assumption with a possible solution if that's the case. ^_^

                          DashrenderD scottalanmillerS DustinB3403D 3 Replies Last reply Reply Quote 0
                          • DashrenderD
                            Dashrender @Obsolesce
                            last edited by

                            @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                            @DustinB3403 said in How Do You Mount a VHDX in CentOS 7:

                            @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                            @scottalanmiller said in How Do You Mount a VHDX in CentOS 7:

                            @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                            If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                            Not a VM, just an image.

                            I mean if the CentOS 7 server is a VM on Hyper-V, you could mount the .VHDX to the VM and it would be presented to CentOS as a regular drive.

                            That is a bit of an odd assumption, right?

                            It is quite a reach... but there is a lack of background info. CentOS was mentioned, as well as VHDX. We know there's a CentOS server. We know Windows is somewhere, or there wouldn't be a VHDX. SAM is a proxy in this case, may have been just asked quick without he himself knowing the environment... could have been one of those "quick questions". Who knows.

                            Figured I'd throw out some kind of assumption with a possible solution if that's the case. ^_^

                            lol, frankly I'm amazed Scott isn't the one crusifying you for making such an assumption ;).

                            I made the assumption of empathy in that SW thread, he made an assumption of laziness - clash 😛

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

                              @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                              @DustinB3403 said in How Do You Mount a VHDX in CentOS 7:

                              @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                              @scottalanmiller said in How Do You Mount a VHDX in CentOS 7:

                              @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                              If you want to mount a .VHDX file on CentOS, and it's a VM, why not attach it to the VM itself and then mount it as a volume within CentOS?

                              Not a VM, just an image.

                              I mean if the CentOS 7 server is a VM on Hyper-V, you could mount the .VHDX to the VM and it would be presented to CentOS as a regular drive.

                              That is a bit of an odd assumption, right?

                              It is quite a reach... but there is a lack of background info. CentOS was mentioned, as well as VHDX. We know there's a CentOS server. We know Windows is somewhere, or there wouldn't be a VHDX. SAM is a proxy in this case, may have been just asked quick without he himself knowing the environment... could have been one of those "quick questions". Who knows.

                              Figured I'd throw out some kind of assumption with a possible solution if that's the case. ^_^

                              I know that the VHDX was only a backup file created by Windows backup. I have no idea if there is any hypervisor involved.

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

                                @Tim_G oh I know, and don't take it the wrong way.

                                But with the information provided I thought it was a pretty straightforward question.

                                "What tool is needed to mount VHDX inside of CentOS?" is how I read it.

                                ObsolesceO 1 Reply Last reply Reply Quote 0
                                • ObsolesceO
                                  Obsolesce @DustinB3403
                                  last edited by

                                  @DustinB3403 said in How Do You Mount a VHDX in CentOS 7:

                                  @Tim_G oh I know, and don't take it the wrong way.

                                  But with the information provided I thought it was a pretty straightforward question.

                                  "What tool is needed to mount VHDX inside of CentOS?" is how I read it.

                                  I read it exactly that way too. And since there were a few leads already, I thought perhaps if those don't pan out, I'd provide a possible different approach. Even if those assumptions don't apply, it could be helpful in another aspect to someone reading the post if maybe someone is in a similar situation that actually does have Hyper-V or a way to present a VHDX as an iSCSI device.

                                  I suppose that in the future, I will stick to the questions word for word and never provide anything further than that. But then I expect that from everyone else as well.

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

                                    @Tim_G said in How Do You Mount a VHDX in CentOS 7:

                                    I suppose that in the future, I will stick to the questions word for word and never provide anything further than that. But then I expect that from everyone else as well.

                                    😄

                                    You don't need to expect it, I just thought that was a vast leap from what was asked.

                                    1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates
                                      last edited by

                                      Did you figure this out? I know it's a pain, but if you're stuck you can convert it with qemu to raw.

                                      qemu-img convert -f vhdx -O raw

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