Changes between Version 22 and Version 23 of Documentation/SupportedImages/BuildingBaselineImage


Ignore:
Timestamp:
May 2, 2013, 12:38:32 AM (11 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/SupportedImages/BuildingBaselineImage

    v22 v23  
    2727== !Version/Distributions specific Notes ==
    2828
    29 === Ubuntu 11.10 ===
     29=== Base OS configuration ===
    3030 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub:
    3131    {{{
     
    6565    UsePAM no
    6666    }}}
    67  1. To install the necessary packages from the mytestbed.net repository we need to first configure /etc/apt/sources.list . We will need the repository for natty since the oneiric
    68     repository doesn't containt packages from omf-5.3.
    69     {{{
    70     deb http://pkg.mytestbed.net/ubuntu natty/
    71     }}}
    72     The current oneiric repository doesn't have a version of libxmpp4r-ruby which was part of the natty(and older) universe repositories. Instead
    73     we will have to manually download the debs and install them. I used the follow commands to retrieve and install them from an ubuntu mirror. You may have to install ruby first
    74     other wise the dependencies will not be met for these packages. When I did this initially on (11.04) apt complained, but was able to rectify the problem with an apt-get -f install
    75     {{{
    76     wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby1.8_0.5-1_all.deb
    77     dpkg -i libxmpp4r-ruby1.8_0.5-1_all.deb
    78     wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby_0.5-1_all.deb
    79     dpkg -i libxmpp4r-ruby_0.5-1_all.deb
    80     }}}
    81     The first is the actual package, the second is a container. Apt will refuse to install OMF-5.3 if the container package is not installed.
    82     From here we simply need to update and install the two omf-5.3 packages
    83     {{{
    84     apt-get install omf-common-5.3 omf-expctl-5.3
    85     }}}
    86     Finally we install OML2. The meta package seems broken, but is unnecessary any way. We can simply install all the oml2 packages (except
    87     for oml2-apps-all)
    88     {{{
    89     apt-get install oml2-nmetrics liboml2-0 oml2-gpslogger oml2-proxy-server oml2-iperf oml2-otg2 oml2-wlanconfig oml2-proxycon oml2-trace liboml2-dev oml2-server
    90     }}}
    9167 1. Copy the modules blacklist tar [attachment:modprobe.d.tar file] directory into the /etc/modprobe.d directory. The contents should look like:
    9268    {{{
     
    10783-rw-r--r--  1 root root   29 2010-10-01 11:33 intel-5300-iwlagn-disable11n.conf
    10884    }}}
    109  1. apt-get install ntp, and then touch /etc/ntp.conf.dhcp.
    110  1. In order to get dhcp to set the hostname we'll need to rename the /var/lib/dhcp directory and remove the send hostname line
     85 1. Setup NTP
     86    {{{
     87apt-get install ntp
     88touch /etc/ntp.conf.dhcp.
     89    }}}
     90 1. In order to get dhcp to set the hostname we'll need to make a link for the the /var/lib/dhcp directory and remove the send hostname line
    11191    of the dhclient config. First run
    11292    {{{
    113 mv /var/lib/dhcp /var/lib/dhcp3
     93ln -s /var/lib/dhcp /var/lib/dhcp3
    11494    }}}
    11595    and in /etc/dhcp/dhclient.conf comment this line
     
    121101    {{{
    122102    ln -s /usr/bin/lsusb /sbin/lsusb
    123     }}}
    124  1. Add deb http://pkg.mytestbed.net/ubuntu oneiric/ to /etc/apt/sources.list (aslo check for deb http://pkg.mytestbed.net/ubuntu natty/)
    125  1. Install omf-resctl-5.4 and omf-resctl-5.3
    126     {{{
    127     apt-get install omf-resctl-5.4
    128     apt-get install omf-resctl-5.3
    129     }}}
    130  1. Copy the example winlab yaml file from /usr/share/doc/omf-resctl-5.3/examples/ to /etc/omf-resctl-5.3 and modifiy it to include the lines.
    131     {{{
    132     control_if: 'eth1'
    133     pubsub_gateway: 'xmpp'
    134     name: '%hostname%'
    135     resizefs: true
    136103    }}}
    137104 1. Switch to a swap file instead of swap partition:
     
    149116 1. You may need to edit /etc/fstab to make sure that the mount point for / is /dev/sda1 (instead of the uuid), and edit
    150117    /etc/default/grub to set the do not use UUID flag to true. There were some issues with image saves and uuids.
     118
     119=== OMF configuration ===
     120 1. To install the necessary packages from the mytestbed.net repository we need to first configure /etc/apt/sources.list . We will need only the precise repository.
     121
     122 1. Add the following packages and files
     123    {{{
     124apt-get install omf-resctl-5.4 oml2-apps iperf-oml2
     125gem install oml4r
     126cd /usr/local/bin; wget http://witestlab.poly.edu/repos/misc/wmxstat
     127cd /root;
     128    }}}
     129
     130=== Final Steps ====
    151131 1. Run the prepare [attachment:prepare.sh file]
    152132
     
    173153=== FIX ME ===
    174154
    175 {{{
    176   apt-get install omf-resctl-5.4 oml2-apps iperf-oml2
    177   gem install oml4r
    178   cd /usr/local/bin; wget http://witestlab.poly.edu/repos/misc/wmxstat
    179   cd /root;
    180 }}}
    181155