[Planetlab-devel] bootcd_v3 for wireless/mesh myplc
Chan, Winson C
winson.c.chan at intel.com
Mon Nov 20 00:32:07 EST 2006
Marc,
Where can I reset the root password in the BootManager scripts to blank
or something readable and not use the SSH keys? We need to login to
these nodes locally during demo, which we will disable all of its
networking function.
Also, I have successfully kexec into the new kernel. However, on boot,
I'm getting complaints that /dev/mapper/palnetlab-vservers is of the
wrong fs type, bad option, bad superblock; missing codepage or other
error, which also leads to other PlanetLab services to fail. The
original PlanetLab-Bootstrap.tar.bz2 that came with myplc doesn't have
this problem. The following is how I build the customized
PlanetLab-Bootstrap.tar.bz2. Any idea where I might have done something
wrong?
# uncompress bootstrap file
rm -f -r bootstrap
rm -f PlanetLab-Bootstrap-Custom-2.6.9.tar
rm -f PlanetLab-Bootstrap-Custom-2.6.9.tar.bz2
rm -f PlanetLab-Bootstrap-Copy.tar
rm -f PlanetLab-Bootstrap-Copy.tar.bz2
cp PlanetLab-Bootstrap.tar.bz2 PlanetLab-Bootstrap-Copy.tar.bz2
bunzip2 PlanetLab-Bootstrap-Copy.tar.bz2
mkdir bootstrap
cd bootstrap
tar -xvf ../PlanetLab-Bootstrap-Copy.tar
rm -f PlanetLab-Bootstrap-Copy.tar
# copy files to tree
cp ~/overmesh/myplc/kernel/kernel-2.6.9-1.667.root.i686.rpm
./tmp/kernel-2.6.9-1.667.root.i686.rpm
# copy wireless mesh software
# copy customize script to tree, to be execute after chroot
cd ../..
cp customize-bootstrap-pt2.sh bootstrap/tmp/.
# chroot here then execute the following at the new root
chroot bootstrap
cd /tmp
rpm -ivh --force kernel-2.6.9-1.667.root.i686.rpm
cd /boot
rpm -e kernel-2.6.12-1.1398.5.planetlab
ln -s -f config-2.6.9-1.667.root config
ln -s -f initrd-2.6.9-1.667.root.img initrd-boot
ln -s -f vmlinuz-2.6.9-1.667.root kernel-boot
# install wireless mesh software
# clean up
cd /lib/modules
cp -r 2.6.12-1.1398_FC4.5.planetlab/extra 2.6.9-1.667.root/.
rm -r -f 2.6.9-1.667
rm -r -f 2.6.12-1.1398_FC4.5.planetlab
rm -r -f 2.6.12-1.1398_FC4.5.planetlabsmp
rm -r -f 2.6.12-1.1398_FC4.5.planetlabuml
rm -r -f 2.6.12-1.1398_FC4.5.planetlabxenU
cd /boot
rm -f config-2.6.12-1.1398_FC4.5.planetlab
rm -f initrd-2.6.12-1.1398_FC4.5.planetlab.img
rm -f vmlinuz-2.6.12-1.1398_FC4.5.planetlab
rm -f System.map-2.6.12-1.1398_FC4.5.planetlab
# exit chroot
exit
# compress new bootstrap file
rm -f PlanetLab-Bootstrap-Custom-2.6.9.tar
rm -f PlanetLab-Bootstrap-Custom-2.6.9.tar.bz2
cd bootstrap
tar -cvf ../PlanetLab-Bootstrap-Custom-2.6.9.tar *
cd ..
bzip2 PlanetLab-Bootstrap-Custom-2.6.9.tar
# copy new bootstrap file to myplc boot download location
rm -f /plc/data/var/www/html/boot/PlanetLab-Bootstrap.tar.bz2
cp PlanetLab-Bootstrap-Custom-2.6.9.tar.bz2
/plc/data/var/www/html/boot/PlanetLab-Bootstrap.tar.bz2
# clean up
rm -f PlanetLab-Bootstrap-Copy.tar
rm -f PlanetLab-Bootstrap-Copy.tar.bz2
Thanks.
Winson
More information about the Devel
mailing list