Skip to content

Configuring networking

Configure a static network for your automotive operating system (OS) image.

Prerequisites

  • A custom OS image manifest

Procedure

  1. Add SSH packages to your manifest:

    Extra SSH RPMs
    mpp-vars:
      name: networking
      # Add ssh
      extra_rpms:
        - openssh-server
        - openssh-clients
    
  2. Configure the static_ip variable overrides:

    Example static network configuration
      # Configure a static network
      use_static_ip: true # NetworkManager is not used. Hard-coded network configurations apply.
      static_ip: "169.254.6.21"
      static_ip_prefixlen: 24
      static_gw: "169.254.6.2"
      static_dns: "169.254.6.3"
      static_ip_iface: eth0
      static_ip_module: "virtio_net"
    
  3. Enable SSH root access:

    SSH root access configuration
      # Permit ssh login as root, so sshd runs (demo tests)
      - type: org.osbuild.sshd.config
        options:
          config:
            PasswordAuthentication: true
            PermitRootLogin: true
    
  4. Enable the SSH service through systemd:

    SSH service managed by systemd
      - type: org.osbuild.systemd
        options:
          enabled_services:
          - sshd.service
    

Next steps

  1. Configure the firewall for your OS image.
  2. Configure interprocess communications (IPCs) between your ASIL and QM containers and across partitions.
  3. Encrypt your filesystem.
  4. Enable BlueChi orchestration.
  5. Build your automotive OS image with kernel-automotive or your custom kernel.

© Red Hat