linux-browser-installer icon indicating copy to clipboard operation
linux-browser-installer copied to clipboard

Run different Linux jails at the same time

Open probonopd opened this issue 3 years ago • 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.

probonopd avatar Dec 06 '20 11:12 probonopd

if this can be properly jailed then why not

dch avatar Dec 14 '20 06:12 dch

@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.

mrclksr avatar Dec 15 '20 10:12 mrclksr

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.

trasz avatar Jan 20 '21 14:01 trasz

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.

probonopd avatar Jun 01 '21 18:06 probonopd