Re: unaccessible directory in lxcContainerResolveSymlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



If I try to add only /flash (without dir subdirerctory) into the XML, it works fine for me.
Does it matter what sort of permissions(user/grp) /flash/dir has? 


On Wed, Jun 23, 2021 at 2:46 PM Michal Prívozník <mprivozn@xxxxxxxxxx> wrote:
On 6/23/21 11:08 AM, Priyanka Gupta wrote:
> Hi Michal,
> This is how snippets from my XML looks like. Full XML at the end of the
> mail.. 
>     <emulator>/usr/sbin/libvirt_lxc</emulator>
>     <filesystem type='mount' accessmode='passthrough'>
>       <source dir='/vol/usb1/iox/repo-lxc/utd/rootfs_mnt'/>
>       <target dir='/'/>
>     </filesystem>
>     <filesystem type='mount' accessmode='passthrough'>
>       <source dir='/flash/dir'/>
>       <target dir='/flash/dir'/>
>     </filesystem>
> The issue I am facing is, my container doesnt start. Fails at mounting
> this /flash/dir  with below message.
> 2021-06-09 06:52:55.548+0000: 1: error : lxcContainerMountFSBind:1223 :
> Failed to bind mount directory /.oldroot/flash/dir to /flash/dir: No
> such file or directory

Yeah, the lxc driver thinks that /flash/dir doesn't exist.
Unfortunately, I am unable to reproduce - when I mkdir -p /flash/dir
and add corresponding <filesystem/> to one of my containers it boots up
just fine. What's your libvirt version?


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux