Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mount a folder in jails with latest version 1.4.1 #174

Closed
SeiyaGame opened this issue May 17, 2024 · 2 comments
Closed

Unable to mount a folder in jails with latest version 1.4.1 #174

SeiyaGame opened this issue May 17, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@SeiyaGame
Copy link

SeiyaGame commented May 17, 2024

READ THIS FIRST
How to ask for help? (including discussion vs issue)

Describe the bug
On a clean installation of Truenas scale (24.04.0), I installed the latest version of jailmaker (1.4.1) and the --bind doesn't work. Nothing goes up inside the jail.
I have downgraded the script to version 1.4.0 and all --bind mounts work correctly, but I need to add the fix for the nvidia driver :
--bind-ro='/usr/lib/x86_64-linux-gnu/nvidia/current'

To Reproduce
Steps to reproduce the behavior:

  1. Install the script in version 1.4.1 and create a new jail with gpu_passthrough_nvidia=1 and add a --bind mount.
  2. Check in the jail if the mount is present, which it isn't.
  3. Rollback the script to version 1.4.0 and add --bind-ro='/usr/lib/x86_64-linux-gnu/nvidia/current' to fix the error with the nvidia gpu and check if the other --bind mount is present, which it is!

Expected behavior
Rollback the #166 or find an fix

@SeiyaGame SeiyaGame added the bug Something isn't working label May 17, 2024
@SeiyaGame SeiyaGame changed the title Unable to mount folder in the the latest 1.4.1 Unable to mount a folder in jails with latest version 1.4.1 May 17, 2024
@Jip-Hop
Copy link
Owner

Jip-Hop commented May 17, 2024

Please try one more time with the latest version and post all the commands used together with all their output. I'm particularly interested in the output which comes after "Starting jail X with the following command:".

@SeiyaGame
Copy link
Author

I'm completely sorry, version 1.4.1 works very well ...
It's my fault, when I edited the template, I added a comment on the line systemd_nspawn_user_args :

+systemd_nspawn_user_args=--network-bridge=br1 # My network bridge
    --resolv-conf=bind-host
    --system-call-filter='add_key keyctl bpf'

And when I went back to version 1.4.0, I copied and pasted the template on github without adding anything inside, which is why it worked with this version.

I apologize completely for this unnecessary issue I've done ...

Note to self not to add comments on the same line

@Jip-Hop Jip-Hop closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants