Disable DHCP server in QEMU-KVM

I realized that the DHCP server enabled by default in QEMU-KVM on openSUSE 12.1 doesn’t offer option to be disabled. It isn’t configured by the GUI of virt-manager (where you can configure virtual networks and dhcp servers) and I didn’t found any configuration files related to it. Anyone knows how to disable it? Thanks a lot.

If you mean disabling NAT in the vm, you can use the vm-bridge](http://forums.opensuse.org/english/other-forums/development/programming-scripting/453961-vm-bridge-convert-virtual-machines-nat-bridge-bridge-nat.html) script to convert a vm from NAT to bridge (and create this bridge). Once it is bridged, it won’t act as a router it its own network and you can set up the OS to use dhcp (client) or give it a static ip. I haven’t maintained this script for a while though. You’d use it at your own risk (which doesn’t mean that it doesn’t work). Otherwise you have to create a bridge on a network interface and select “Specify shared device name” in the Virtual network interface settings in virt-manager, than enter the name of the bridge under “Bridge name”. It’s easier with my script (because virt-manager won’t create the bridge for you …YaST might…)

vm-bridge is included in package vmscripts that you can install from my repo.

Hi buddy, thanks a lot for your response, but I would like to stay with NAT. What I don’t want is the DHCP server because I want to put my own DHCP and DNS server in this network. The virt-manager package from openSUSE is modified from the original and most settings doesn’t work in the GUI. In Fedora it’s possible to manage the virtual networks and the default virtual network in the virt-manager GUI. Do you know how can I do this in openSUSE? Thanks again.

Maybe a NAT guru knows the answer. IMO it would be easier to use bridge and run a DHCP and DNS server within the installed OS… I’m not aware of what is enable or not in the GUI, but openSUSE and Fedora might just use different libvirt and virt-manager versions (don’t have time to check right now). Anyway, it there is something you can not achieve with virt-manager GUI (there are a couple things actually), use the libvirt shell virsh. See man virsh.

I guess you already read this page: libvirt: Wiki: Networking.