Virtual machine KVM on laptop with ethernet and wlan

I grasp for about 85.7% how KVM and bridge networks work. I can setup a bridge with kde.s network manager creating a bridge adding a physical device and connecting a vm to the bridge. As I have a laptop and frequently switch between being mobile using wlan or at my desk using a wired docking station I wonder if it is possible to have my VMs stay connected and either use the ethernet or wlan as connection to the Internet and switching between them seemlessly. Is that at all possible?

There might be a little extra work required to get it to work with VMs, but someone wrote a Fedora Magazine article about using a network “bond” so they could move between wireless and wired networks seemlessly.

In your case, I assume you would need to add the bond to your existing bridge.

2 Likes

Bonding is an interesting aproach. Brings back memories of my telco times where everything’s double and failover (cables, switches, routers, firewalls, servers. Double the equipment for twice the price).
I do however recall that bonding might have routing problems (sending over one, response over the other→ not working) but if on physical layer only one is active it might indeed work.

You probably want to use the active/backup configuration mentioned at the end of the article.

Good luck. :slightly_smiling_face: