Skip to content
parke edited this page Jan 10, 2022 · 41 revisions

Lxroot - a software virtualization tool

About Lxroot

lxroot is a lightweight alternative to chroot, Docker, and other software virtualization tools.

lxroot allows a non-root user to quickly and easily create a "chroot-style" virtual software environment (via Linux namespaces), and then run one or more programs (a "guest userland") inside that environment.

Videos

Lxroot and vland

While you can run lxroot directly, I recommend learning vland first.

vland is a virtual userland manager. vland is implemented as a convenience wrapper around lxroot. vland can automatically download, install, and configure a guest userland for use with lxroot. Both vland and lxroot operate without root access.

Supported guest Linux distributions

The below table summarizes the Linux distributions that I have used as guests with vland and lxroot.

Distro Can install root filesystem? Can install packages? Can build packages?
Alpine yes yes yes
Arch yes yes yes
Ubuntu work in progress work in progress unknown
Void yes probably yes? maybe??

Other Linux distributions may also work inside lxroot. (Some level of custom shimming may be required.)

Due to lxroot's safety, simplicity, efficiency, and ability to run without root access, lxroot has some limitations that may not be present in more heavyweight virtualization tools. These limitations may or may not affect your particular use case.

Learn more

Clone this wiki locally