| 13 | |
| 14 | == Setting up the MFS for testbed nodes == |
| 15 | |
| 16 | These filesystems are PXE booted over the network via TFTP and allow us to perform various parts of node maintenance. |
| 17 | |
| 18 | There are three different MFS (memory file system) images that come with DETER/Emulab. |
| 19 | |
| 20 | They are: |
| 21 | |
| 22 | * The Admin MFS (/tftpboot/freebsd) |
| 23 | * Primarily used to create new operating system images using imagezip and ssh |
| 24 | * The New Node MFS (/tftpboot/freebsd.newnode) |
| 25 | * This is the default image for nodes not explicitly listed in dhcpd.conf. |
| 26 | * Has scripts to try to identify what type of node is being booted based on node_type variables. |
| 27 | * Runs a process to enable auto-detection of which switch ports the node is wired into. |
| 28 | * The Frisbee MFS (/tftpboot/frisbee) |
| 29 | * This image is used when loading an operating system image onto |
| 30 | |
| 31 | The reason all these tasks are split up among multiple images is to keep the image size down since they are booted over the network. With faster networks, these images will likely be rolled into a single Linux based image in the future. |
| 32 | |
| 33 | Each site will have to install root SSH keys from boss into each MFS and change the root password. |
| 34 | |
| 35 | This process, along with fetching/unpacking the MFS tarball, has been automated by the script setup_mfs in testbed/install: |
| 36 | |
| 37 | {{{ |
| 38 | [jjh@boss ~/testbed/install]$ sudo ./setup_mfs -h |
| 39 | Usage: setup_mfs |
| 40 | No options will just do the setup phase |
| 41 | -d Download and extract the MFS |
| 42 | -f <filename> Use provided mfs tar.bz2 archive |
| 43 | }}} |
| 44 | |
| 45 | This script will configure all three MFS images with your boss's root ssh key and a password of your choice. |
| 46 | |
| 47 | {{{ |
| 48 | [jjh@boss ~/testbed/install]$ sudo ./setup_mfs -d |
| 49 | Fetching http://www.deterlab.net/~jjh/Deter%20OS%20Images/deter-mfs.tar.bz2 and extracting to /usr/testbed/tftpboot |
| 50 | % Total % Received % Xferd Average Speed Time Time Time Current |
| 51 | Dload Upload Total Spent Left Speed |
| 52 | 100 37.4M 100 37.4M 0 0 3232k 0 0:00:11 0:00:11 --:--:-- 3350k |
| 53 | Please enter your MFS root password |
| 54 | Password: |
| 55 | Verifying - Password: |
| 56 | ################################################################################ |
| 57 | # Setting up MFS: /usr/testbed/tftpboot/freebsd/boot |
| 58 | # |
| 59 | Created md0... |
| 60 | Created /mnt-md0 |
| 61 | Changing the image root password... |
| 62 | Locking toor... |
| 63 | Unmounting /mnt-md0 |
| 64 | Removing mount point /mnt-md0 |
| 65 | Unconfiguring md0 |
| 66 | Running prepare on mfs and kernel |
| 67 | loader.conf: |
| 68 | loader.rc: |
| 69 | kernel: |
| 70 | mfsroot: mfsroot.gz updated... |
| 71 | ################################################################################ |
| 72 | # Setting up MFS: /usr/testbed/tftpboot/freebsd.newnode/boot |
| 73 | # |
| 74 | Created md0... |
| 75 | Created /mnt-md0 |
| 76 | Changing the image root password... |
| 77 | Locking toor... |
| 78 | Unmounting /mnt-md0 |
| 79 | Removing mount point /mnt-md0 |
| 80 | Unconfiguring md0 |
| 81 | Running prepare on mfs and kernel |
| 82 | loader.conf: |
| 83 | loader.rc: |
| 84 | kernel: |
| 85 | mfsroot: mfsroot.gz updated... |
| 86 | acpi.ko: |
| 87 | ################################################################################ |
| 88 | # Setting up MFS: /usr/testbed/tftpboot/frisbee/boot |
| 89 | # |
| 90 | Created md0... |
| 91 | Created /mnt-md0 |
| 92 | Changing the image root password... |
| 93 | Locking toor... |
| 94 | Unmounting /mnt-md0 |
| 95 | Removing mount point /mnt-md0 |
| 96 | Unconfiguring md0 |
| 97 | Running prepare on mfs and kernel |
| 98 | loader.conf: |
| 99 | loader.rc: |
| 100 | kernel: |
| 101 | mfsroot: mfsroot.gz updated... |
| 102 | [jjh@boss ~/testbed/install]$ |
| 103 | }}} |
33 | | == Setting up the MFS for testbed nodes == |
34 | | |
35 | | These filesystems are PXE booted over the network via TFTP and allow us to perform various parts of node maintenance. |
36 | | |
37 | | There are three different MFS (memory file system) images that come with DETER/Emulab. |
38 | | |
39 | | They are: |
40 | | |
41 | | * The Admin MFS (/tftpboot/freebsd) |
42 | | * Primarily used to create new operating system images using imagezip and ssh |
43 | | * The New Node MFS (/tftpboot/freebsd.newnode) |
44 | | * This is the default image for nodes not explicitly listed in dhcpd.conf. |
45 | | * Has scripts to try to identify what type of node is being booted based on node_type variables. |
46 | | * Runs a process to enable auto-detection of which switch ports the node is wired into. |
47 | | * The Frisbee MFS (/tftpboot/frisbee) |
48 | | * This image is used when loading an operating system image onto |
49 | | |
50 | | The reason all these tasks are split up among multiple images is to keep the image size down since they are booted over the network. With faster networks, these images will likely be rolled into a single Linux based image in the future. |
51 | | |
52 | | You will have to install your root SSH keys from boss into each MFS and change the root password. |
53 | | |
54 | | This process has been automated by the script setup_mfs in testbed/install. |
55 | | |