1

So I need to 'install' (or rather prepare a root filesystem for) a Debian system and that was done with debootstrap and chroot before. However due to the not-very-existent isolation of chroots (with regards to networking, reboots, etc.), this is a bit annoying.

So I thought about using LXC instead of chroot. Is that possible? Are there any good instructions on how to do that? Keep in mind, that the resulting root filesystem is finally supposed to run on actual hardware, not in an LXC environment.

Michael
  • 285
  • 4
  • 16
  • What specific problems are you encountering with a standard chroot install? There's no need to bring up networking within the chroot, though you may configure it. There's no need to reboot during the chroot installation process until you've got a system that's capable of running free-standing on its own, at which point the chroot host can and should be jetisoned (it's just there as a convenience for the install). What are you trying to accomplish, and what are your constraints? – Dr. Edward Morbius Jul 25 '12 at 20:07

1 Answers1

0

The problems you will face is that when creating an LXC container you will lack:

  • /boot
  • a kernel

So to be able to make it a usable OS that can run on hardware, you will need to install those things one way or another. When you want to do this, you can resort to chroot temporarily to install a kernel and bootloader.

Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93