VPX Agent auf X86/NVIDIA Server installieren
Installation der NVIDIA-Drivers und der Docker-Engine
Überprüfen Sie zunächst unsere Systemanforderungen.
Installation der Docker-Engine
Installation der NVIDIA-Drivers und CUDA
Installation des Container-Toolkits von NVIDIA
Nachdem Sie die Installationsschritte durchgeführt haben, sollten Sie einen ähnlichen Output erhalten:
docker run --rm --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.86 Driver Version: 470.86 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
Installation von Azure IoTEdge
Installation von IotEdge 1.4 (lediglich das Paket aziot-edge wird benötigt).
Konfiguration von Azure IotEdge
Sie erhalten eine Zip-Datei von uns, die Konfigurationsdateien enthält. Ersetzen Sie $ID mit der Geräte-ID, die Sie von uns bekommen haben.
ID=<DEVICE-ID>
sudo mkdir /opt/swarm/
sudo mkdir /opt/swarm/config
sudo mkdir -p /etc/iotedge/
sudo cp $ID/VPX-$ID/config.yaml /etc/iotedge/config.yaml
sudo chown iotedge:iotedge /etc/iotedge/config.yaml
sudo cp $ID/VPX-$ID/config.toml /etc/aziot/config.toml
sudo mkdir -p /var/lib/iotedge/hsm/
sudo cp $ID/all/azure-production-certificates/* /var/lib/iotedge/hsm/
sudo chown aziotcs:aziotcs /var/lib/iotedge/hsm/iot-edge-device-SwarmEdgeDeviceCA-full-chain.cert.pem
sudo chown aziotcs:aziotcs /var/lib/iotedge/hsm/swarm-iot.root.ca.cert.pem
sudo chown aziotks:aziotks /var/lib/iotedge/hsm/iot-edge-device-SwarmEdgeDeviceCA.key.pem
sudo iotedge config apply -c '/etc/aziot/config.toml'
An dieser Stelle empfehlen wir, die IoTEdge-Protokolle auf Fehler zu überprüfen.
iotedge system logs -- -f
Im Swarm Control Center sehen Sie Ihr Gerät nun als Unnamed Device mit der entsprechenden ID:

Nun zieht die IoTEdge-Runtime die Docker-Images. Sobald dies abgeschlossen ist, kann das Gerät im Control Center konfiguriert werden.
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
118c96889ec7 swarm.azurecr.io/curiosity-x64-tensorrt:6.6.33 "/usr/local/bin/nvid…" 6 days ago Up 6 days 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp curiosity
95d63beb336e swarm.azurecr.io/azure-module-x64:1.7.1 "java -jar app.jar" 6 days ago Up 6 days azure-module
3003fd8db258 mcr.microsoft.com/azureiotedge-hub:1.1.15 "/bin/sh -c 'echo \"$…" 3 months ago Up 4 weeks 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:5671->5671/tcp, :::5671->5671/tcp, 0.0.0.0:8883->8883/tcp, :::8883->8883/tcp edgeHub
6f469d38d91d mcr.microsoft.com/azureiotedge-metrics-collector:1.0.9 "/bin/sh -c 'echo \"$…" 3 months ago Up 3 months azure-monitor
88d10c824af0 mcr.microsoft.com/azureiotedge-agent:1.1.15 "/bin/sh -c 'exec /a…" 3 months ago Up 3 months edgeAgent
Nächste Schritte: Konfigurieren Sie Ihren Anwendungsfall.
Last updated
Was this helpful?