[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 <<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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic