[libvirt-users] lxc - pass filesystem off host's automounts

hi guys in my qutest I have this: ... <filesystem type='mount' accessmode='passthrough'> <source dir='/home'/> <target dir='/home'/> </filesystem> ... and on the host /home/* are user home dirs which are automounted off a glusterfs volume. The guest starts okey, I can see dirs under /home but if I go to /home/userA I get: ls: cannot access /home/userA/: Too many levels of symbolic links Do you know if what I'm trying should just work a okey? many thanks, L.

On Mon, Jun 10, 2019 at 12:28:02PM +0100, lejeczek wrote:
hi guys
in my qutest I have this:
...
<filesystem type='mount' accessmode='passthrough'> <source dir='/home'/> <target dir='/home'/> </filesystem>
...
and on the host /home/* are user home dirs which are automounted off a glusterfs volume.
The guest starts okey, I can see dirs under /home but if I go to /home/userA I get:
ls: cannot access /home/userA/: Too many levels of symbolic links
Do you know if what I'm trying should just work a okey?
Unfortunately I don't believe the setup you describe can work. When we passthrough /home it will be marked as a private mount inside the container. This means that any child mounts within it will *not* propagate into the container. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On 10/06/2019 12:46, Daniel P. Berrangé wrote:
On Mon, Jun 10, 2019 at 12:28:02PM +0100, lejeczek wrote:
hi guys
in my qutest I have this:
...
<filesystem type='mount' accessmode='passthrough'> <source dir='/home'/> <target dir='/home'/> </filesystem>
...
and on the host /home/* are user home dirs which are automounted off a glusterfs volume.
The guest starts okey, I can see dirs under /home but if I go to /home/userA I get:
ls: cannot access /home/userA/: Too many levels of symbolic links
Do you know if what I'm trying should just work a okey? Unfortunately I don't believe the setup you describe can work.
When we passthrough /home it will be marked as a private mount inside the container. This means that any child mounts within it will *not* propagate into the container.
Regards, Daniel Is it possible (and safe) to get fuse dev into a lxc container? many thanks, L.
participants (2)
-
Daniel P. Berrangé
-
lejeczek