Difference between revisions of "Node Deployment Guide"
m |
Katie.peters (talk | contribs) |
||
Line 5: | Line 5: | ||
If you encounter issues through any of these steps, check the [[Node Provider Troubleshooting]] page. If that does not solve your problem, you are encouraged to ask for assistance in the [[Node Provider Matrix channel]]. | If you encounter issues through any of these steps, check the [[Node Provider Troubleshooting]] page. If that does not solve your problem, you are encouraged to ask for assistance in the [[Node Provider Matrix channel]]. | ||
− | Note: the following instructions are for onboarding nodes without using a NitroKey HSM. If you | + | Note: the following instructions are for onboarding nodes without using a NitroKey HSM. If your data center was set up with an HSM, then you will need to follow the legacy [[NitroKey HSM installation runbook]]. |
== Requirements == | == Requirements == | ||
* A USB (3.0 speed that can hold at least 4GB) to put the image file on (Faster USBs will allow the process to go much faster.) | * A USB (3.0 speed that can hold at least 4GB) to put the image file on (Faster USBs will allow the process to go much faster.) | ||
* The <code>node_operator_private_key.pem</code> for your data center (Acquired from [[Node Provider Onboarding#5. Setup the Node Operator keys|Node Provider Onboarding step 7]]) | * The <code>node_operator_private_key.pem</code> for your data center (Acquired from [[Node Provider Onboarding#5. Setup the Node Operator keys|Node Provider Onboarding step 7]]) | ||
+ | ** If your data center was set up with an HSM, please see the [[NitroKey HSM installation runbook|NitroKey HSM node installation runbook]]. | ||
* It is recommended that each server have a label with the BMC's MAC address for ease of identification in future dashboard upgrades. | * It is recommended that each server have a label with the BMC's MAC address for ease of identification in future dashboard upgrades. | ||
Revision as of 21:11, 17 July 2023
This runbook covers all steps necessary to install the Internet Computer Operating System (IC-OS).
The physical machine is expected to be racked and stacked according to its respective manual.
If you encounter issues through any of these steps, check the Node Provider Troubleshooting page. If that does not solve your problem, you are encouraged to ask for assistance in the Node Provider Matrix channel.
Note: the following instructions are for onboarding nodes without using a NitroKey HSM. If your data center was set up with an HSM, then you will need to follow the legacy NitroKey HSM installation runbook.
Requirements
- A USB (3.0 speed that can hold at least 4GB) to put the image file on (Faster USBs will allow the process to go much faster.)
- The
node_operator_private_key.pem
for your data center (Acquired from Node Provider Onboarding step 7)- If your data center was set up with an HSM, please see the NitroKey HSM node installation runbook.
- It is recommended that each server have a label with the BMC's MAC address for ease of identification in future dashboard upgrades.
1. Download installation image
🚨🚨🚨 Download the IC-OS image and checksum released 2023-07-10, 7:38:52 AM UTC. Do NOT use the IC-OS image and checksum released 2023-07-17, 2:20:46 PM UTC.
Download the latest release of the IC-OS USB Installer Image and the corresponding checksum from the Internet Computer Dashboard Releases.
2. Verify checksum and unarchive file
Mac OS X
- Open the Terminal and type:
shasum -a 256 ~/Downloads/disk-img.tar.gz
- Compare the calculated checksum with the IC-OS installation image checksum file downloaded in the previous step. Warning: Only continue if they are identical, otherwise please post your issue in the Node Provider Matrix channel.
- Open the Terminal and type:
tar xzvf ~/Downloads/disk-img.tar.gz
- Open the Terminal and type:
Linux / Ubuntu
- Open the Terminal and type:
sha256sum ~/Downloads/disk-img.tar.gz
- Compare the calculated checksum with the IC-OS installation image checksum file downloaded in the previous step. Warning: Only continue if they are identical, otherwise please post your issue in the Node Provider Matrix channel.
- Open the Terminal and type:
tar xzvf ~/Downloads/disk-img.tar.gz
- Open the Terminal and type:
Windows
- Open PowerShell and type:
Get-FileHash -Algorithm SHA256 .\Downloads\disk-img.tar.gz
- Compare the calculated checksum with the IC-OS installation image checksum file downloaded in the previous step. Warning: Only continue if they are identical, otherwise please post your issue in the Node Provider Matrix channel.
- Open PowerShell and type:
tar xzvf .\Downloads\disk-img.tar.gz
- Open PowerShell and type:
3. Create Bootable USB Stick
Mac OS X
- Open the Terminal and type:
diskutil list
- All available drives should be shown. Identify which device corresponds to your USB stick. You may need to unmount the USB drive:
sudo diskutil unmount /dev/YOUR_USB_DEVICE_MOUNTED_PARTITION # E.g. /dev/disk4s1
- The file path is an example. Use the absolute path to the downloaded image. Warning: You risk losing your own data if you specify a wrong device.
- If you get a “device is busy” error from the dd command, you can try running the following command to unmount all of the partitions on the disk, then re-run the dd command:
sudo dd if=/Users/YOUR_USER_NAME/Downloads/disk.img of=/dev/YOUR_USB_DEVICE bs=1M
sudo diskutil unmountDisk /dev/YOUR_USB_DEVICE # E.g. /dev/disk4
Linux / Ubuntu
- Open the Terminal and type
blkid
- All available drives should be shown. Identify which device corresponds to your USB stick. You may need to unmount the USB drive:
sudo diskutil unmount /dev/YOUR_USB_DEVICE_MOUNTED_PARTITION # E.g. /dev/sdb1
- Replace /dev/YOUR_USB_DEVICE with the device that corresponds to your USB stick. Warning: You risk losing your own data if you specify a wrong drive.
sudo dd if=~/Downloads/disk.img of=/dev/YOUR_USB_DEVICE bs=1M
Windows
- Download and install Rufus Portable
- Start Rufus
- Select the USB stick under device and select the previously downloaded IC-OS disk image and press start
- You may see some warnings. Make sure you don't have any other USBs in your computer and chose OK
- The "Ready" bar will go from left to right as it completes.
4. Add configuration
A. Open Config.ini in a text editor
Mac OS X
- Open Finder. You should now be able to see the CONFIG partition. If it's not visible, remove the USB and insert it again.
- Double-click
config.ini
to open it in TextEdit.
Linux
- Open the File Manager. You should now be able to see the CONFIG partition. If it's not visible, remove the USB and insert it again.
- Double-click
config.ini
to open it in KWrite.
Windows
- Open the Disk Management utility with a right click on the Start menu
- Right click the CONFIG partition
- Select Change drive letter or paths...
- Select any letter from the drop-down list
- Click OK.
- You should now be able to see the CONFIG partition in your Windows Explorer. Select the
config.ini
configuration file - Click on Edit to open it.
B. Edit Config.ini
- Insert your IPv6 prefix, subnet and gateway.
-
- The IPv6 prefix should consist of four groups of hexadecimal digits, separated by colons (':'). Each group can contain up to four hex digits.
- For example, a valid prefix could look like this:
2a00:fb01:400:100
- Important:
- The prefix should not have a trailing ':'
- IPv6 CIDR notation allows for a double colon ('::') to represent consecutive groups of zeroes in an address. However, the prefix configuration in this context does not support '::'. The '::' shorthand should not be used. Even if some groups are all zeros, they must be explicitly written out.
-
- Save the changes.
- If you have trouble saving this file directly, you may need to save to a known location first, then copy the file into place.
- If you need help, please do not hesitate to post your issue in the Node Provider Matrix channel.
C. Copy Node Operator private key to config partition
- Copy
node_operator_private_key.pem
(created in Node Provider Onboarding step 7) to theCONFIG
partition. This file should have the namenode_operator_private_key.pem
, and sit next toconfig.ini
, NOT inside thessh_authorized_keys
folder.
5. Connect Crash Cart
- In order to configure the UEFI and initiate the installation of the IC-OS, please connect a crash cart to the physical machine.
- Plug-in the VGA/Video, keyboard and IC-OS USB stick
6. UEFI Setup and Boot Menu
Use the related page below to set up the BIOS/UEFI according to your hardware vendor.
Important: Do NOT enable the RAID bios setting. Doing so will cause issues with the IC-OS installation.
Resume from this point when you are finished configuring the BIOS.
7. IC-OS Installation
- Please wait while the USB Installer is booting up. This process can take up to 3 minutes.
- The IC-OS installation starts. Please keep an eye on the progress. This part can take up to 10 minutes. Please remember to check the Possible Node Onboarding Errors page if you encounter any errors.
- If the installation finished successfully, it will initiate a reboot.
8. First Boot
Please remember to check the Possible Node Onboarding Errors page if you encounter any errors onboarding. Do NOT re-try the onboarding after proceeding to this section, as this can cause duplication within the registry.
- Once you see this message, you may unplug the USB stick and VGA/Video. You can ignore the message to remove the HSM, as you did not use an HSM to onboard your nodes.
Congratulations! Your machine successfully joined the Internet Computer! Again, once you see this message, do NOT re-try the onboarding after proceeding to this section, as this can cause duplication within the registry. The machine has joined the IC and the Node Provider will start receiving rewards!
9. Verify node onboarding
- Verify that your node was successfully onboarded by checking its status on the dashboard is set to either “Awaiting Subnet” or “Active in Subnet”.
- The dashboard can be searched by your Node Provider principal. There, you should see the Node ID of your node (Node ID outputted in step 8).
- If the status of your node is not either “Awaiting Subnet” or “Active in Subnet”, or if it is not listed under your Node Provider principal, you should contact the Node Provider Matrix channel for assistance.