[Bug 346746] [NEW] /etc/resolv.conf seems to be hardcoded in vmbuilder when building ubuntu VMs

MarianoAbsatz el.baby at gmail.com
Sun Mar 22 12:59:28 UTC 2009


Public bug reported:

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

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/etc/resolv.conf seems to be hardcoded in vmbuilder when building ubuntu VMs
https://bugs.launchpad.net/bugs/346746
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list