Site cover image

Site icon image 出不精の雑書きブログ

個人メモを公開したりしてる、ほんとに雑なやつ

💻 containerlabでOpenWRT(QEMU)が動かない問題の解決

発生した症状

  • OpenWRT の Web GUI へアクセス不可
    • コンテナ(実態はQEMU?) のstatusがUnhealtyでスタックし、HTTP 応答が返えって来ない

解決方法

詳細手順

ビルド

git clone git@github.com:vrnetlab/vrnetlab.git
cd vrnetlab/openwrt
${https://downloads.openwrt.org から openwrt-24.10.0-x86-64-generic-ext4-combined.img をカレントにダウンロード}

make docker-image

main.clab.yml

ymlは特に作業前後で変えてない。
openwrのimageだけ新しくビルドしたものに差し変えるように

name: EVPN_VXLAN_Verify

mgmt:
  network: shared
  ipv4-subnet: 100.64.20.0/24

topology:
  kinds:
    ceos:
      image: ceos:4.36.1F
    openwrt:
      image: vrnetlab/vr-openwrt:24.10.0
  nodes:
    openwrt1:
      kind: openwrt
      mgmt-ipv4: 100.64.20.11
      ports:
        - 8080:80
        - 8443:443
        - 10022:22
      env:
        CLAB_MGMT_PASSTHROUGH: "false"
        PACKAGES: "luci luci-ssl uhttpd rpcd tinc htop tcpdump btop luci-proto-gre"
    ceos1:
      kind: ceos
      mgmt-ipv4: 100.64.20.12
    openwrt2:
      kind: openwrt
      mgmt-ipv4: 100.64.20.13
      ports:
        - 8081:80
        - 8444:443
      env:
        CLAB_MGMT_PASSTHROUGH: "false"
        PACKAGES: "luci luci-ssl uhttpd rpcd tinc htop tcpdump btop luci-proto-gre"

  links:
    - endpoints: ["openwrt1:eth1", "ceos1:eth1"]
    - endpoints: ["ceos1:eth2", "openwrt2:eth1"]