Skip to content

Instance status doesn't show when vde_vmnet network has broken #178

Open
@jandubois

Description

@jandubois

Running examples/vmnet.yaml:

$ l ls
NAME     STATUS     SSH                ARCH      DIR
vmnet    Running    127.0.0.1:60105    x86_64    /Users/jan/.lima/vmnet

$ ping 192.168.105.21
PING 192.168.105.21 (192.168.105.21): 56 data bytes
64 bytes from 192.168.105.21: icmp_seq=0 ttl=64 time=0.553 ms
64 bytes from 192.168.105.21: icmp_seq=1 ttl=64 time=0.420 ms
^C
--- 192.168.105.21 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.420/0.487/0.553/0.066 ms

After removing the vde_vmnet service, the status remains unchanged even though the network no longer works:

$ sudo make uninstall PREFIX=/opt/vde
launchctl unload -w "/Library/LaunchDaemons/io.github.lima-vm.vde_vmnet.plist"
/Library/LaunchDaemons/io.github.lima-vm.vde_vmnet.plist: Operation now in progress
launchctl unload -w "/Library/LaunchDaemons/io.github.virtualsquare.vde-2.vde_switch.plist"
/Library/LaunchDaemons/io.github.virtualsquare.vde-2.vde_switch.plist: Operation now in progress
rm -f "/Library/LaunchDaemons/io.github.lima-vm.vde_vmnet.plist"
rm -f "/Library/LaunchDaemons/io.github.virtualsquare.vde-2.vde_switch.plist"
rm -f "//opt/vde/bin/vde_vmnet"

$ ping 192.168.105.21
PING 192.168.105.21 (192.168.105.21): 56 data bytes
Request timeout for icmp_seq 0
^C
--- 192.168.105.21 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss

$ l ls
NAME     STATUS     SSH                ARCH      DIR
vmnet    Running    127.0.0.1:60105    x86_64    /Users/jan/.lima/vmnet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions