foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.64k stars 1.14k forks source link

How to join a virtio bridge interface ? #424

Open jphconstantin opened 3 years ago

jphconstantin commented 3 years ago

I am using virt-manager or the domain file to configure my vm. Host is Linux debian 4.19.0-14 I chose Catalina. I configured the bridge like this, br0 already exists for another vms:

My /etc/network/interfaces file has only this definitions for the bridge:

bridge_ports br0 auto br0

This is sufficient for the communication between the vms and with internet.

Here is from macOS.log:

-netdev tap,fd=30,id=hostnet0,vhost=on,vhostfd=31 \ -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:92:d4:7b,bus=pci.4,addr=0x1 \

MacOS side, I created in system preferences-network a new bridge called br0 and I included the ethernet adaptor. After a few seconds the interface becomes green but I have neither access to internet nor access to other vm.

What is the right procedure to join (from macOS) the existing bridge ?