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

    Create NFS file share on Hyper-V Server 2016

    IT Discussion
    9
    276
    23.1k
    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.
    • ObsolesceO
      Obsolesce
      last edited by Obsolesce

      I am looking for a way to host an NFS file share on a Hyper-V Server 2016 host. This functionality is not available in Hyper-V Server, and requires Windows Server.

      The hardware has Windows Server 2016 Datacenter licensing on it, so we're covered as far as licensing goes... it's just that the free Hyper-V Server 2016 does not have that functionality.

      Are there any free 3rd party solutions that would allow me to create and host an NFS share on Hyper-V Server 2016?

      Edit: ADDED DETAILS: https://mangolassi.it/post/373656

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

        Someone had an issue like this here on ML a while ago, and IIRC they simply opt'd to create a share from their desktop to use as an ISO repo.

        Not sure on your use case though.

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

          Any reason not to host it from a lean VM on top of Hyper-V?

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

            @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

            Any reason not to host it from a lean VM on top of Hyper-V?

            This would require the NFS share to live inside of a .VHDX.

            The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

            thwrT scottalanmillerS 2 Replies Last reply Reply Quote 0
            • thwrT
              thwr @Obsolesce
              last edited by

              @tim_g said in Create NFS file share on Hyper-V Server 2016:

              The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

              It could be a ultra tiny Linux VM maybe. Even a Live CD with some injected script.

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

                @tim_g said in Create NFS file share on Hyper-V Server 2016:

                @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                Any reason not to host it from a lean VM on top of Hyper-V?

                This would require the NFS share to live inside of a .VHDX.

                The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                black3dynamiteB ObsolesceO 2 Replies Last reply Reply Quote 1
                • black3dynamiteB
                  black3dynamite @scottalanmiller
                  last edited by

                  @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                  @tim_g said in Create NFS file share on Hyper-V Server 2016:

                  @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                  Any reason not to host it from a lean VM on top of Hyper-V?

                  This would require the NFS share to live inside of a .VHDX.

                  The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                  I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                  Plus you can mount the vhdx file to access the data too.

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

                    @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                    @tim_g said in Create NFS file share on Hyper-V Server 2016:

                    @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                    Any reason not to host it from a lean VM on top of Hyper-V?

                    This would require the NFS share to live inside of a .VHDX.

                    The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                    I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                    I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...

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

                      @tim_g said in Create NFS file share on Hyper-V Server 2016:

                      @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                      @tim_g said in Create NFS file share on Hyper-V Server 2016:

                      @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                      Any reason not to host it from a lean VM on top of Hyper-V?

                      This would require the NFS share to live inside of a .VHDX.

                      The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                      I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                      I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...

                      But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.

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

                        @dashrender said in Create NFS file share on Hyper-V Server 2016:

                        @tim_g said in Create NFS file share on Hyper-V Server 2016:

                        @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                        @tim_g said in Create NFS file share on Hyper-V Server 2016:

                        @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                        Any reason not to host it from a lean VM on top of Hyper-V?

                        This would require the NFS share to live inside of a .VHDX.

                        The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                        I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                        I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...

                        But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.

                        Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.

                        That VHD will take a long time to restore as it contains so much other stuff.

                        Otherwise, all data would be directly on the hardware via NFS share... if I need to restore something, I would not need to restore the ENTIRE NFS share first, as it's not all in a single VHD.

                        If I have LinuxServer1, LinuxServer2, LinuxServer3, LinuxServer4, etc all in that VHD, I would still have to restore EVERYTHIGN to be able to make the NFS share available to restore a server from.

                        DustinB3403D DashrenderD scottalanmillerS 4 Replies Last reply Reply Quote 0
                        • ObsolesceO
                          Obsolesce
                          last edited by

                          You see what I mean?

                          I don' twant to have to restore a 10TB VHD in order to restore a 5GB linux server that's in the NFS share inside that VHD.

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

                            @tim_g Why not simply have two VHD then?

                            One that the system boots off of, the other that contains the NFS share. You'd simply mount that drive to literally any other system, browse it, grab what you need all while working on restoring the primary system.

                            I think you're over complicating this. . .

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

                              @tim_g said in Create NFS file share on Hyper-V Server 2016:

                              @dashrender said in Create NFS file share on Hyper-V Server 2016:

                              @tim_g said in Create NFS file share on Hyper-V Server 2016:

                              @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                              @tim_g said in Create NFS file share on Hyper-V Server 2016:

                              @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                              Any reason not to host it from a lean VM on top of Hyper-V?

                              This would require the NFS share to live inside of a .VHDX.

                              The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                              I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                              I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...

                              But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.

                              Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.

                              That VHD will take a long time to restore as it contains so much other stuff.

                              Otherwise, all data would be directly on the hardware via NFS share... if I need to restore something, I would not need to restore the ENTIRE NFS share first, as it's not all in a single VHD.

                              If I have LinuxServer1, LinuxServer2, LinuxServer3, LinuxServer4, etc all in that VHD, I would still have to restore EVERYTHIGN to be able to make the NFS share available to restore a server from.

                              This assumes that you don't have file level restore. So you grant yourself file level restore on bare metal, but not on the VM - why? How is this an apples to apples comparison?

                              Veeam for example, does backup the whole VHD, but allows file by file recovery. So you get the best of all worlds.

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

                                Why don't you try the LiveCD idea combined with some script? A lot of distros offer custom scripts to be executed on boot with their LiveCDs.

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

                                  @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                  @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                                  @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                  @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                                  Any reason not to host it from a lean VM on top of Hyper-V?

                                  This would require the NFS share to live inside of a .VHDX.

                                  The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.

                                  I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.

                                  I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...

                                  Sort of, but not really. It's restoring one file instead of many. You don't backup the host, or you only do if you do this. So it is one restore either way.

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

                                    @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                    Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.

                                    That's really saying the same thing twice. You are restoring the one file, that's all. Yes it is large, but it is large regardless of where you put it.

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

                                      @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                      You see what I mean?

                                      I don' twant to have to restore a 10TB VHD in order to restore a 5GB linux server that's in the NFS share inside that VHD.

                                      I'm confused. How do you plan to get around this with your plan? Your plan has this issue the same as having the VM.

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

                                        @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                        That VHD will take a long time to restore as it contains so much other stuff.

                                        Sure, but if the VHD doesn't take a long time to restore, then something else will take a long time to restore. One way or another, something is going to take a long time. And the best thing to take a long time is the singular VHD is our point.

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

                                          @dustinb3403 said in Create NFS file share on Hyper-V Server 2016:

                                          @tim_g Why not simply have two VHD then?

                                          One that the system boots off of, the other that contains the NFS share. You'd simply mount that drive to literally any other system, browse it, grab what you need all while working on restoring the primary system.

                                          I think you're over complicating this. . .

                                          No, I'm not.

                                          MD1000 is attached to a Hyper-V Server 2016 host. I want to host an NFS share on the MD1000, via "HVhost/NFSshare".

                                          If I need to restore a server, I don't have to do anything at all. I just boot to the restore media on the LinuxServer, and point it to "HVhost/NFSshare". It's all there, no problem.

                                          In the other scenario, I won't be able to get at the NFS share until first restoring the VHD and the VM that can run it. So if that VHD contains a TON of other data from other servers plus older backups, it's going to take a long time to restore that VHD. Then after the VHD is restored, simply mounting the VHD on something won't allow me to remotely browse the NFS share.

                                          With a VHD file, you have to restore the whole thing to get at the NFS share inside of it. If the NFS share is on hardware, you only need to restore what you want.

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

                                            @scottalanmiller said in Create NFS file share on Hyper-V Server 2016:

                                            @tim_g said in Create NFS file share on Hyper-V Server 2016:

                                            Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.

                                            That's really saying the same thing twice. You are restoring the one file, that's all. Yes it is large, but it is large regardless of where you put it.

                                            No the VHD is like a big box. Inside that box contains another box (the NFS share).

                                            In a DR scenario, I'd have to restore the big box, just to be able to get at the box inside of it, which then contains the data I want.

                                            DashrenderD scottalanmillerS 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 13
                                            • 14
                                            • 1 / 14
                                            • First post
                                              Last post