When you setup a KVM environment, you soon will realize that there is no graphical option to disable the DHCP server that's started by default. However, it's very easy to disable it: you only need to comment three lines in /etc/libvirt/qemu/networks/default.xml. Remember that to edit this file you need to be logged as root or use the sudo command. You can edit it with a simple program, like vi, vim or nano. So, to disable the DHCP server, you need to comment (putting # in the beggining of the line) the two lines that begins with the keyword <dhcp>, the line that begin with the keyword <range and restart the libvirtd service (you can do this with the command systemctl restart libvirtd.service, /etc/init.d/libvirtd restart or /sbin/service libvirtd restart - depending of your distribution - as root or with sudo).
By editing /etc/libvirt/qemu/networks/default.xml, you are changing the configuration of the default virtual network, that can be visualized in the virt-manager GUI.
No comments:
Post a Comment