Changes between Version 25 and Version 26 of Documentation/SupportedImages/BuildingBaselineImage


Ignore:
Timestamp:
Jul 8, 2013, 7:47:39 PM (11 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/SupportedImages/BuildingBaselineImage

    v25 v26  
    1 = Steps for Building a Baseline Image =
     1== Steps for Building a Baseline Image ==
    22
    33Our images are primarily derived from a stock distributions OS. Currently we're following the Ubuntu distribution line. The only core service required during installation is the ssh server. The partition size should be kept small to simplify the image gathering process. Due to limitations
     
    55
    66The major modifications that will be required are:
     7 * Configuring partitions and mount tables
     8  * We expect a 15G root partition (/dev/sda1) and no other partitions. Swap will be handled via a file in the file system.
    79 * Setting up serial console
    8   * Grub serial config (including kernel flags)
    9   * Getty serial config (for loggin in from the serial console, other wise it looks like it hangs)
    10  * Setting Root user to have password less login (and dropping all other user records)
     10  * Grub serial / Boot Fail config (including kernel flags)
     11  * Getty serial config (for login in from the serial console, other wise it looks like it hangs)
     12 * Modify fstab/rcS to avoid file system checks
     13 * Setting Root user to have password less login (and dropping all other user records/directories)
    1114  * Modifying console logins (for serial console)
    12   * Modifying ssh logins (the two coupled)
    13  * installing necessary omf/oml packages
    14  * blacklisting modules of wireless interfaces
    15  * add the ntp package and then touch a file named /etc/ntp.conf.dhcp
    16  * remove the file /etc/udev/rules.d/70-persistent-net.rules
     15  * Modifying ssh logins (the two are coupled)
     16 * Installing necessary omf/oml packages
     17 * Blacklisting modules of wireless interfaces
     18 * adding the ntp package and then touch a file named /etc/ntp.conf.dhcp
     19 * Remove the file /etc/udev/rules.d/70-persistent-net.rules
    1720  * prepare.sh usually handles this
    18  * removing unnecessary packages and docs to minimize image size
     21 * Removing unnecessary packages and docs to minimize image size
    1922  * prepare.sh usually handles this
    20 
    21 Other steps that may be required are:
    22  * Configuring partitions and mount tables
    23   * We expect a 10G root partition (/dev/sda1) and 4G swap partion (/dev/sda2). They should be sequential.
    24  * get hostname from dhcp
     23 * Get hostname from dhcp
    2524----
    2625
    27 == !Version/Distributions specific Notes ==
    28 
    29 === Base OS configuration ===
     26''' Base OS configuration '''
     27 1. Install base OS with a single 15GB partition. It should have no Swap. Openssh Server service should be installed.
    3028 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub:
    3129    {{{
     
    3331    GRUB_TERMINAL=serial
    3432    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
     33    GRUB_RECORDFAIL_TIMEOUT=0
    3534    }}}
    3635    To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents:
     
    5049    {{{
    5150    sudo start ttyS0
     51    }}}
     52 1. Edit /etc/default/rcS and change the value of FSCKFIX
     53    {{{
     54    FSCKFIX=yes
     55    }}}
     56 1. Edit /etc/fstab to have the single disk (/dev/sda1) mount point
     57    {{{
     58    proc      /proc           proc    nodev,noexec,nosuid 0       0
     59    /dev/sda1 /               ext3    errors=continue 0       1
    5260    }}}
    5361 1. To configure root with no password edit /etc/shadow, the first line should look like:
     
    113121    /etc/default/grub to set the do not use UUID flag to true. There were some issues with image saves and uuids.
    114122
    115 === OMF configuration ===
     123''' OMF configuration '''
    116124 1. To install the necessary packages from the mytestbed.net repository we need to first configure /etc/apt/sources.list . We will need only the precise repository. Edit the /etc/apt/sources.list
    117125add the following line.
     
    129137    }}}
    130138
    131 === Final Steps ===
     139''' Final Steps '''
    132140 1. Run the prepare [attachment:prepare.sh file]
    133141    {{{