I have a server with 3 NIC's with OpenSUSE 13.2 and KVM installed. I have installed Debian as guest.

My network is, DHCP server is at Now I want my guest to also get a 192.168.88.x IP-address from the DHCP server. This behaviour is possible with VirtualBox using "Bridged networking".

I found this page about networking in KVM: http://www.linux-kvm.org/page/Networking. User Networking, private virtual bridge and public virtual bridge isn't what I want.

I instead used "Virtual network defualt: NAT". Now my VM is getting an IP, but 192.168.122.x.

How can I give the VM an IP in the same range as the host os, without loosing the IP of the host os?



You want the public bridge option. On your OpenSUSE KVM host the IP address moves from the physical NIC to the bridge interface and keeps it accessible on your network and your Debian guest virtual NIC is connected through the bridge which also makes it attached to the same local network.

Using the NAT default means your Debian guest is effectively hidden behind the OpenSUSE KVM host and uses a private network for any direct communication between each other but when communicating with other hosts on your network is NAT'd to whatever IP the OpenSUSE host has.

  • But then I can't acces my OpenSUSE KVM via ssh/ICMP etc?
    – LEDfan
    Dec 24 '14 at 15:09
  • @LEDfan Why would that be the case? The public bridge is what you want. Dec 24 '14 at 15:27
  • @MichaelHampton I'm not sure, but the KVM host lost his public IP, so how can I connect with it?
    – LEDfan
    Dec 24 '14 at 15:56
  • @LEDfan What are you talking about? Dec 24 '14 at 16:00
  • I found out what I was doing wrong, see my answer.
    – LEDfan
    Apr 29 '15 at 5:41

Some time ago I found out what I was doing wrong. I was creating the network in bridge in YAST, the configuration tool for OpenSUSE. However you should (of course..) create the network bridge in the virt-manager tool:

enter image description here

Inside this window I can configure everything I want. You can also configure the network interfaces themself

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.