<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>58095</bug_id>
          
          <creation_ts>2026-03-03 14:27:46 +0300</creation_ts>
          <short_desc>pve-container 6.0.18: контейнеры с bind mount на NFS не запускаются</short_desc>
          <delta_ts>2026-07-23 21:53:33 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>pve-container</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>andy</cc>
    
    <cc>darisishe</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>283082</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2026-03-03 14:27:46 +0300</bug_when>
    <thetext>После обновления pve-container с 6.0.9 до 6.0.18-alt2 контейнеры LXC с bind mount на NFS-шары перестали запускаться:

lxc-pve-prestart-hook: failed to propagate uid and gid to mountpoint: Operation not permitted
lxc_init: 845 Failed to run lxc.hook.pre-start for container

Проблема затрагивает привилегированные контейнеры (без id mapping), у которых точки монтирования (mp0, mp1, ...) указывают на NFS-шары с root_squash.

Воспроизведение:

1. Настроить NFS-шару с root_squash (по умолчанию)
2. Создать привилегированный LXC-контейнер с bind mount на эту шару:
   mp0: /var/ftp/pub,mp=/var/ftp/pub
3. pct start &lt;vmid&gt; — ошибка

В версии 6.0.18 функция mountpoint_insert_staged() в /usr/share/perl5/PVE/LXC.pm вызывает fchownat и fchmodat на точке монтирования:

  PVE::Tools::fchownat(fileno($mount_fd), &apos;&apos;, $uid, $gid, PVE::Tools::AT_EMPTY_PATH)
      or die &quot;failed to propagate uid and gid to mountpoint: $!\n&quot;;
  PVE::Tools::fchmodat(fileno($mount_fd), &apos;.&apos;, $mode, 0)
      or die &quot;failed to propagate access mode to mountpoint: $!\n&quot;;

В версии 6.0.9 этого кода не было, контейнеры запускались нормально.

После изменение die на warn контейнеры запускаются.

Обсуждение в апстриме:
https://forum.proxmox.com/threads/proxmox-9-1-5-breaks-lxc-mount-points.180161/
https://forum.proxmox.com/threads/mountpoints-for-lxc-containers-broken-after-update.180267/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291589</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-07-23 21:53:33 +0300</bug_when>
    <thetext>pve-container-6.1.11-alt1 -&gt; sisyphus:

Tue Jul 21 2026 Sergey Konev &lt;darisishe@altlinux&gt; 6.1.11-alt1
- 6.1.11 (Closes: 59354, 58095)
- Clear ENV before calling &apos;pct exec&apos; (Closes: 58166)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>