[arch-general] Difference between mkarchroot and arch-chroot
Can someone elaborate on the difference between mkarchroot and arch-chroot? Basically, i want a chrooted environment for testing some program. Alternatively, is there any other better way to create an isolated environment, apart from chroot and VMs.
Am 15.01.2013 09:38, schrieb gt:
Can someone elaborate on the difference between mkarchroot and arch-chroot?
Basically, i want a chrooted environment for testing some program.
Alternatively, is there any other better way to create an isolated environment, apart from chroot and VMs.
mkarchroot creates a new system root. If you want to test a program in an isolated environment, I suggest you look into systemd-nspawn. If you want more security, libvirt-lxc may be your friend (it seems lxc is broken in many ways and doesn't work right with systemd, libvirt-lxc however seems to be fine, I tested neither).
On Tue, Jan 15, 2013 at 10:13:58AM +0100, Thomas Bächler wrote:
mkarchroot creates a new system root. If you want to test a program in an isolated environment, I suggest you look into systemd-nspawn. If you want more security, libvirt-lxc may be your friend (it seems lxc is broken in many ways and doesn't work right with systemd, libvirt-lxc however seems to be fine, I tested neither).
Thank you. I will take a look at them.
On Tue, Jan 15, 2013 at 9:38 AM, gt <static.vortex@gmx.com> wrote:
Can someone elaborate on the difference between mkarchroot and arch-chroot?
Basically, i want a chrooted environment for testing some program.
Alternatively, is there any other better way to create an isolated environment, apart from chroot and VMs.
arch-chroot — chrooting into an existing environment, using on the Arch install medium to get to your brand new root you pacstrap’d ten seconds ago (or for recovery of an existing root). mkarchroot — creating a brand new Arch Linux environment/root. So, two different things when you think about it. -- Kwpolska <http://kwpolska.tk> stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16
On Tue, Jan 15, 2013 at 06:08:01PM +0100, Kwpolska wrote:
On Tue, Jan 15, 2013 at 9:38 AM, gt <static.vortex@gmx.com> wrote:
Can someone elaborate on the difference between mkarchroot and arch-chroot? arch-chroot — chrooting into an existing environment, using on the Arch install medium to get to your brand new root you pacstrap’d ten seconds ago (or for recovery of an existing root).
mkarchroot — creating a brand new Arch Linux environment/root.
So, two different things when you think about it.
Yup, I got it later on. Was a bit stupid question, now I think about it :P Anyway, since Thomas mentioned systemd-nspawn, and it seems to do the same stuff as arch-chroot, I was wondering what are the differences between the two, and would arch-chroot be deprecated in the future?
participants (3)
-
gt
-
Kwpolska
-
Thomas Bächler