Run different Linux jails at the same time
Opened this issue · 4 comments
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.
if this can be properly jailed then why not
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.
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.
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.