From 526e2ad25ba1db50e573775ebe751eaca42476d1 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 21 Nov 2024 08:58:13 +0900 Subject: [PATCH 1/3] CI: add macos-15-large Signed-off-by: Akihiro Suda --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a2b8fe..79cd663 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,9 +19,7 @@ jobs: # macos-13-large is used as macos-13 seems too flaky. # macos-14 (ARM) and later cannot be used for the most part of the job # due to the lack of the support for nested virt. - # - # TODO: add macos-15-large https://github.com/lima-vm/socket_vmnet/pull/63 - platform: [macos-13-large, macos-14-large] + platform: [macos-13-large, macos-14-large, macos-15-large] runs-on: ${{ matrix.platform }} timeout-minutes: 40 steps: From ad667b18b5b91701b69fbdcc93407a48cc5da8fd Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 21 Nov 2024 08:57:33 +0900 Subject: [PATCH 2/3] CI: debug Signed-off-by: Akihiro Suda --- .github/workflows/test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79cd663..3d21d9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,13 +84,24 @@ jobs: limactl shell vm1 ip a - name: "Lima: vm1: set up iperf3" run: | - limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3 + # net-tools for netstat + limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3 net-tools limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s - name: "Lima: vm1: get the IP" run: | + set -eux limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP + # + limactl shell vm1 netstat -rn + limactl shell vm1 ping -c 3 "$(cat /tmp/vm1_ip)" + # - name: "Lima: vm1: iperf3 (host -> vm1)" run: | + set -eux + # + netstat -rn + ping -c 3 "$(cat /tmp/vm1_ip)" + # iperf3 -c "$(cat /tmp/vm1_ip)" - name: "Lima: vm1: debug" if: failure() From 283be4690decdd4573547f09f8f5109b9e44a65a Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Sat, 23 Nov 2024 00:08:54 +0200 Subject: [PATCH 3/3] Start iperf3 service instead of systemd-run This is the standard way to use the iperf3 server. Signed-off-by: Nir Soffer --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d21d9f..008fb22 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,7 +86,7 @@ jobs: run: | # net-tools for netstat limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3 net-tools - limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s + limactl shell vm1 sudo systemctl start iperf3.service - name: "Lima: vm1: get the IP" run: | set -eux