Changes between Version 22 and Version 23 of Documentation/SupportedImages/BuildingBaselineImage
- Timestamp:
- May 2, 2013, 12:38:32 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/SupportedImages/BuildingBaselineImage
v22 v23 27 27 == !Version/Distributions specific Notes == 28 28 29 === Ubuntu 11.10===29 === Base OS configuration === 30 30 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub: 31 31 {{{ … … 65 65 UsePAM no 66 66 }}} 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 oneiric68 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. Instead73 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 first74 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 install75 {{{76 wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby1.8_0.5-1_all.deb77 dpkg -i libxmpp4r-ruby1.8_0.5-1_all.deb78 wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby_0.5-1_all.deb79 dpkg -i libxmpp4r-ruby_0.5-1_all.deb80 }}}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 packages83 {{{84 apt-get install omf-common-5.3 omf-expctl-5.385 }}}86 Finally we install OML2. The meta package seems broken, but is unnecessary any way. We can simply install all the oml2 packages (except87 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-server90 }}}91 67 1. Copy the modules blacklist tar [attachment:modprobe.d.tar file] directory into the /etc/modprobe.d directory. The contents should look like: 92 68 {{{ … … 107 83 -rw-r--r-- 1 root root 29 2010-10-01 11:33 intel-5300-iwlagn-disable11n.conf 108 84 }}} 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 {{{ 87 apt-get install ntp 88 touch /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 111 91 of the dhclient config. First run 112 92 {{{ 113 mv/var/lib/dhcp /var/lib/dhcp393 ln -s /var/lib/dhcp /var/lib/dhcp3 114 94 }}} 115 95 and in /etc/dhcp/dhclient.conf comment this line … … 121 101 {{{ 122 102 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.3126 {{{127 apt-get install omf-resctl-5.4128 apt-get install omf-resctl-5.3129 }}}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: true136 103 }}} 137 104 1. Switch to a swap file instead of swap partition: … … 149 116 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 150 117 /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 {{{ 124 apt-get install omf-resctl-5.4 oml2-apps iperf-oml2 125 gem install oml4r 126 cd /usr/local/bin; wget http://witestlab.poly.edu/repos/misc/wmxstat 127 cd /root; 128 }}} 129 130 === Final Steps ==== 151 131 1. Run the prepare [attachment:prepare.sh file] 152 132 … … 173 153 === FIX ME === 174 154 175 {{{176 apt-get install omf-resctl-5.4 oml2-apps iperf-oml2177 gem install oml4r178 cd /usr/local/bin; wget http://witestlab.poly.edu/repos/misc/wmxstat179 cd /root;180 }}}181 155