Public bug reported:

Hi,

I had an application program running in an ubuntu 22.04 container in LXD
under a 22.04 host (ubuntu server), container not privileged,
application running as user and not root, just doing some file changes.
Worked well.

But: The file systems mounted from the host into the guest as mount
devices was a zfs file system. Since the application has to run a zfs
get path to retrieve particular settings from the zfs file systems
(which does not require root or other privileges) I had mounted /dev/zfs
as a disk from host into guest. Thus, on the guest a zfs list did list
the zfs file systems.

Worked well.


I recently upgraded everything from 22.04 to 24.04, and it doesn't work 
anymore. 

The app just can't retrieve any values, and zfs can't list zfs file
systems, it just says there arent any.

I tried, as before, mount /dev/zfs as a disk, or as a unix-char. Both
doesn't work.


As far as I can see, that the guest now creates /dev/zfs while booting, and 
blocks the host's /dev/zfs. I can mount it as /dev/zfs2, but that's useless. 
Although both have the same major/minor number, and thus should be the very 
same device, since unter Unix, only the major/minor numbers matter. 

Setting the guest to privileged didn't help, on the contrary, some
services didn't start anymore.


So I currently do not see how I could this app running again in an LXD 
container.

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2088328

Title:
  device collision between configuration and containers own devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/2088328/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to