Hi
I have installed KVM in opensuse 13.2.While creating network bridge i lost my internet connectivity.After that i installed windows 2008 r2 in KVM.And
while trying to get back internet connectivity in my opensuse i deleted two bridge network connections from here.
Network Devices->Network Settings->Overview
Now i got my internet connectivity back,but i cannot run my windows server in the KVM.It shows an error message like this
āError starting domain:cannot get interface MTU on ābr1ā:No such deviceā
How can i create the bridge network with internet connection on both virtual machine and in my PC(OS: OpenSuse)?
Explanation of what is happening and Proper Fix (if you didnāt remove your bridge device)
When you create a Linux Bridge Device (eg br0 if you create using YAST, they are named differently but are the same devices when you create using other tools like VMware, VBox, and may be named differently), your physical connections are re-directed through the Device, and this applies to **both **your virtual Guests **and **your Host. You might have been able to figure this out if you ran āip addrā
This also means that although not documented, if your Host is configured with a static address (either Wicked or NM) then after you āInstall Hypervisor and Toolsā in YAST you need to go back into YAST and possibly modify your IP address and definitely your routing tab and choose the Bridge as your ādeviceā instead of the previous physical network interface. And, of course modify your DG accordingly.
Your situation after you removed your Bridge Device
Frankly, Iāve never done what you described so Iām recommending without actually having triedā¦ the following
You can manually create a new Bridge Device, thatās not difficult to do in YAST, just click the āAddā¦ā button.
You can manually create a new Bridge Device using the command line tool brctl. You can also run brctl to display all avaiable bridge devices and manage/modify/remove any you wish.
You might try running the āInstall Hypervisor and Toolsā YAST tool again. I have no idea if it can be run again (my guess is yes) and if it will detect missing network bridge devices, offering to install again.
If you are really unsure of your situaiton, remember to write down your actions so that if necessary you can undo them, and anything you donāt understand you can post here again.
I had one of those āsmack your headā momentsā¦
I havenāt had to create new networks for awhile so had slipped my mind,
Instead of the other methods I described above to create a new Linux Bridge Device,
If you have libvirt installed (typically for Xen or KVM, but now also with LXC but also supports nearly a dozen other virtualization as well)
Simply open vm manager and create a new virtual network.
LBD created by vm manager will have a āvirbrā name instead of ābrā eg virbr0.
In fact, I highly recommend creating <all> your LBD this way because you can create LBD objects easily with many features like type of networking (bridging, NAT, Host-only), embedded DHCP and more. LBD created by YAST only do bridging, and itās complicated to create LBD with these features using brctl.
After you create your virtual networks, you can check your Host networking and if necessary modify the routing and default gateway as I described above, but is not always the caseā¦ depending on the LBD features.