Productivity Sync Just another WordPress weblog

September 7, 2009

Setting up LFS in a VBOX

Filed under: Uncategorized — admin @ 3:47 pm

I’m starting with the automated build off the old LFS-LiveCD6.3.

Vbox guest is setup with 1Gig RAM.

Create a vbox HD with 3 partitions 1 swap, one for the old 6.3 root, and one for the new / current LFS root.  (1gig swap, 5gig oldroot, 20gig new root) works well.

mount the 6.3 root at /mnt/build_dir; chmod 1777 /mnt/build_dir

su – jhalfs

cd jhalfs-2.3.1

make (take defaults)

come back in 6hrs

chroot mount /mnt/build_dir (with bind mounted /proc and /dev)

set root passwd

build LFS 6.3 kernel (old moldy thing) use the LiveCD’s /proc/config.gz for the config file, and install it intot he chroot

Set up the grub:

cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub

grub
root (hd0,1)
setup (hd0)
quit

add a menu.lst file:
# Begin /boot/grub/menu.lst

# By default boot the first menu entry.
default 0

# Allow 30 seconds before booting the default.
timeout 30

# Use prettier colors.
color green/black light-green/black

# The first entry is for LFS.
title LFS 6.3
root (hd0,1)
kernel /boot/bzImage root=/dev/hda2

Powered by WordPress