Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:netbooting [2013/09/10 10:24] – [NFS for a tce directory] gerald_clarkwiki:netbooting [2014/08/14 05:30] (current) – [Putting it all together another way.] curaga
Line 51: Line 51:
  
 ====== The following sections assume that you have working servers ====== ====== The following sections assume that you have working servers ======
-These include a TFTP server and a working server for the network protocol you plan to use ( tftp, http,nfs, aoe, nbd, ndas ).+These include a PXE boot server and a working server for the network protocol you plan to use ( tftp, http, nfs, aoe, nbd, SC-101 ).\\  
 +These sections are descriptions of the boot options and arguments, along with examples of their use.\\  
 + 
 +This is **not** a cookie-cutter howto.\\  
 +There are many ways to setup a PXE boot system.\\ 
 +We assume you know how yours works, and that you are able to pxeboot a core machine.\\  
 +We also assume your other servers are configured and working, and that you know how to connect to them from a client. 
 ====== NFS for a tce directory ====== ====== NFS for a tce directory ======
   * As of Version 4.0, **bzImage** is replaced by **vmlinuz**.   * As of Version 4.0, **bzImage** is replaced by **vmlinuz**.
Line 130: Line 137:
 Ex: **nfsmount=openvz:/tftpboot/nfs/tc2-music:no-ping** Ex: **nfsmount=openvz:/tftpboot/nfs/tc2-music:no-ping**
 ===== Putting it all together ===== ===== Putting it all together =====
 +**Note:** If you are running Core 5.2 or newer, nfs-utils depends on rpcbind,tcz and libtirpc.tcz.  These will need to be added to the nfs.list.
 +
 The tftp server is sourced at /tftpboot.  The tftp server is sourced at /tftpboot. 
 We are going to setup workstation1.  It is going to have a /mnt/nfs that corresponds to /tftpboot/nfs/ws1. We are going to setup workstation1.  It is going to have a /mnt/nfs that corresponds to /tftpboot/nfs/ws1.
Line 148: Line 157:
   - Loads TCL.   - Loads TCL.
   - TFTP gets **/nfs/ws1/nfs.list** from **myserver**.   - TFTP gets **/nfs/ws1/nfs.list** from **myserver**.
-  - TFTP gets each file listed in **nfs.list** and places it in /opt/tce. +  - TFTP gets each file listed in **nfs.list** and places it in /tmp/tce, a temporary directory in RAM
-  - Mounts all applications in /opt/tce.+  - Mounts all applications in /tmp/tce.
   - Mounts myserver:/tftpboot/nfs/ws1 onto /mnt/nfs.   - Mounts myserver:/tftpboot/nfs/ws1 onto /mnt/nfs.
 Any additional extensions installed by Appbrowser will be saved on the nfs share, and will be loaded during boot, just as you would expect with a local drive. Any additional extensions installed by Appbrowser will be saved on the nfs share, and will be loaded during boot, just as you would expect with a local drive.
Line 156: Line 165:
  
 ===== Putting it all together another way. ===== ===== Putting it all together another way. =====
-If you are using pxelinux version 3.71 or greater, you can load the nfs-utils with initrd instead of using tftplist. To do this you need to create another cpio archive that contains /opt/tce/nfs-utils.tgz+If you are using pxelinux version 3.71 or greater, you can load the nfs-utils with initrd instead of using tftplist. To do this you need to create another cpio archive that contains /tmp/builtin/nfs-utils.tcz
-  - mkdir -p /tmp/opt/tce/optional +  - mkdir -p /tmp/tmp/builtin/optional 
-  - cp nfs-utils.tcz /tmp/opt/tce/optional +  - cp nfs-utils.tcz /tmp/tmp/builtin/optional 
-  - echo "nfs-utils.tcz" >> /tmp/opt/tce/onboot.lst+  - echo "nfs-utils.tcz" >> /tmp/tmp/builtin/onboot.lst
   - cd /tmp   - cd /tmp
-  - find opt | cpio -o -H newc | gzip -9 > /tmp/nfs-utils.cpio.gz+  - find tmp | cpio -o -H newc | gzip -9 > /tmp/nfs-utils.cpio.gz
   - copy nfs-utils.cpio.gz to the directory containing tinycore.gz.   - copy nfs-utils.cpio.gz to the directory containing tinycore.gz.
 The PXE boot entry now is: The PXE boot entry now is:
Print/export
QR Code
QR Code wiki:netbooting (generated for current page)