<div dir="ltr">Hi,<div><br></div><div>If I try to add only /flash (without dir subdirerctory) into the XML, it works fine for me.</div><div>Does it matter what sort of permissions(user/grp) /flash/dir has? </div><div></div><div><br></div><div>Thanks</div><div>Priyanka</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 23, 2021 at 2:46 PM Michal Prívozník <<a href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/23/21 11:08 AM, Priyanka Gupta wrote:<br>
> Hi Michal,<br>
> <br>
> This is how snippets from my XML looks like. Full XML at the end of the<br>
> mail.. <br>
>     <emulator>/usr/sbin/libvirt_lxc</emulator><br>
>     <filesystem type='mount' accessmode='passthrough'><br>
>       <source dir='/vol/usb1/iox/repo-lxc/utd/rootfs_mnt'/><br>
>       <target dir='/'/><br>
>     </filesystem><br>
>     <filesystem type='mount' accessmode='passthrough'><br>
>       <source dir='/flash/dir'/><br>
>       <target dir='/flash/dir'/><br>
>     </filesystem><br>
> <br>
> The issue I am facing is, my container doesnt start. Fails at mounting<br>
> this /flash/dir  with below message.<br>
> <br>
> 2021-06-09 06:52:55.548+0000: 1: error : lxcContainerMountFSBind:1223 :<br>
> Failed to bind mount directory /.oldroot/flash/dir to /flash/dir: No<br>
> such file or directory<br>
<br>
Yeah, the lxc driver thinks that /flash/dir doesn't exist.<br>
Unfortunately, I am unable to reproduce - when I mkdir -p /flash/dir<br>
and add corresponding <filesystem/> to one of my containers it boots up<br>
just fine. What's your libvirt version?<br>
<br>
Michal<br>
<br>
</blockquote></div>