[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: unaccessible directory in lxcContainerResolveSymlinks
From:       Priyanka Gupta <priygupt () gmail ! com>
Date:       2021-06-23 9:40:08
Message-ID: CA+BcWvOVgRr8UncrVijgzTeFq5yRYdpywRpR=DAKo9nXNK6eSQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

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?

Thanks
Priyanka

On Wed, Jun 23, 2021 at 2:46 PM Michal Prívozník <mprivozn@redhat.com>
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?
>
> Michal
>
>

[Attachment #3 (text/html)]

<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 &lt;<a \
href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>&gt; \
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> &gt; Hi Michal,<br>
&gt; <br>
&gt; This is how snippets from my XML looks like. Full XML at the end of the<br>
&gt; mail..  <br>
&gt;       &lt;emulator&gt;/usr/sbin/libvirt_lxc&lt;/emulator&gt;<br>
&gt;       &lt;filesystem type=&#39;mount&#39; \
accessmode=&#39;passthrough&#39;&gt;<br> &gt;          &lt;source \
dir=&#39;/vol/usb1/iox/repo-lxc/utd/rootfs_mnt&#39;/&gt;<br> &gt;          &lt;target \
dir=&#39;/&#39;/&gt;<br> &gt;       &lt;/filesystem&gt;<br>
&gt;       &lt;filesystem type=&#39;mount&#39; \
accessmode=&#39;passthrough&#39;&gt;<br> &gt;          &lt;source \
dir=&#39;/flash/dir&#39;/&gt;<br> &gt;          &lt;target \
dir=&#39;/flash/dir&#39;/&gt;<br> &gt;       &lt;/filesystem&gt;<br>
&gt; <br>
&gt; The issue I am facing is, my container doesnt start. Fails at mounting<br>
&gt; this /flash/dir   with below message.<br>
&gt; <br>
&gt; 2021-06-09 06:52:55.548+0000: 1: error : lxcContainerMountFSBind:1223 :<br>
&gt; Failed to bind mount directory /.oldroot/flash/dir to /flash/dir: No<br>
&gt; such file or directory<br>
<br>
Yeah, the lxc driver thinks that /flash/dir doesn&#39;t exist.<br>
Unfortunately, I am unable to reproduce - when I mkdir -p /flash/dir<br>
and add corresponding &lt;filesystem/&gt; to one of my containers it boots up<br>
just fine. What&#39;s your libvirt version?<br>
<br>
Michal<br>
<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic