General info:

I have a KVM-libvirt/qemu running on ArchLinux;

ls | egrep -i 'libvirt|qemu'


I'm running different firewalls (with multiple interfaces / Zones) and for DHCP issues while handling particular configurations I'd like to change the :

[root@localhost networks]# pwd
[root@localhost networks]# cat default.xml | grep address
  <mac address='52:54:00:66:9c:8c'/>
  <ip address='' netmask=''>

Which is the "gateway" for my networks and applied as an IP for the vrbrX interface to something other than, as for example if somehost behind the firewall takes the first available IP it will have the same IP so it will generate a network conflict (This happens as the firewall interfaces are bridges and hosts are found behind them.), and I don't want each time to change the networks to Static-IP's by turning off the DHCP (or other tweaks).

What I tried:

Well, I tried editing manually the xml's of qemu/networks and than started the interfaces, but although the on the xml was :

Yet, the interface had

 25: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN        group default 
inet brd scope global virbr0

Didn't think the solution was so easy,

basically it should be edited with virsh net-edit which prompts you to vi, and than the change is applied also to the interface.

Strangely enough, I edited the xml, and it was applied also into the autostart directory and than started the interfaces, so it seems like with virsh it does other operations as well.

|improve this answer|||||

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.