I created  a small patch to place the no-hosts option in the config file
which libvirt creates. (I figured that was more appropriate than setting
the flag, since all other options are set in those config files by
libvirt).


Unfortunately I'm unfamiliar with libvirt's testing suite, and couldn't figure 
out how to appropriately edit the tests for these changes. It might be best if 
someone more familiar with the codebase take it from there.


I've also realized that this may be an expected behaviour for some (many
users may have placed stuff in /etc/hosts and expect that to work for
their VMs). As such, users will need to be warned if this file is
excluded by default.


Patch attached.

** Patch added: "Applies to a7b0040 on git://libvirt.org/libvirt.git"
   
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326536/+attachment/4128640/+files/no-hosts.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1326536

Title:
  libvirt's dnsmasq setup will read /etc/hosts on the host, resulting in
  odd resolution behaviour on the VM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326536/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to