更新时间:2025-09-10 GMT+08:00
分享

安装jarvis-network-config软件包

操作背景

安装jarvis-network-config软件包,与Cloud-Init配合完成iMetal服务器的网络配置。

前提条件

操作步骤

  1. 进入jarvis-network-config-xxx.deb安装包所在目录,执行以下命令安装。
    dpkg -i jarvis-network-config-xxx.deb

    对于Ubuntu/Debian操作系统,使用dpkg -ixxx进行安装,xxx为deb包名。

    deb包的名称以实际为准。

  2. 执行vi /lib/systemd/system/jarvis-network-config.service配置启动项。
    # /lib/systemd/system/jarvis-network-config.service
    [Unit]
    Description=Network Config
    DefaultDependencies=no
    After=local-fs.target network.target systemd-resolved.service
    Wants=local-fs.target
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/jarvis-network-config rhel
    RemainAfterExit=yes
    TimeoutSec=0
    
    [Install]
    WantedBy=multi-user.target

相关文档