multipass icon indicating copy to clipboard operation
multipass copied to clipboard

Network bridge interface disappears from network

Open JCzz opened this issue 2 years ago • 4 comments

Have you experienced that you bridge Network adapter disappears from you router, in my case a Unifi router. I can see the VM just after creating it, but after a few minutes it disappears - and I can not ping from other machines anymore(I can before it goes away) in the same network?

I have just created a VM with the following: multipass launch -n vm1 --network name=en10

Sidenote: I have a Parallels Desktop running on same machine in Bridge mode, that does not disappear.

Env:

MacOS Monterey
Arm64 M1

JCzz avatar Jun 12 '22 18:06 JCzz

Hi @JCzz, if you ping the instance through en10, it won't respond after the interface disappears. But it will respond the ping if you use the default (non-bridged) interface. If that the case?

luis4a0 avatar Jun 13 '22 18:06 luis4a0

Hi @luis4a0

Thanks for responding.

Sidenote: I have a Parallels Desktop running on same machine in Bridge mode, that does not disappear.

The bridge network interface goes down - when I try to ssh to the instance is says "The host is down", so the bridge is not responding. The VM will actually respond nicely through the bridge ip address on my LAN, for a few minutes after launch/creation.

I am aware that this could very well be a bug in the Unifi controller, but I am thinking that as it actually shows up in the beginning, maybe it could be some kind of signalling from the Bridge?

Note I have also created an issue on the Unifi forum(see above), hoping if someone there would reach out - until then maybe it could be a signalling issue in the bridge.

I am also aware that the bridge might be a QEMU interface problem - I dont know.

Let me know what you think

Thanks again

JCzz avatar Jun 14 '22 13:06 JCzz

Just tried to manually to create a bridge, to workaround this problem - hoping if I created a bridge manually it would keep running. I would then launch a VM connecting to this bridge with --network name=

sudo ifconfig bridge0 create
sudo ifconfig bridge0 addm en10
sudo ifconfig bridge0 up

But I get error: ifconfig: BRDGADD en0: Resource busy

JCzz avatar Jun 17 '22 09:06 JCzz

Anyone know if this is being looked at somewhere?

JCzz avatar Jun 23 '22 11:06 JCzz