Unable to mount NFS Remote for backups while storage and ISO NFS SR's work perfectly
-
Hello Friends,
I am testing a fresh install of xcpng 8.3 with community XO

while I am able to mount both ISO NFS SR and VDI NFS SR from both Synology and Qnap NAS boxes, on the same subnet, I am unable to mount any NFS remotes for backups from the same two NAS boxes.
The error log is:
remote.test
{
"id": "d43307ac-afc3-42cb-89af-3892f1fe592c"
}
{
"shortMessage": "Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c",
"command": "mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c",
"escapedCommand": "mount -o "" -t nfs "192.168.221.20:/LAB-NFS" "/run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c"",
"exitCode": 32,
"stdout": "",
"stderr": "mount.nfs: failed to prepare mount: Operation not permitted
",
"failed": true,
"timedOut": false,
"isCanceled": false,
"killed": false,
"message": "Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c
mount.nfs: failed to prepare mount: Operation not permitted
",
"name": "Error",
"stack": "Error: Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c
mount.nfs: failed to prepare mount: Operation not permittedat makeError (/etc/xen-orchestra/node_modules/execa/lib/error.js:60:11) at handlePromise (/etc/xen-orchestra/node_modules/execa/index.js:118:26) at NfsHandler._sync (/etc/xen-orchestra/@xen-orchestra/fs/src/_mount.js:68:7)"}
Thinking of permissions issue, I went ahead and tried to mount the same qnap nfs folder with the same permissions settings I am using for the XO remote onto an UnRaid server, which worked on the first try, leading me to believe I'm missing something on xcp or XO end.
Any ideas to point me to the correct direction would be appreciated.
FYI I used web gui for everything. -
@Bub indeed, permissions issues.
What IP do you authorize for your NFS export ?
remember, SR and ISOsr are accessed by the XCP host IP...
but, NFS Remote is accessed by XO/XOA IP address !
-
Hi,
Make sure that the XOA VM has been granted the rights to mount the NFS share and create subdirectories.
Dan
-
This post is deleted! -
@Pilow said in Unable to mount NFS Remote for backups while storage and ISO NFS SR's work perfectly:
It was. Both the host ip and the xoa.
Thanks for the super fast replies guys!
I got an idea, I'm going to try and investigate, the XOA is running in a container. I'm going to test if the passthrough of the container manager network may be blocking the NFS.