Changes between Version 6 and Version 7 of Software/fImages/cBuildingCustomOS
- Timestamp:
- Sep 13, 2011, 2:14:53 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Software/fImages/cBuildingCustomOS
v6 v7 5 5 6 6 In 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:7 Regardless of the method, the resulting image should support: 8 8 9 9 * a serial console (@115K, 8, n, 1) on the first serial port … … 11 11 * and dhcp on the 2nd wired gigabit network interface 12 12 13 == netboot method ==13 == Installing custom OS with PXE netboot method == 14 14 15 OS via network installers.15 The 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. 16 16 17 17 Please be sure the installer for the OS of your choice provides … … 19 19 appropriate network drivers. 20 20 21 We 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. 21 25 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. 26 The PXE aggregate manager at: 24 27 25 The PXE service at: 26 27 http://pxe:5012/pxe 28 http://pxe:5052/pxe 28 29 29 30 will show you all of the available URLs. What you need to use is: 30 31 31 http://pxe:50 12/pxe/nodeSetBootImage?img="image_file_name"&nodes="set-of-nodes"32 http://pxe:5052/pxe/nodeSetBootImage?img="image_file_name"&nodes="set-of-nodes" 32 33 33 34 and: 34 35 35 http://pxe:50 12/pxe/nodeSetClearBootImage?img="image_file_name"&nodes="set-of-nodes"36 http://pxe:5052/pxe/nodeSetClearBootImage?img="image_file_name"&nodes="set-of-nodes" 36 37 37 38 You 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). … … 44 45 }}} 45 46 to save the image of the node in our repository for further use 47 48 == Ubunty natty installation example == 49 50 Create /tftpboot/ubuntu-natty direcotry and download network appropriate installation files: 51 52 {{{ 53 guest@repository1.:/tftpboot# mkdir ubuntu-natty 54 guest@repository1.:/tftpboot# cd ubuntu-natty 55 guest@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 57 Resolving archive.ubuntu.com... 91.189.92.170, 91.189.88.31, 91.189.88.40, ... 58 Connecting to archive.ubuntu.com|91.189.92.170|:80... connected. 59 HTTP request sent, awaiting response... 200 OK 60 Length: 4521296 (4.3M) [text/plain] 61 Saving to: `linux' 62 63 100%[========================================>] 4,521,296 1.46M/s in 2.9s 64 65 2011-09-13 10:00:49 (1.46 MB/s) - `linux' saved [4521296/4521296] 66 67 guest@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 69 Resolving archive.ubuntu.com... 91.189.92.169, 91.189.92.170, 91.189.88.31, ... 70 Connecting to archive.ubuntu.com|91.189.92.169|:80... connected. 71 HTTP request sent, awaiting response... 200 OK 72 Length: 7987143 (7.6M) [application/x-gzip] 73 Saving to: `initrd.gz' 74 75 100%[========================================>] 7,987,143 2.26M/s in 3.4s 76 77 2011-09-13 10:01:03 (2.26 MB/s) - `initrd.gz' saved [7987143/7987143] 78 79 guest@repository1.:/tftpboot/ubuntu-natty# 80 }}} 81 82 Create 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 {{{ 85 SERIAL 0 115000 0 86 DEFAULT linux 87 LABEL ubuntu-natty 88 # ubuntu installer is installed in /tftpboot/ubuntu-natty (linux and initrd.gz). 89 KERNEL ubuntu-natty/linux 90 APPEND initrd=ubuntu-natty/initrd.gz ramdisk_size=32768 root=/dev/rd/0 rw contrpre 91 seed/locale=en_US kbd-chooser/method=us netcfg/choose_interface=eth1 -- 92 PROMPT 0 93 }}} 94 95