- Create disk image
- Create ext2 filesystem
$ tune2fs -c 0 -i 0 rootfs.img
- Mount disk image
- Run debootstrap
- Copy Linux kernel and initial ramdisk to boot directory
$ cp initrd.img rootfs/boot
- Install EXTLINUX bootloader
$ vi rootfs/boot/extlinux.conf
default linux
timeout 10
prompt 1
label linux
kernel /boot/vmlinuz
append initrd=/boot/initrd.img root=/dev/sda clocksource=kvm-clock
- Unmount disk image
- Run in QEMU
No comments:
Post a Comment