[planetlab-devbox] name=PlanetLab DevBox RPMS -- PlanetLab Central baseurl=http://boot.planet-lab.org/install-rpms/planetlab-devbox/and then as root run
# yum groupupdate planetlab-devboxThis downloads the PlanetLab node software that corresponds to the production software currently deployed on PlanetLab nodes. After the yum groupupdate completes, reboot into the new planetlab kernel. It should be listed as one of your grub choices with the name "planetlab" in it. For the ALPHA DevBox installation, please use the following yum.conf and yum commands:
[planetlab-alpha-devbox] name=PlanetLab Alpha DevBox RPMS -- PlanetLab Central baseurl=http://boot.planet-lab.org/install-rpms/planetlab-alpha-devbox/
# yum groupupdate planetlab-alpha-devboxFor the BETA DevBox installation, please use the following yum.conf and yum commands:
[planetlab-beta-devbox] name=PlanetLab Beta DevBox RPMS -- PlanetLab Central baseurl=http://boot.planet-lab.org/install-rpms/planetlab-beta-devbox/
# yum groupupdate planetlab-beta-devboxNOTE: Once you install an alpha DevBox, you cannot easily downgrade to a beta or production DevBox. Similarly, once you install a beta DevBox, you cannot easily downgrade to a production DevBox. This is something we are still working on. If you know how to solve this using yum, please send us email devel@planet-lab.org.
# /usr/sbin/vuseradd v_testwhich will create a vserver named v_test. You can log into this vserver by typing:
#su v_testNow you are operating inside a vserver in a similar manner as if you just logged into your slice account on a PlanetLab node. Go ahead and do whatever software development or testing you would like to do.
#yum info gcc Unable to find pid Gathering header information file(s) from server(s) Server: Fedora Core 2 - i386 - Base Server: PlanetLab Desktop RPMS -- PlanetLab Central Server: Fedora Core 2 - i386 - Released Updates Finding updated packages Downloading needed headers Looking in Available Packages: Looking in Installed Packages: Name : gcc Arch : i386 Version: 3.3.3 Release: 7 Size : 11.07 MB Group : Development/Languages Repo : Locally Installed Summary: The GNU cc and gcc C compilers. Description: The gcc package includes the cc and gcc GNU compilers for compiling C code.
[root@planet8 daniel51]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Fedora Core (2.6.8-1.521.2.4.planetlab) root (hd0,0) kernel /vmlinuz-2.6.8-1.521.2.4.planetlab ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.8-1.521.2.4.planetlab.imgYou can change the "default" parameter to point to the number of the planetlab version and thus avoid hitting enter when the node reboots.
title Fedora Core (2.6.9-1.6_FC2smp) root (hd0,0) kernel /vmlinuz-2.6.9-1.6_FC2smp ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-1.6_FC2smp.img title Fedora Core (2.6.9-1.6_FC2) root (hd0,0) kernel /vmlinuz-2.6.9-1.6_FC2 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-1.6_FC2.img
[root@planet8 daniel51]# uname -a Linux planet8 2.6.8-1.521.2.4.planetlab #1 Tue Dec 14 15:20:58 EST 2004 i686 i686 i386 GNU/LinuxThe kernel is the third field (you do not have to be root to do this).
# /sbin/service vserver-reference startwhich will download a bunch of RPM packages to create /vservers/vserver-references. Depending on where you are located relative to the boot.planet-lab.org server located at Princeton University, this may take a while. This reference image is used to create a filesystem image for a vserver/slice. After you have succeeded with creating the vserver-reference image (check in /vservers),
[root@planet8 vservers]# /usr/sbin/vuseradd huji_daniel51 /usr/sbin/vuseradd: line 30: useradd: command not found /usr/sbin/vuseradd: line 80: vserver: command not found /usr/sbin/vuseradd: line 81: vserver: command not found /usr/sbin/vuseradd: line 91: service: command not foundHere the PATH environment variable was not set correctly. The fix was: (assuming root is working using bash)
[root@planet8 vservers]# PATH=$PATH:/sbin:/usr/sbin ; export PATH
[root@planet8 vservers]#wget http://boot.planet-lab.org/install-rpms/planetlab-desktop/kernel-2.6.8-1.521.2.4.planetlab.i686.rpm [root@planet8 vservers]#rpm -i ./kernel-2.6.8-1.521.2.4.planetlab.i686.rpm
# /bin/bash # in case you are running a different shell # cur=$(cpulimit getlimit v_test) # let cur=$cur+4 # cpulimit setlimit v_test $cur # cpulimit on v_testA similar recipe can be used for all the other limit scripts.
Topic DevBox . { Edit | Attach | Ref-By | Printable | Diffs | r1.11 | > | r1.10 | > | r1.9 | More } |
Copyright © 1999-2006 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback. |