Difference between revisions of "Troubleshooting KVM VM networking"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb>KVM</yambe:breadcrumb>
<yambe:breadcrumb self="Troubleshooting KVM VM networking">KVM|KVM</yambe:breadcrumb>
=Troubleshooting KVM VM networking=
=Troubleshooting KVM VM networking=



Revision as of 08:31, 22 January 2019

<yambe:breadcrumb self="Troubleshooting KVM VM networking">KVM|KVM</yambe:breadcrumb>

Troubleshooting KVM VM networking

If the VM also creates a virbr0 network within same range as the VMs eth0 virtual IP then network of VM stops working after while and just using 'ifconfig virbr0 down' is not enough to make network work.

In such cases we can use following steps to enable networking:

  • ifconfig virbr0 <some_other_network>
  • ifconfig virbr0 down
  • service network restart
  • Ping to virbr0 IP of base machine
  • Do 'ip neigh show' on base machine and verify that MAC address of VM is learned correctly.
  • Do 'ip neigh show' on VM and verify that base machines MAC is learned correctly.