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

Re: unaccessible directory in lxcContainerResolveSymlinks



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?

Michal


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