Changes between Version 25 and Version 26 of Documentation/SupportedImages/BuildingBaselineImage
- Timestamp:
- Jul 8, 2013, 7:47:39 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/SupportedImages/BuildingBaselineImage
v25 v26 1 = Steps for Building a Baseline Image=1 == Steps for Building a Baseline Image == 2 2 3 3 Our 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 … … 5 5 6 6 The 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. 7 9 * 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) 11 14 * Modifying console logins (for serial console) 12 * Modifying ssh logins (the two coupled)13 * installing necessary omf/oml packages14 * blacklisting modules of wireless interfaces15 * add the ntp package and then touch a file named /etc/ntp.conf.dhcp16 * remove the file /etc/udev/rules.d/70-persistent-net.rules15 * 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 17 20 * prepare.sh usually handles this 18 * removing unnecessary packages and docs to minimize image size21 * Removing unnecessary packages and docs to minimize image size 19 22 * 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 25 24 ---- 26 25 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. 30 28 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub: 31 29 {{{ … … 33 31 GRUB_TERMINAL=serial 34 32 GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" 33 GRUB_RECORDFAIL_TIMEOUT=0 35 34 }}} 36 35 To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents: … … 50 49 {{{ 51 50 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 52 60 }}} 53 61 1. To configure root with no password edit /etc/shadow, the first line should look like: … … 113 121 /etc/default/grub to set the do not use UUID flag to true. There were some issues with image saves and uuids. 114 122 115 === OMF configuration === 123 ''' OMF configuration ''' 116 124 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 117 125 add the following line. … … 129 137 }}} 130 138 131 === Final Steps === 139 ''' Final Steps ''' 132 140 1. Run the prepare [attachment:prepare.sh file] 133 141 {{{