Version 13 (modified by 5 years ago) ( diff ) | ,
---|
Site Navigation
Node Images
Summary
The imaging process is executed by the commands 'omf load' and 'omf save'
These provision a full disk image onto a set of nodes, and should work for any ext2/¾ filesystem.
After saving an image from one node, and loading it onto another, it will appear to the user that a copy of the hard disk has been made. Specifically, this is a block based copy, not a file based one.
The baseline image is a recommended starting point, as this provisioning tool does not currently work with standard .iso or similar files, instead using a custom compressed .ndz format.
Security and Access
Images
Images you save are saved to the directory "/export/omf-images-5.4/"
They have permissions to be writable by your user, and readable by your group, and all logged in users. You can customize this via the chmod and chown commands. For example, you may want to restrict the ability to load your images to only members of a specific group.
SSH
WARNING: For nodes that may be accessible externally, [mobile nodes, tunnels to an external subnet, etc] it is YOUR responsibility to set credentials to prevent remote login.
This can be done via the passwd command, and / or editing the file /etc/ssh/sshd_config The default baseline image allows passwordless based access as the user native, from RFC1918 private ip space: 10/8 172.16/12 192.168/16 Root login is disabled
Passwordless Sudo is enabled for the user native.
You should set up your own accounts, or customize your image's ssh config if you need something different.
List of pre-defined images
Image Name | Description | username | Updated | Status |
bare-1804.ndz | ubuntu18.04 + basic config | root | n/a | ready |
baseline-1804.ndz | bare + omf tools | root | n/a | |
baseline_uhd315-1804.ndz | baseline + uhd 3.15 | root | n/a | ready |
baseline_gr38-1804.ndz | baseline_uhd + gnuradio 3.8 | root | n/a | ready |
baseline_cuda-1804.ndz | baseline + cuda + drivers | root | n/a | |
baseline_tensorflow.ndz | baseline_cuda + tensorflow | root | n/a | |
baseline_pytorch.ndz | baseline_cuda + pytorch | root | n/a |
Baseline Image
The baseline image is a very bare install of Ubuntu 18.04 Bionic
You should customize it to you needs, and use that as a base for your experiments.
After saving an image, it will NOT track changes to the baseline, it is a copy, not a delta.
You may periodically want to re-create your experimental images when a new baseline has been relased, to support new hardware, or newer drivers, etc.
Baseline UHD
Baseline UHD has UHD images downloaded, and uhd3.14 installed from source.
Baseline SDR
Baseline CUDA
The cuda baseline image is meant to be run on the cosmos server machines containing V100 GPUs. It is built with Nvidia drivers for the GPUs and CUDA libraries for general purpose GPU programming. The baseline image is built with driver version 410.104 with cuda 10.0 libraries.
If you would like to create a cuda image using different versions of either the drivers or cuda, you can do so by starting with the baseline_1804 image.
- Select the driver version you need from the Nvidia Driver Downloads Page. Be sure to specify the product type as "Tesla" and the product series as "V-Series". Click download and then on the following page, right click on the "agree & download" and copy the link address. On the node, use wget or curl to download the link you copied.
- "dpkg -i nvidia-diag-driver-local-repo-ubuntu1804-410.104_1.0-1_amd64.deb" note: you may be asked to add a gpg key during the installation process. Use the command that is given.
- "apt-get update"
- "apt-get install cuda-drivers"
- log out of the node and use omf tell to turn it off and on again. When you log back into the node, running lsmod should demonstrate that the nvidia drivers have been loaded.
- Select the version of cuda you need from the cuda toolkit archive, then choose your operating system (Linux), architecture (x86_64), distribution (Ubuntu), and version (18.04). Choose "deb(local)" as the installer type. Again, copy the download link and use wget to download it onto the node. You can then follow the installation instructions on the download page.
- To verify your cuda installation, you can build and run some of the cuda samples. They'll be found in /usr/local/cuda/samples.
- You will also have to add the directory of cuda binaries to the path. Edit the .profile file and add 'PATH="PATH:/usr/local/cuda/bin"'
Building a baseline image
- Use pxe or usb to install ubuntu netinstall iso
- Start it up, run update and dist-upgrade
- set netplan.io to dhcp on all physical ethernet interfaces
- add dhclient-exit-hook/hostname to dynamically set hostname based on DHCP
- add prepare.sh script to generalize prior to saving images