[KVM] Guest network connection irreparably dies if the host is disconnected
Every time I disconnect my host from the Internet, all of my virtual machines lose network access permanently until I reboot the host. This happens on Linux (tested various distros) and Windows guests. Is there a workaround for this? As a last resort I could live with having to reboot the guests, but rebooting the host is overkill. Any kind of forced reboot gives me PTSD flashbacks of my Windows days.
I'm running KVM/QEMU/virt-manager on MX Linux 21.3 |
Vaguely, it has to do with your network topography and how you set it up. The problem I had was disconnecting a guest caused the host to lose its external IP4 address. Now I keep the guests on their bridge and the external interface separate. I don't know if you're using netplan or network manager or scripts because I'm not familiar with MX Linux, but there's a way to do it. Yes, reboot is overkill and unneeded.
|
What network settings do you have on KVM? Do you understand the difference in the various settings, particularly between NAT and bridged?
|
Quote:
Quote:
|
I figured it out on my own guys!! This is all I have to do to restore networking to my guests:
``` ip addr add 192.168.122.1/24 dev virbr0 ip link set virbr0 up ``` |
All times are GMT -5. The time now is 11:14 AM. |