copyright | years | lastupdated | title | parent | grand_parent | nav_order |
---|---|---|---|---|---|---|
2019 - 2023 |
2023-02-01 |
Preparing an edge device |
Edge devices info |
Edge devices |
1 |
{:new_window: target="blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre} {:child: .link .ulchildlink} {:childlinks: .ullinks}
{: #installing_the_agent}
The following instructions guide you through the process of installing the required software on your edge device and registering it with {{site.data.keyword.edge_notm}} ({{site.data.keyword.ieam}}).
{: #suparch-horizon}
{{site.data.keyword.ieam}} supports architectures and operating systems with the following hardware architectures:
- x86_64
- {{site.data.keyword.linux_bit_notm}} devices or virtual machines that run Ubuntu 22.x (jammy), Ubuntu 20.x (focal), Ubuntu 18.x (bionic), Debian 10 (buster), Debian 9 (stretch)
- {{site.data.keyword.rhel}} 8.1 - 8.5 (via Docker), 8.6 - 8.7 and 9.0 - 9.1 (via Podman 4.x). See Notes.
- {{site.data.keyword.fedora}} Workstation 36, 37
- CentOS 8.1 - 8.5 (via Docker)
- SuSE 15 SP2
- ppc64le
- {{site.data.keyword.linux_ppc64le_notm}} devices or virtual machines that run Ubuntu 20.x (focal) or Ubuntu 18.x (bionic)
- {{site.data.keyword.rhel}} 7.6 - 9.1
- ARM (32-bit)
- {{site.data.keyword.linux_notm}} on ARM (32-bit), for example Raspberry Pi, running Raspberry Pi OS buster or bullseye
- ARM (64-bit)
- {{site.data.keyword.linux_notm}} on ARM (64-bit), for example NVIDIA Jetson Nano, TX1, or TX2, running Ubuntu 18.x (bionic)
- {{site.data.keyword.macOS_notm}} on ARM (64-bit) Apple Silicon M1 / M2
- Mac (both {{site.data.keyword.intel}} and M1 / M2 )
- {{site.data.keyword.macOS_notm}}
Notes:
- Installation of edge devices with SuSE is only supported by the Advanced manual agent installation and registration method.
- CentOS and {{site.data.keyword.rhel}} 8.5 or earlier on {{site.data.keyword.ieam}} {{site.data.keyword.version}} only support Docker as a container engine.
- While {{site.data.keyword.ieam}} {{site.data.keyword.version}} supports running {{site.data.keyword.rhel}} 8.x with Docker, it is officially unsupported by {{site.data.keyword.rhel}}.
- {{site.data.keyword.ieam}} {{site.data.keyword.version}} supports Podman 4.x on {{site.data.keyword.rhel}} 8.6, {{site.data.keyword.rhel}} 9.0 - 9.1, and {{site.data.keyword.fedora}} 36, 37 Workstation.
{: #size}
The agent requires:
- 100 MB random access memory (RAM), including docker. RAM increases this amount by approximately 100 K per agreement, plus any additional memory that is required by workloads that run on the device.
- 400 MB disk (including docker). Disk increases this amount based on the size of the container images that are used by workloads and the size of the model objects (times 2) that are deployed to the device.
{: #installing_the_agent}
The following instructions guide you through the process of installing the required software on your edge device and registering it with {{site.data.keyword.ieam}}.
{: #install-config}
To install and configure your edge device, click the link that represents your edge device type:
- {{site.data.keyword.linux_bit_notm}} devices or virtual machines
- {{site.data.keyword.rhel}} 8.x / 9.x devices or virtual machines
- {{site.data.keyword.linux_ppc64le_notm}} devices or virtual machines
- {{site.data.keyword.linux_notm}} on ARM (32-bit); for example, Raspberry Pi running Raspberry Pi OS
- {{site.data.keyword.linux_notm}} on ARM (64-bit); for example, NVIDIA Jetson Nano, TX1, or TX2
- {{site.data.keyword.macOS_notm}}
{: #x86-machines}
{: #hard-req-x86}
- 64-bit Intel® or AMD device or virtual machine
- An internet connection for your device (wired or WiFi)
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware
{: #proc-x86}
Prepare your device by installing a Debian, {{site.data.keyword.rhel}}, or Ubuntu {{site.data.keyword.linux_notm}}. The instructions in this content are based on a device that uses Ubuntu 18.x.
Install the most recent version of Docker or Podman on your device. For more information, see Install Docker {:target="_blank"}{: .externalLink} or Podman.io {:target="_blank"}{: .externalLink}.
Now that your edge device is prepared, continue on to Installing the agent.
{: #rhel8}
{: #hard-req-rhel8}
- 64-bit Intel® device, AMD device, ppc64le device, or virtual machine
- An internet connection for your device (wired or WiFi)
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware
{: #proc-rhel8}
Prepare your device by installing {{site.data.keyword.rhel}} 8.x or 9.x
-
Install packages:
If you are running {{site.data.keyword.rhel}} 9.0 or above, install the required Podman 4.x and Netavark packages.
dnf install podman netavark
{: codeblock}
If you are running {{site.data.keyword.rhel}} 8.6 or above, install the Podman 4.x packages by installing the
container-tools:rhel8
module.dnf module install container-tools:rhel8
-
Switch the network stack from Container Network Interface (CNI) to Netavark. The {{site.data.keyword.horizon}} agent requires the network backend to be configured to use Netavark instead of CNI so that the agent can set up networking scenarios such as dependent services between containers. Follow the steps in the Red Hat documentation switching the network stack {:target="_blank"}{: .externalLink} chapter.
If you are running {{site.data.keyword.rhel}} 8.5 (or earlier), remove Podman and other pre-included packages, then install Docker as described here.
-
Uninstall packages:
yum remove buildah skopeo podman containers-common atomic-registries docker container-tools
{: codeblock}
-
Remove remaining artifacts and files:
rm -rf /etc/containers/* /var/lib/containers/* /etc/docker /etc/subuid* /etc/subgid*
{: codeblock}
-
Delete any associated container storage:
cd ~ && rm -rf /.local/share/containers/
{: codeblock}
-
Install Docker by following the instructions for Docker CENTOS Installation {:target="_blank"}{: .externalLink}.
-
Configure Docker to start on boot by default and follow any other Docker post installation steps {:target="_blank"}{: .externalLink}.
sudo systemctl enable docker.service sudo systemctl enable containerd.service
{: codeblock}
Now that your edge device is prepared, continue on to Installing the agent.
{: #ppc64le-machines}
{: #hard-req-ppc64le}
- ppc64le device or virtual machine
- An internet connection for your device (wired or WiFi)
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware
{: #proc-ppc64le}
Prepare your device by installing {{site.data.keyword.rhel}}.
Install the most recent version of Docker on your device.
Now that your edge device is prepared, continue on to Installing the agent.
{: #arm-32-bit}
{: #hard-req-pi}
- Raspberry Pi 3A+, 3B, 3B+, or 4 (preferred)
- Raspberry Pi A+, B+, 2B, Zero-W, or Zero-WH
- MicroSD flash card (32 GB preferred)
- An appropriate power supply for your device (2 Amp or greater preferred)
- An internet connection for your device (wired or WiFi) Note: Some devices require extra hardware for supporting WiFi
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware
{: #proc-pi}
- Prepare your Raspberry Pi device.
-
Flash the Raspberry Pi OS {:target="_blank"}{: .externalLink} {{site.data.keyword.linux_notm}} image onto your MicroSD card.
For more information about how to flash MicroSD images from many operating systems, see Raspberry Pi Foundation {:target="_blank"}{: .externalLink}. These instructions use Raspberry Pi OS for WiFi and SSH configurations.
Warning: Flashing an image onto your MicroSD card permanently erases any data that is already on your card.
-
(optional) If you plan to use WiFi to connect to your device, edit your newly flashed image to provide the appropriate WPA2 WiFi credentials.
If you plan to use a wired network connection, you do not need to complete this step.
On your MicroSD card, create a file that is named
wpa_supplicant.conf
within the root level folder that contains your WiFi credentials. These credentials include your network SSID name and passphrase. Use the following format for your file:country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="<your-network-ssid>" psk="<your-network-passphrase>" key_mgmt=WPA-PSK> }
{: codeblock}
-
(optional) If you want or need to run a Raspberry Pi device with no monitor or keyboard, you need to enable SSH connection access to your device. SSH access is unavailable by default.
To enable the SSH connection, create an empty file on your MicroSD card that is named
ssh
. Include this file in the root level folder for your card. The inclusion of this file provides you with the ability to connect to your device with the default credentials. -
Unmount your MicroSD card. Ensure that you safely eject the card from the device that you are using to edit the card so that all of your changes are written.
-
Insert the MicroSD card into your Raspberry Pi device. Attach any optional sensor hardware and connect the device to your power supply.
-
Start your device.
-
Change the default password for your device. In Raspberry Pi OS flash images, the default account uses the login name
pi
and the default passwordraspberry
.Log in to this account. Use the standard {{site.data.keyword.linux_notm}}
passwd
command to change the default password:passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
{: codeblock}
-
Install the most recent version of Docker on your device. For more information, see Install Docker {:target="_blank"}{: .externalLink}.
-
Now that your edge device is prepared, continue on to Installing the agent.
{: #arm-64-bit}
{: #hard-req-nvidia}
- NVIDIA Jetson Nano, or TX2 (recommended)
- NVIDIA Jetson TX1
- HDMI Business Monitor, USB hub, USB keyboard, USB mouse
- Storage: at least 10 GB (SSD recommended)
- An internet connection for your device (wired or WiFi)
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware.
{: #proc-nvidia}
- Prepare your NVIDIA Jetson device.
-
Install the most recent NVIDIA JetPack on your device. For more information, see:
- (TX1) Jetson TX1 {:target="_blank"}{: .externalLink}
- (TX2) Harness AI at the Edge with the Jetson TX2 Developer Kit {:target="_blank"}{: .externalLink}
- (Nano) Getting Started With Jetson Nano Developer Kit {:target="_blank"}{: .externalLink}
You need to install this software and any prerequisite software before you install the {{site.data.keyword.horizon}} software.
-
Change the default password. In the JetPack installation procedure, the default account uses the login name
nvidia
and the default passwordnvidia
.Log in to this account. Use the standard {{site.data.keyword.linux_notm}}
passwd
command to change the default password:passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
{: codeblock}
-
Install the most recent version of Docker on your device. For more information, see Install Docker {:target="_blank"}{: .externalLink}.
-
Now that your edge device is prepared, continue on to Installing the agent.
{: #mac-os-x}
{: #hard-req-mac}
- 2010 or later 64-bit {{site.data.keyword.intel}} Mac device
- 2020 or later 64-bit arm64 Apple M1 / M2 Mac device
- MMU virtualization is required
- {{site.data.keyword.macOS_notm}} X version 10.11 ("El Capitan") or later
- An internet connection for your machine (wired or WiFi)
- (optional) Sensor hardware: Many {{site.data.keyword.horizon}} edge services require specialized sensor hardware
{: #proc-mac}
- Prepare your device.
-
Purchase a Docker Desktop license, if necessary, and install the most recent version of Docker on your device. For more information, see the Docker installation for Mac {:target="_blank"}{: .externalLink} documentation.
-
Use Homebrew to install socat {:target="_blank"}{: .externalLink}
-