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
    nathanael-hN
    Hello there, Thanks a lot for raising the question and offering ideas to move forward @caps ! I would like to say that I really like the AI crafted screenshot provided 🤩 But, to be clear, the status as of today regarding Docker or other containers integration in XO/XCP-ng is that there is an item in the DevOps Tools team roadmap. The item is just to look and define what could be done (example update xscontainer, do something totally new, ...). Unfortunately this spike has a low priority and is not yet scheduled. That being said, there is an active project, which is close to what you're asking. It's about a better integration of Kubernetes, including, cluster update, adding nodes, etc. More on this should come in the next months! ️ Also note that I am chatting with different people and teams in Vates about this thread and the Docker integration topic to see if we could do something. Also last thing is that, the community is always welcome to build on top of our open source softwares. I am pretty sure that if someone would contribute a Xen Orchestra plugin to integrate Docker we would welcome this, and we could give tips and guidance. Like @teddyastie said, I'm not sure having Docker, Podman, related features in the guest agent would be something our colleagues would merge. But maybe the docker daemon socket could be kind of shared between VMs (I'm not sure at all this is possible and if possible how to do it). In the meantime exposing the docker daemon over network (with restrictions) to Xen Orchestra would be quick'n easy and I think safe enough if done carefully.
  • 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