@@ -59,15 +59,33 @@ jobs:
59
59
sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"
60
60
- name : Install the dependencies for the Lima integration test
61
61
run : brew install iperf3 jq
62
- - name : " Lima: iperf3 (host -> vm1)"
62
+ - name : " Lima: vm1: prepare"
63
+ run : |
64
+ limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
65
+ limactl shell vm1 ip a
66
+ - name : " Lima: vm1: set up iperf3"
63
67
run : |
64
- limactl start --name=vm1 --tty=false template://vmnet
65
68
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
66
69
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
70
+ - name : " Lima: vm1: get the IP"
71
+ run : |
67
72
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
73
+ - name : " Lima: vm1: iperf3 (host -> vm1)"
74
+ run : |
68
75
iperf3 -c "$(cat /tmp/vm1_ip)"
69
- - name : " Lima: iperf3 (vm2 -> vm1)"
76
+ - name : " Lima: vm1: debug"
77
+ if : failure()
78
+ run : tail -n500 ~/.lima/vm1/*.log
79
+ - name : " Lima: vm2: prepare"
80
+ run : |
81
+ limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
82
+ limactl shell vm2 ip a
83
+ - name : " Lima: vm2: set up iperf3"
70
84
run : |
71
- limactl start --name=vm2 --tty=false template://vmnet
72
85
limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
86
+ - name : " Lima: vm2: iperf3 (vm2 -> vm1)"
87
+ run : |
73
88
limactl shell vm2 iperf3 -c "$(cat /tmp/vm1_ip)"
89
+ - name : " Lima: vm2: debug"
90
+ if : failure()
91
+ run : tail -n500 ~/.lima/vm2/*.log
0 commit comments