Changes between Version 6 and Version 7 of Software/fImages/cBuildingCustomOS


Ignore:
Timestamp:
Sep 13, 2011, 2:14:53 PM (13 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Software/fImages/cBuildingCustomOS

    v6 v7  
    55
    66In order to use an OS other than the ones provided with stock images (Ubuntu based images), you can either provide your own (frisbee) image of the OS of your choice (that was prepared off-site) or use the netboot method on ORBIT infrastructure.
    7 install the OS of your choice on our nodes from scratch. Regardless of the method, the resulting image should support:
     7Regardless of the method, the resulting image should support:
    88
    99   * a serial console (@115K, 8, n, 1) on the first serial port
     
    1111   * and dhcp on the 2nd wired gigabit network interface
    1212
    13 == netboot method ==
     13== Installing custom OS with PXE netboot method ==
    1414
    15  OS via network installers
     15The metod is based on [http://en.wikipedia.org/wiki/Preboot_Execution_Environment Preboot Execution Environment (PXE)] which is using a combination of DHCP and tftp services to download initial installation package (network installer software and it's configuration) onto the node. Once the installation package is downloaded, the control transfers to the installer
    1616
    1717Please be sure the installer for the OS of your choice provides
     
    1919appropriate network drivers. 
    2020
     21We will illustrate this process on the natty
     22 * The XML interface is self explanatory. 
     23 * Copy your boot script to your tftp server (e.g. /tftpboot on repository1)
     24 * Configure the boot behavior of your node via the PXE aggregate manager.
    2125
    22  * The XML interface is self explanatory. 
    23  * Copy your boot script to /tftpboot on repository2 and control the boot behavior of your node via the PXE service.
     26The PXE aggregate manager at:
    2427
    25 The PXE service at:
    26 
    27 http://pxe:5012/pxe
     28http://pxe:5052/pxe
    2829
    2930will show you all of the available URLs. What you need to use is:
    3031
    31 http://pxe:5012/pxe/nodeSetBootImage?img="image_file_name"&nodes="set-of-nodes"
     32http://pxe:5052/pxe/nodeSetBootImage?img="image_file_name"&nodes="set-of-nodes"
    3233
    3334and:
    3435
    35 http://pxe:5012/pxe/nodeSetClearBootImage?img="image_file_name"&nodes="set-of-nodes"
     36http://pxe:5052/pxe/nodeSetClearBootImage?img="image_file_name"&nodes="set-of-nodes"
    3637
    3738You have to come from the domain console to use this service (i.e. if you are working with the node in sb1 you have to issue this on console.sb1).
     
    4445}}}
    4546to save the image of the node in our repository for further use
     47
     48== Ubunty natty installation example ==
     49
     50Create /tftpboot/ubuntu-natty direcotry and download network appropriate installation files:
     51
     52{{{
     53guest@repository1.:/tftpboot# mkdir ubuntu-natty
     54guest@repository1.:/tftpboot# cd ubuntu-natty
     55guest@repository1.:/tftpboot/ubuntu-natty# wget http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/linux
     56--2011-09-13 10:00:46--  http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/linux
     57Resolving archive.ubuntu.com... 91.189.92.170, 91.189.88.31, 91.189.88.40, ...
     58Connecting to archive.ubuntu.com|91.189.92.170|:80... connected.
     59HTTP request sent, awaiting response... 200 OK
     60Length: 4521296 (4.3M) [text/plain]
     61Saving to: `linux'
     62
     63100%[========================================>] 4,521,296   1.46M/s   in 2.9s   
     64
     652011-09-13 10:00:49 (1.46 MB/s) - `linux' saved [4521296/4521296]
     66
     67guest@repository1.:/tftpboot/ubuntu-natty# wget http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/initrd.gz
     68--2011-09-13 10:00:59--  http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/initrd.gz
     69Resolving archive.ubuntu.com... 91.189.92.169, 91.189.92.170, 91.189.88.31, ...
     70Connecting to archive.ubuntu.com|91.189.92.169|:80... connected.
     71HTTP request sent, awaiting response... 200 OK
     72Length: 7987143 (7.6M) [application/x-gzip]
     73Saving to: `initrd.gz'
     74
     75100%[========================================>] 7,987,143   2.26M/s   in 3.4s   
     76
     772011-09-13 10:01:03 (2.26 MB/s) - `initrd.gz' saved [7987143/7987143]
     78
     79guest@repository1.:/tftpboot/ubuntu-natty#
     80}}}
     81
     82Create pxe configuraiton file in /tftpboot/pxelinux.cfg/ubuntu-natty that instruct PXE process to download installer kernel and filesystem from /tftpboot/ubunty-natty directory:
     83
     84{{{
     85SERIAL 0 115000 0
     86DEFAULT linux
     87LABEL ubuntu-natty
     88# ubuntu installer is installed in /tftpboot/ubuntu-natty (linux and initrd.gz).
     89KERNEL ubuntu-natty/linux
     90APPEND initrd=ubuntu-natty/initrd.gz ramdisk_size=32768 root=/dev/rd/0 rw contrpre
     91seed/locale=en_US kbd-chooser/method=us netcfg/choose_interface=eth1 --
     92PROMPT 0
     93}}}
     94
     95