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

Run different Linux jails at the same time #4

Open
probonopd opened this issue Dec 6, 2020 · 4 comments
Open

Run different Linux jails at the same time #4

probonopd opened this issue Dec 6, 2020 · 4 comments

Comments

@probonopd
Copy link

probonopd commented Dec 6, 2020

The README says

You can't run different Linux jails at the same time.

Why is this?

Couldn't one set up a different compat.linux.emul_path for each, and run them in parallel?

My objective would be to make a standalone directory (simplified .app bundle actually) that contains the compat.linux.emul_path and everything needed to run the browser.

@dch
Copy link

dch commented Dec 14, 2020

if this can be properly jailed then why not

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

@probonopd :

Why is this?

Couldn't one set up a different compat.linux.emul_path for each, and run them in parallel?

There is only one instance of the linuxulator running in the kernel, and you can set only one emul_path path. If you put the Linux environment into a FreeBSD jail, there might be some path translations involved that could allow more than one Linux environments to run at the same time. But this is just speculation. I know too little about the details of FreeBSD jails.

@trasz
Copy link

trasz commented Jan 20, 2021

Just to clarify: emul_path isn't really used with Linux jails/chroots. It is used when trying to run Linux applications outside of jails/chroots.

@probonopd
Copy link
Author

Looking at the code, /usr/local/bin/linux-chrome is currently executing ${jail_path}/bin/chrome directly, no chroot nor jail used. (The variable name is misleading.)

So it would be great if we could export EMUL_PATH=... to override any system-wide emul_path, effectively giving us a way to separate different Linux environments from each other without needing root rights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants