/etc/resolv.conf seems to be hardcoded in vmbuilder when building ubuntu VMs

Bug #346746 reported by MarianoAbsatz
2
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: python-vm-builder

When I create ubuntu virtual machines (well, I only used "ubuntu --suite intrepid --flavour virtual --arch i386"), the guest machine's /etc/resolv.conf looks like this:

#########################################################
nameserver 192.168.1.122
nameserver 127.0.0.1
#########################################################

This happens even when I changed the default networking in libvirt like this:

/etc/libvirt/qemu/networks/default.xml:
#########################################################
<network>
  <name>default</name>
  <uuid>330887cf-ec7f-48a2-b226-795566f31dcd</uuid>
  <bridge name="virbr%d" />
  <forward/>
  <ip address="10.10.10.1" netmask="255.255.255.0">
    <dhcp>
      <range start="10.10.10.128" end="10.10.10.254" />
    </dhcp>
  </ip>
</network>
#########################################################

/etc/vmbuilder/libvirt/libvirtxml.tmpl (partial):
#########################################################
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <interface type='network'>
      <source network='default'/>
      <model type='virtio'/>
    </interface>
...
  </devices>
#########################################################

I think, in this case, the guest machine should get a /etc/resolv.conf like this:
#########################################################
nameserver 10.10.10.1
nameserver 127.0.0.1
#########################################################

PS: Using Intrepid with:
python-vm-builder 0.9-0ubuntu3.1
libvirt-bin 0.4.4-3ubuntu3.1

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the bug report. Ill take a look at adding an option for dns.

Regards
chuck

Changed in vm-builder (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → Wishlist
status: New → Triaged
Chuck Short (zulcss)
Changed in vm-builder (Ubuntu):
assignee: Chuck Short (zulcss) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.