Différences entre les versions de « Personal Notes OMF installation/configuration »
De
Ligne 89 : | Ligne 89 : | ||
# boot a node with pxe (e.g. default image <code>omf-5-4</code> which listens to the pxe_slice): <code> /exprima/admin/boot_change_node.sh 01:23:45:56:67:78:89 pxe omf-5.4 </code> | # boot a node with pxe (e.g. default image <code>omf-5-4</code> which listens to the pxe_slice): <code> /exprima/admin/boot_change_node.sh 01:23:45:56:67:78:89 pxe omf-5.4 </code> | ||
# upload the image on the node: <code> omf load -t omf.exprima.node001 -i voyage_baseline.ndz </code> | # upload the image on the node: <code> omf load -t omf.exprima.node001 -i voyage_baseline.ndz </code> | ||
− | # <code>ssh root@node001</code> and modify accordingly your system (do not forget <code>remountrw</code> to write something on the compact flash). | + | # <code>ssh root@node001</code> and modify accordingly your system (do not forget <code>remountrw</code> to write something on the compact flash). <br /> |
You MUST subscribe to your private slice (modify <code>/etc/omf-resctl-5.4/omf-resctl.yaml</code> -> <code>:slice: 'your_slice' </code> | You MUST subscribe to your private slice (modify <code>/etc/omf-resctl-5.4/omf-resctl.yaml</code> -> <code>:slice: 'your_slice' </code> | ||
# save the image: <code> omf save -n omf.exprima.node001 # The imag will be saved in /exprima/images/ (filename containing the hrn and a timestamp) </code> | # save the image: <code> omf save -n omf.exprima.node001 # The imag will be saved in /exprima/images/ (filename containing the hrn and a timestamp) </code> |
Version du 26 septembre 2012 à 16:25
DHCP
Configuration du serveur d'adresses, /etc/dnsmasq.conf
interface=eth1\n dhcp-range=10.0.0.100,10.0.0.254,255.255.255.0,12h dhcp-option=3 dhcp-option=option:ntp-server,10.0.0.200 dhcp-boot=net:control,pxelinux.0 enable-tftp tftp-root=/tftpboot
/etc/dnsmasq.d/testbed.conf
dhcp-host=net:control,00:01:,node1,10.0.100.1
XMPP
- creation of the system:
omf_create_psnode-5.4 exprima.unistra.f mksys
- node creation in the arborescence:
omf_create_psnode-5.4 exprima.unistra.fr mkslice pxe_slice omf.exprima.node1 omf.exprima.node2
- insert a node in a particular slice:
omf_create_psnode-5.4 exprima.unistra.fr mkslice default_slice omf.exprima.node1 omf.exprima.node2
OMF Aggregate Manager
# NOTE: use only 'spaces' to indent ! # ('tab' indents are not supported by the ruby yaml parser used to read this file) # # This is the config file for global configuration items for the OMF Aggregate Manager. # --- :xmpp: :server: "exprima.unistra.fr" :user: "aggmgr" :password: "khk67trRG09!t" :port: 5222 :use_dnssrv: false
:http: :port: 5054
# List of the slices that the AM should by default provide its service to # (other slices can be added later dynamically via a Slice Manager) # :default_slices: ["pxe_slice", "default_slice"]
node (resource) creation in openfire
Before omf_create_psnode-5.4
, fill the correct server address to create the nodes and slices
vim /usr/share/omf-aggmgr-5.4/omf-aggmgr/omf_create_sysnode.rb
images
imagezip
Some softs cannot be installed automatically on the nodes.
Compile the stand-alone imagezip software $cd testbed-080630/os/imagezip $ vi Makefile-linux.sa Comment lines: #ifdef WITH_NTFS ... #endif
Add 'disksize.o' to targets 'imagezip' and 'imageunzip' imagezip: disksize.o imagezip.o (etc...) $(CC) $(CFLAGS) disksize.o imagezip.o (etc..)
(Do the same for 'imageunzip' target) $ make -f Makfile-linux.sa $ sudo cp imagezip imageunzip imagedump /usr/bin
automatic re-installation
The procedure is quite simple:
- boot a node with pxe (e.g. default image
omf-5-4
which listens to the pxe_slice):/exprima/admin/boot_change_node.sh 01:23:45:56:67:78:89 pxe omf-5.4
- upload the image on the node:
omf load -t omf.exprima.node001 -i voyage_baseline.ndz
ssh root@node001
and modify accordingly your system (do not forgetremountrw
to write something on the compact flash).
You MUST subscribe to your private slice (modify /etc/omf-resctl-5.4/omf-resctl.yaml
-> :slice: 'your_slice'
- save the image:
omf save -n omf.exprima.node001 # The imag will be saved in /exprima/images/ (filename containing the hrn and a timestamp)
- configure the nodes to boot via their hard disk:
/exprima/admin/boot_change_node.sh 01:23:45:56:67:78:89 hd
NB: boot_change_node.sh is a custom script which directly hacks pxelinux.cfg.
This is perhaps not the better way to proceed.