Categories

  • All news regarding Xen and XCP-ng ecosystem

    145 Topics
    5k Posts
    gduperreyG
    We have just released security updates for xen and blktap. Full details are available on the blog: https://xcp-ng.org/blog/2026/09/08/september-2026-security-updates-1-for-xcp-ng-8-3-lts/
  • Everything related to the virtualization platform

    1k Topics
    15k Posts
    D
    I'm trying to work out why the mode on /run/sr-mount itself (the parent, not the per-SR subdirectories) is inconsistent across hosts in our estate. We monitor SR capacity with Zabbix, which runs as an unprivileged user. Where the parent is 0700 the agent can't traverse it, so the SR checks fail with: Cannot obtain filesystem information: [13] Permission denied Two hosts, both on the same XCP-ng version (8.3 LTS). The first works, the second does not. Host A, working: Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Host B, broken: Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root) Nobody has changed it by hand, and /run is tmpfs, so the directory gets recreated on every boot. FileSR.py creates each SR's own mount directory at 0700, which looks like the source of it: grep -n "makedirs\|mkdir\|chmod\|0o7\|0700\|0755" /opt/xensource/sm/FileSR.py 127: util.ioretry(lambda: os.mkdir(self.remotepath)) 178: util.ioretry(lambda: util.makedirs(self.path, mode=0o700)) 188: os.chmod(self.path, mode=0o0700) self.path is /run/sr-mount/<sr-uuid>, so 0700 on the SR's own directory is intentional. But util.makedirs is recursive and defaults to mode=0o777: grep -n "def makedirs\|chmod" /opt/xensource/sm/util.py 623:def makedirs(name, mode=0o777): 636: os.chmod(name, mode) My reading: if a local EXT SR attaches before /run/sr-mount exists, makedirs(self.path, mode=0o700) creates the parent in the same call and the parent inherits 0700. On hosts where something else creates the parent first at the default mode, whatever attaches later finds it already there and leaves it alone. What we have tried, none of it ideal. A plain chmod 755 /run/sr-mount works but doesn't survive a reboot. An ExecStartPost drop-in on xs-sm.service persists but can lose the race if an SR attaches after the service reports started. We're now testing a systemd .path unit watching /run/sr-mount that re-applies 0755 whenever it changes, which sidesteps the ordering question, but it's a workaround rather than a fix and won't survive a major version upgrade. I'm sure someone else must have come across this issue so I'm hoping there's a better fix. Sudo doesn't help. vfs.fs.size stats the path in-process, and df with no path argument still stats each filesystem, so the SR rows drop with no error for a non-root user. Questions: Is 0755 the intended mode for the parent /run/sr-mount, with the 0700 an unintended side effect of the recursive makedirs? Or is 0700 on the parent deliberate too, making the 0755 hosts the anomaly? Does anything create the parent or set its mode explicitly, or does it only ever appear as a by-product of the first SR attach? Has anyone else hit this while monitoring SR capacity with a non-root agent, and how did you handle it? Is there a supported way to have the parent set at 0755 consistently, or should this be raised as a bug against sm?
  • 3k Topics
    29k Posts
    R
    Hello, I hope this is the correct place to report this issue. Short version: When an XO-managed NFS remote became unreachable, XOA Web UI would not become operational. Once the NFS server became reachable again, the UI immediately recovered. Investigation and Findings We just updated our XOA to ver. 6.8.2, and discovered that if an NFS remote becomes unavailable, XOA Web UI does not load correctly and appears unavailable to users. This has not been an issue with previous versions. We had some network changes in our environment, and because of that the network to one of our NFS remotes broke for some time. The XOA UI would not load at all, despite being up before our network broke the connection to the NFS. Checking logs, we observed repeated warnings such as: TimeoutError: operation timed out for the remote. Additionally, XOA reported: Setting up /v5 Setting up /v6 Setting up / and: Web server listening on http://[::]:80 Web server listening on https://[::]:443 which suggests the web service itself started. Also, xoa check reported all fine. However, as long as our NFS was unreachable, no user could not access a functional Web UI, either v6 or v5. Root Cause One of the configured NFS remotes was unavailable: 172.24.44.140:/mnt/Storage01/vm-iso-store After connectivity to the NFS server (172.24.44.140) was restored, the Web UI immediately became operational again. Before connectivity was restored: df -h was hanging for an extended period. XOA Web UI was unavailable. xoa check did not identify the problem. Multiple remote timeout errors appeared in the logs. After NFS connectivity returned: df -h completed immediately. XOA Web UI became available again. No manual XO intervention was required. We expect an unavailable NFS remote (an ISO repository) should mark the remote as unavailable, and allow XO/XOA Web UI to load normally. If this is not the correct place for this type of bug report, please feel free to move it or point me to the appropriate location. I wanted to make sure the issue was reported and documented. Thanks.
  • Our hyperconverged storage solution

    51 Topics
    808 Posts
    J
    @poddingue Okay, we're back here. I was told I have a hung CIFS mount that no longer exists, so a host needs to reboot to clear it, and faulty XOSTOR resources. But I can't reboot the host until I can move VMs off. Is there any indication of how to repair the faulty XOSTOR resources so I can move the VMs and reboot the host? Thanks for taking a look.
  • 37 Topics
    136 Posts
    J
    @AtaxyaNetwork Merci pour tes recherches ! Oui "cd_label" serait cool comme ajout au plugin ce qui permet sur les distro type Fedora/Redhat de ne pas avoir de boot_command à gérer