Différences entre les versions de « Personal Notes OMF installation/configuration »
De
Ligne 61 : | Ligne 61 : | ||
vim /usr/share/omf-aggmgr-5.4/omf-aggmgr/omf_create_sysnode.rb | vim /usr/share/omf-aggmgr-5.4/omf-aggmgr/omf_create_sysnode.rb | ||
− | == | + | == images == |
+ | |||
+ | === imagezip === | ||
Some softs cannot be installed automatically on the nodes. | Some softs cannot be installed automatically on the nodes. | ||
Ligne 81 : | Ligne 83 : | ||
$ make -f Makfile-linux.sa | $ make -f Makfile-linux.sa | ||
$ sudo cp imagezip imageunzip imagedump /usr/bin | $ sudo cp imagezip imageunzip imagedump /usr/bin | ||
+ | |||
+ | === automatic re-installation === | ||
+ | |||
+ | The procedure is quite simple: | ||
+ | # boot a node with pxe (default image omf-5-4 which listens to the pxe_slice) | ||
+ | # then load the targeted image: <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) | ||
+ | # save the image with <code>omf save -n omf.exprima.node001</code>. The imag will be saved in <code>/exprima/images/</code> (filename containing the hrn and a timestamp) |
Version du 26 septembre 2012 à 16:18
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 (default image omf-5-4 which listens to the pxe_slice) # then load the targeted image: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) # save the image withomf save -n omf.exprima.node001
. The imag will be saved in/exprima/images/
(filename containing the hrn and a timestamp)