Virtual machine is not running

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. :open_mouth:

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.

HTH,
TSU

After thinking about your situation for a bit,

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.

TSU