wiki:ClienteInitrdDSUarlo/en

Version 3 (modified by trac, 7 years ago) (diff)

--

OpenGnSys installer download and locate the elements of the PXE operating system for OpenGnSys clients, including all the needed tools to operate with OG engine.

Current versions are:

  • For OpenGnSys 1.0.1 -> phase of develop. It is based on Ubuntu Nasty 11.04 for 32 and 64 bits.
  • For OpenGnSys 1.0 -> ogclient-1.0.1-lucid-32bit.tar.gz
  • For OpenGnSys 0.10-testing -> ogclient-1.0-lucid-32bit.tar.gz

OpenGnSys 1.0.2 - New format of download of boot-tools ogclient ISO

  • OpenGnSys installer download the ISO and locate the needed elements to provide the operating system by PXE.
  • The ISO will be available to be used form a live CD or save it in a USB device.
  • Beta versions availables are:

ubuntu 11.04 32 bits http://www.opengnsys.es/downloads/29

ISO to CDROM

Use any recording software.

ISO to PXE

#move old ogclient pxe.
mv /var/lib/tftpboot/ogclient  /var/lib/tftpboot/ogclientold
mkdir -p /media/ogclientiso
mount -o loop ogclient.iso /media/ogclientiso
cp -prv  /media/ogclientiso/ogclient /var/lib/tftpboot/
chown -R  www-data:www-data /var/lib/tftpboot/ogclient
umount /media/ogclientiso

ISO to USB

#format USB device, with label ogClient. NOTE: In our example, USB is /dev/sdb1
mkfs.ext3 /dev/sdb1 -L ogClient
mount /dev/sdb1 /media/ogClient
apt-get install unetbootin
#Init unetbootin app.
#Select the ISO.
#And select the USB device.

PXE to CACHE (kernel and initrd only)

Run updateBootCache scripts 
NOTE: From version 1.0.1 and with grub4dos. 

USB, CDROM to CACHE

  • Use as bootloader a grub2 from any Linux installed in our computer.
  • Enter to operating system Linux and edit /etc/grub.d/40_custom file.
menuentry "og cache " {
set root=(hd0,4)
linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit  og2nd=sqfs ogprotocol=local ogactiveadmin=true ogdebug=true ip=none
initrd /boot/oginitrd.img
}

NOTE:

  • With dinamic IP, the parameter ip=dhcp
  • With static IP, the parameter
    • ip=ip:dns:gateway:netmask:hostname:iface:none
    • ip=172.17.9.152:172.17.9.205:172.17.9.254:255.255.255.0:cte152:eth0:none

and run:

os-prober
update-grub

Insert USB, mount it and::

  • Copy ogclient directory in / of CACHE partition.
  • Copy ogclient directory again, but now as boot directory on / of CACHE partition.

Restart and select the boot system og_cache

Load Test

Intel Corp. Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz 3200MHz v.6.5.5

  • 10 seconds USB.
  • 40 seconds CDROM
  • 30 seconds PXE with connection to server Og and browser. Depend on network band width.
  • 20 seconds CACHE(kernel and initrd) over connection to server OG and browser. Independient of client numbers or network band width.
  • 10 seconds CACHE (kernel, initrd, oglient.sqfs), without IP configuration
  • 15 seconds CACHE (kernel, initrd, ogclient.sqfs), with dinamic IP
  • * 10 seconds cache (kernel, initrd, ogclient.sqfs), with static IP