98 | | ii omf-aggmgr-5.2 1ubuntu6 OMF Aggregate Manager |
99 | | ii omf-aggmgr-5.3 5.3.1-ubuntu3 OMF Aggregate Manager |
100 | | ii omf-common-5.2 1ubuntu4 Common ruby classes for OMF |
101 | | ii omf-common-5.3 5.3.1-ubuntu3 Common ruby classes for OMF |
102 | | ii omf-common-5.4 5.4.2-ubuntu1 Common ruby classes for OMF |
103 | | ii omf-expctl-5.2 1ubuntu5 OMF Experiment Controller |
104 | | ii omf-expctl-5.3 5.3.1-ubuntu6 OMF Experiment Controller |
105 | | ii omf-expctl-5.4 5.4.2-ubuntu1 OMF Experiment Controller |
106 | | ii liboml2-0 2.8.0-ubuntu1 OML: The Orbit Measurement Library |
107 | | ii oml2-server 2.6.1-ubuntu1 OML measurement server |
| 117 | ii omf-aggmgr-5.3 5.3.1-ubuntu3 OMF Aggregate Manager |
| 118 | ii omf-common-5.3 5.3.1-ubuntu3 Common ruby classes for OMF |
| 119 | ii omf-common-5.4 5.4.2-ubuntu2 Common ruby classes for OMF |
| 120 | ii omf-expctl-5.3 5.3.1-ubuntu6 OMF Experiment Controller |
| 121 | ii omf-expctl-5.4 5.4.2-ubuntu2 OMF Experiment Controller |
| 122 | ii liboml2-0 2.8.1-ubuntu2 OML: The Orbit Measurement Library |
| 123 | ii oml2-server 2.8.1-ubuntu2 OML measurement server |
116 | | ---- |
117 | | == Old instructions as of 5/xx/2011 == |
118 | | Steps on setting up this ubuntu Server are as follows[[BR]] |
119 | | 1. Attach a usb cd drive and start the cd install.[[BR]] |
120 | | 2. Choose Entire disk with help from installer to do the partitioning of the FS[[BR]] |
121 | | Choose dhcp for eth0 during setup. |
122 | | 3. Setup the Network Interfaces[[BR]] |
123 | | eth0 - Goes into the DMZ network, so please modify the /etc/network/interfaces file to for eth0 [[BR]] |
124 | | the ability to attain an ip address using dhcp.[[BR]] |
125 | | Please update the dhcpd.conf file with eth0 mac address for console.sbX[[BR]] |
126 | | eth1 - Is the ConsoleC address for sandbox.[[BR]] |
127 | | Please update /etc/network/interfaces to [[BR]] |
128 | | iface eth1 inet static [[BR]] |
129 | | address 10.1x.0.10 - (x) is the sandbox number [[BR]] |
130 | | netmask 255.255.0.0 [[BR]] |
131 | | 4. Please Install libpam-ldap,libnss-ldap,autofs and autofs-ldap packages using apt.[[BR]] |
132 | | 5. Please modify /etc/ldap/ldap.conf to the following [[BR]] |
133 | | BASE dc=orbit-lab,dc=org [[BR]] |
134 | | URI ldap://ldap.orbit-lab.org [[BR]] |
135 | | 6. You can copy /etc/ldap.conf from another sandbox or set the following attributes yourself[[BR]] |
136 | | host ldap.orbit-lab.org [[BR]] |
137 | | base dc=orbit-lab,dc=org [[BR]] |
138 | | ldap_version 3 [[BR]] |
139 | | rootbinddn cn=admin,dc=orbit-lab,dc=org [[BR]] |
140 | | timelimit 30 [[BR]] |
141 | | bind_timelimit 30 [[BR]] |
142 | | idle_timelimit 360 [[BR]] |
143 | | pam_check_host_attr yes [[BR]] |
144 | | pam_password crypt [[BR]] |
145 | | Copy the /etc/ldap.secret file from another sandbox or ask the administrator for the password. [[BR]] |
146 | | Modify /etc/nsswitch.conf for the users and autofs to use LDAP |
147 | | 7. For autofs we need to modify /etc/default/autofs file so that the autofs daemon knows what the master |
148 | | map is. [[BR]] |
149 | | |
| 133 | |
| 134 | For the console we need to OMF packagees; please try and install the latest release also [[BR]] |
151 | | LDAPURI="ldap://ldap1.orbit-lab.org/" |
152 | | LDAPBASE="ou=auto.master,dc=orbit-lab,dc=org" |
| 136 | apt-get install omf-expctl-5.3 omf-aggmgr-5.3 oml2-server |
| 137 | }}} |
| 138 | |
| 139 | 13. OMF Configuration |
| 140 | |
| 141 | Copy a working config file for /etc/omf-expctl-5.X/omf-expctl.yaml from another sandbox and modify its |
| 142 | ip addresses and the domain name. The XMPP server is xmpp for 5.3 and xmpp2.orbit-lab.org for 5.4. |
| 143 | |
| 144 | Configure omf-aggmgr-5.X to enable result service by creating file in /etc/omf-aggmgr-5.X/available/result.yaml with |
| 145 | {{{ |
| 146 | --- |
| 147 | result: |
| 148 | # Path to the SQLite3 client binary |
| 149 | sqlite3_path: '/usr/bin/sqlite3' |
| 150 | |
| 151 | # Path to the directory holding the experiment measurement databases |
| 152 | database_path: '/var/lib/oml2' |
155 | | 8. Copy the /etc/nsswitch.conf file to this new machine from another sandbox or modify the file for your [[BR]] self to include ldap for login and automount to be done by ldap. |
156 | | Please ensure that you start autofs |
157 | | Modify the sudoers file to include sysadmin group with privileges to become root without password or |
158 | | just[[BR]]copy the sudoers file from an existing sandbox. |
159 | | 9. Install the mail packages , so that the mail can be sent from the sandbox.[[BR]] |
160 | | {{{ apt-get install postfix mailutils }}} [[BR]] |
161 | | When you begin installing the postfix package configuration it will ask you configuration details, please select to install the package as a '''Satellite''' system. After that copy the main.cf file from another sandbox. |
162 | | 10. Install logwatch, ntp and cfengine2 packages. [[BR]] |
163 | | 11. Configure cfengine2 , which should copy the config files for logwatch and ntp.[[BR]] |
164 | | 12. OMF Install -To manage your nodes |
165 | | To install omf packages modify your apt source tree to include mytestbed url and then run update on the apt for it to pull down the package information. The above steps can be done by these steps[[BR]] |
| 155 | |
| 156 | and then link it: |
172 | | |
173 | | For the console we need to add the following packages |
174 | | omf-resctl liboml omf-expectl omf-common omf-aggrmgr . Please try and install the latest release[[BR]] |
175 | | {{{ |
176 | | apt-get install liboml omf-expctl-5.2 omf-common-5.2 omf-aggmgr-5.2 |
177 | | }}} |
178 | | 13. OMF Configuration |
179 | | Copy a working config file for /etc/omf-expctl-5.2/nodehandler.yaml from another sandbox and modify its |
180 | | ip addresses for the Sandbox. The XMPP server is repository2. |
181 | | 14. In the inventory52 database , nodes table please make sure that the control ip is set to the ip of the eth1 interface (non dmz) interface. |
182 | | Once you start the expirement you can go to the following ip and see the serial console |
183 | | 10.1.10x.17 x is the sandbox(x) number , the last 4 hex numbers are used to denote the ip address of each node of sandbox. |
184 | | node2 for sandbox would be 10.1.10x.18 |
185 | | |
186 | | 15. We still have omf5 as the default so please do the following |
187 | | Just to add to our notes, we need to make sure machine have fully qualified host name (some services depend on it). So |
188 | | |
189 | | (in /etc/hostname) |
190 | | console.sb2.orbit-lab.org |
191 | | |
192 | | (in /etc/hosts) |
193 | | 127.0.0.1 console.sb2.orbit-lab.org console |
194 | | |
195 | | As for the old omf we need to: |
196 | | |
197 | | rm /usr/bin/omf #(it is actually a soft link to /etc/alternatives/omf)[[BR]] |
198 | | |
199 | | scp -r sb1.orbit-lab.org:/opt/nodehandler4-4.4.0 /opt/nodehandler4-4.4.0[[BR]] |
200 | | |
201 | | scp -r sb1.orbit-lab.org:/etc/nodehandler4 /etc/nodehandler4[[BR]] |
202 | | |
203 | | scp sb1.orbit-lab.org:/usr/bin/omf /usr/bin/omf[[BR]] |