XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NFS ISO: Cannot read property 'Export' of undefined

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    8 Posts 2 Posters 1.8k Views 2 Watching
    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.
    • N Offline
      nasheayahu
      last edited by nasheayahu

      Running the latest openSUSE Leap 15.4 as my IT Workstation to manage both my XCO-ng servers, etc,... and my NFS exports file look like this for one of the NFS ISO I'm trying to configure is:

      /home/nasheayahu/Downloads/Iso/RHEL	10.60.70.0/24(ro,root_squash,sync,no_subtree_check) 10.70.70.0/24(ro,root_squash,sync,no_subtree_check)
      

      and idmapd.conf

      Verbosity = 0
      Pipefs-Directory = /var/lib/nfs/rpc_pipefs
      Domain = kohanyim.com
      
      [Mapping]
      
      Nobody-User = nobody
      Nobody-Group = nobody
      

      is there anything else I need to check to get this working?

      1 Reply Last reply Reply Quote 0
      • N Offline
        nasheayahu
        last edited by nasheayahu

        Hang on, the recent post deals with Settings / Remotes, got off track by watching "Tutorial: Configuring Backups For XCP NG Using Xen Orchestra 2021" but, in doing so the posted change correct the initial problem, so I'm able to create a SR / {VDI, ISO} NFS. 😊

        So now dealing with the Remotes configuration, 😀 I would like to fix this so I can can configure for backups. Do I need to create a new post or can we continue from here?

        1 Reply Last reply Reply Quote 0
        • N Offline
          nasheayahu
          last edited by

          Just an update: I am able to get SMB working, but I would like to have NFS ISO as well...

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            What do you have when you do a showmount --exports <NFS SERVER IP> from your host?

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              nasheayahu @olivierlambert
              last edited by nasheayahu

              @olivierlambert said in NFS ISO: Cannot read property 'Export' of undefined:

              showmount --exports <NFS SERVER IP>

              From XCP-ng:

              clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
              

              From XCP-ng - AlmaLinux VM:

              clnt_create: RPC: Unable to receive
              

              From NFS Server on Leap 15.4:

              Export list for 10.60.70.45:
              /home/nasheayahu/Downloads/Iso/Pop!_OS              10.70.70.0/24,10.60.70.0/24
              /home/nasheayahu/Downloads/Iso/RHEL                 10.70.70.0/24,10.60.70.0/24
              /home/nasheayahu/Downloads/Iso/MX-Linux             10.70.70.0/24,10.60.70.0/24
              /home/nasheayahu/Downloads/Iso/AlmaLinux-9.0-x86_64 10.70.70.0/24,10.60.70.0/24
              
              1 Reply Last reply Reply Quote 0
              • N Offline
                nasheayahu
                last edited by nasheayahu

                Update: well I have mounts showing in XCP-ng, I needed to add rpc-bind and mountd to Leaps firewall, however I need to fix the permission because its being denied:

                remote.test
                {
                  "id": "ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce"
                }
                {
                  "shortMessage": "Command failed with exit code 32: mount -o  -t nfs 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab /run/xo-server/mounts/ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce",
                  "command": "mount -o  -t nfs 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab /run/xo-server/mounts/ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce",
                  "escapedCommand": "mount -o \"\" -t nfs \"10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab\" \"/run/xo-server/mounts/ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce\"",
                  "exitCode": 32,
                  "stdout": "",
                  "stderr": "mount.nfs: access denied by server while mounting 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab",
                  "failed": true,
                  "timedOut": false,
                  "isCanceled": false,
                  "killed": false,
                  "message": "Command failed with exit code 32: mount -o  -t nfs 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab /run/xo-server/mounts/ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce
                mount.nfs: access denied by server while mounting 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab",
                  "name": "Error",
                  "stack": "Error: Command failed with exit code 32: mount -o  -t nfs 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab /run/xo-server/mounts/ed6bc7d7-8e3f-4d01-a57e-a9865a72c8ce
                mount.nfs: access denied by server while mounting 10.60.70.45:2049:/run/media/Backup-I/XCP-ng-lab
                    at makeError (/opt/xo/xo-builds/xen-orchestra-202207160304/node_modules/execa/lib/error.js:60:11)
                    at handlePromise (/opt/xo/xo-builds/xen-orchestra-202207160304/node_modules/execa/index.js:118:26)
                    at NfsHandler._sync (/opt/xo/xo-builds/xen-orchestra-202207160304/@xen-orchestra/fs/src/_mount.js:64:7)"
                }
                

                Folder permission on Leap:

                chown -R nobody: /run/media/Backup-I/XCP-ng-lab/
                chmod -R 777 /run/media/Backup-I/XCP-ng-lab/
                
                1 Reply Last reply Reply Quote 0
                • N Offline
                  nasheayahu
                  last edited by nasheayahu

                  Hang on, the recent post deals with Settings / Remotes, got off track by watching "Tutorial: Configuring Backups For XCP NG Using Xen Orchestra 2021" but, in doing so the posted change correct the initial problem, so I'm able to create a SR / {VDI, ISO} NFS. 😊

                  So now dealing with the Remotes configuration, 😀 I would like to fix this so I can can configure for backups. Do I need to create a new post or can we continue from here?

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Let's consider this thread fixed by adding the correct NFS configuration on the server side and create a new one describing your issue.

                    N 1 Reply Last reply Reply Quote 1
                    • N Offline
                      nasheayahu @olivierlambert
                      last edited by

                      @olivierlambert said in NFS ISO: Cannot read property 'Export' of undefined:

                      Let's consider this thread fixed by adding the correct NFS configuration on the server side and create a new one describing your issue.

                      👍

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO olivierlambert marked this topic as a question on
                      • olivierlambertO olivierlambert has marked this topic as solved on
                      • N nasheayahu referenced this topic on

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post