Hi folks,
I'm attempting to build out a multi-vm setup of centos 5.8 VMs using hostonly networking to allow for the two to communicate with each other. What happens though is upon a fresh provisioning of the VM, no DNS server is available (the /etc/resolv.conf is empty) thus causing the provisioning to fail since it can't access any remote repositories. What fixes it is a vagrant reload which causes the /etc/resolv.conf to get populated thus allowing for resolving of IPs. But it's annoying that this doesn't work straight-away.
I've looked at setting :auto_config => false which appears to introduce another set of problems. I've also tried to be clever and invoke an inline shell command to either place nameserver values in the /etc/resolv.conf or also restart the network service, none of which seems to work.
Has anyone encountered something similar to this and if so any steps to remedy?
Thanks!