View Issue Details

IDProjectCategoryView StatusLast Update
0016666CentOS-7Cloud-Imagespublic2019-10-28 13:30
Status newResolutionopen 
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016666: Reproducable "could not resolve host" on Linux with libvirt and virtualbox
DescriptionI can reproduce the bug mentioned in point 4 in the release notes for CentOS Vagrant Images Available (v1905.01) on both Vagrant with libvirt and VirtualBox.

Some people reported "could not resolve host" errors when running the centos/7 image for VirtualBox on Windows hosts. We don't have access to any Windows computer, but some people reported that adding the following line to the Vagrantfile fixed the problem:

vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
Steps To ReproduceFor Vagrant with libvirt use

Vagrant.configure("2") do |config|

  config.vm.provider :libvirt do |libvirt|
    libvirt.driver = "kvm" = 'localhost'
    libvirt.uri = 'qemu:///system'
    libvirt.management_network_device = 'virbr0'

    libvirt.storage_pool_name = "default"

  config.vm.define "test1" do |vm1| = "centos/7"
     vm1.vm.hostname = ""
     vm1.vm.provider :libvirt do |domain|
       domain.memory = 1024
       domain.cpus = 1
     end :private_network,
                    :ip => '',
                    :libvirt__netmask => '',
                    :libvirt__network_name => 'default',
                    :libvirt__forward_mode => 'none'

For Vagrant with VirtualBox use

Vagrant.configure("2") do |config| = "centos/7"

  config.vm.define "test1" do |vm1|
     vm1.vm.hostname = ""
     vm1.vm.provider 'virtualbox' do |domain|
       domain.memory = 1024
       domain.cpus = 1
     end 'private_network', ip: ""


In each of them execute

approx 15 times, and you will notice the DNS is extremely slow and sometimes can't resolve at all.

Using an Ubuntu image instead with the same Vafrantfile's works perfectly.
Additional InformationHost machine default Fedora 30.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-10-28 13:30 littlesandra88 New Issue
2019-10-28 13:30 littlesandra88 Tag Attached: vagrant