All pastes #900044 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-11 17:06 UTC
rendered paste body
Debian guest VM with VMI extensions

# install from netinst
# setup 12GB, w/ LVM, assisted w/ all the mount points
# add mirror ftp.us.debian.org

# login as root

# add some packages
apt-get install openssh-server screen links2 bzip2 build-essential ncurses-dev kernel-package fakeroot wget

# grab the kernel source to the user's folder (if root, probably /root) 
cd ~/
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.2.tar.bz2

# unpack it.to /usr/src
cd /usr/src
tar xf ~/linux-2.6.24.2.tar.bz2

# remove write to group/other for the source
chmod -R go-w linux-2.6.24.2/

# grab the current config, and use it for the base
cd linux-2.6.24.2
cp /boot/config-2.6.18-5-686 .config

# invoke the menuconfig
make menuconfig

# choose the VMI under the processor options
make-kpkg clean

# start the compile
export VER=$(date +'%Y%m%d') NAMEEXT="-$(hostname)-$(dpkg-architecture -qDEB_HOST_ARCH)"; make-kpkg --initrd --revision=$VER --append-to-version=$NAMEEXT --rootcmd fakeroot kernel_image modules_image