January 13, 2013

uml with minimal debian

Build kernel:

1. get kernel
2. make ARCH=um defconfig
3. make ARCH=um menuconfig ; to remove options you don't need
4. make -j 12 ; parallel build

Build rootfs:
dd if=/dev/zero of=my.rootfs bs=1M seek=512 count=0
mkfs.ext2 -F my.rootfs

mkdir rootfs
sudo mount -o loop my.rootfs rootfs
sudo debootstrap --arch=i386 --variant=minbase lucid rootfs

No comments:

Post a Comment