Rich Megginson
2014-Aug-05 22:25 UTC
[libvirt-users] possible to dynamically set/add network domain name?
trying to use virsh net-update to add a domain name libvirt-1.1.3.5-2.fc20.x86_64 sudo virsh net-update default add domain "<domain name='test'/>" --live --config error: this function is not supported by the connection driver: can't update 'domain' section of network 'default' is it possible to add a domain using net-update?
Laine Stump
2014-Aug-06 17:23 UTC
Re: [libvirt-users] possible to dynamically set/add network domain name?
On 08/05/2014 06:25 PM, Rich Megginson wrote:> trying to use virsh net-update to add a domain name > libvirt-1.1.3.5-2.fc20.x86_64 > sudo virsh net-update default add domain "<domain name='test'/>" > --live --config > error: this function is not supported by the connection driver: can't > update 'domain' section of network 'default' > > is it possible to add a domain using net-update?No, not currently. It would be fairly simple to add support for re-starting the network's dnsmasq instance with the new domain in the commandline arguments, but that wouldn't address the existing guests that have already received the domain name in their DHCP responses - they would continue appending the old domain name to any DNS queries until their DHCP lease expires and they have to renew (assuming that the guest's lease renewal code is intelligent enough to notice that the domain has changed). If the above is acceptable, and you're interesting in adding support for that much of the functionality, the function to change is virNetworkDefUpdateDomain() (higher level functions are already setup to handle restarting dnsmasq). You could follow the examples of other virNetworkDefUpdate*() functions in the same file.
Rich Megginson
2014-Aug-06 21:33 UTC
Re: [libvirt-users] possible to dynamically set/add network domain name?
On 08/06/2014 11:23 AM, Laine Stump wrote:> On 08/05/2014 06:25 PM, Rich Megginson wrote: >> trying to use virsh net-update to add a domain name >> libvirt-1.1.3.5-2.fc20.x86_64 >> sudo virsh net-update default add domain "<domain name='test'/>" >> --live --config >> error: this function is not supported by the connection driver: can't >> update 'domain' section of network 'default' >> >> is it possible to add a domain using net-update? > No, not currently. It would be fairly simple to add support for > re-starting the network's dnsmasq instance with the new domain in the > commandline arguments, but that wouldn't address the existing guests > that have already received the domain name in their DHCP responses - > they would continue appending the old domain name to any DNS queries > until their DHCP lease expires and they have to renew (assuming that the > guest's lease renewal code is intelligent enough to notice that the > domain has changed). > > If the above is acceptable, and you're interesting in adding support for > that much of the functionality, the function to change is > virNetworkDefUpdateDomain() (higher level functions are already setup to > handle restarting dnsmasq). You could follow the examples of other > virNetworkDefUpdate*() functions in the same file.Thanks. https://bugzilla.redhat.com/show_bug.cgi?id=1127453
Possibly Parallel Threads
- Re: possible to dynamically set/add network domain name?
- Re: Fedora 19/20 new install :Unable to create vcpu cgroup
- Fedora 19/20 new install :Unable to create vcpu cgroup
- vms not persistent after upgrading to f22?
- Changing dnsmasq DNS settings for virtual machines