Setting the hostname to "ubuntu-${release}" in cloud-images causes the hostname not to be resolvable using /etc/hosts. Running hostname -f will fail due to unresolveable default hostname causing a failure when setting up the proper hostname by vagrant.
Suggested Fix:
Set the hostname to "localhost"
How to reproduce (Option 1):
1.) Install Oracle Virtualbox
2.) Install Vagrant
3.) Create a empty directory and download attached VagrantFile
4.) Run "vagrant up"
Error:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
hostname -f
Stdout from the command:
Stderr from the command:
sudo: unable to resolve host ubuntu-xenial
mesg: ttyname failed: Inappropriate ioctl for device
hostname: No address associated with hostname
Root Cause:
Setting the hostname to "ubuntu-${release}" in cloud-images causes the hostname not to be resolvable using /etc/hosts. Running hostname -f will fail due to unresolveable default hostname causing a failure when setting up the proper hostname by vagrant.
Suggested Fix:
Set the hostname to "localhost"
How to reproduce (Option 1):
1.) Install Oracle Virtualbox
2.) Install Vagrant
3.) Create a empty directory and download attached VagrantFile
4.) Run "vagrant up"
Error:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
hostname -f
Stdout from the command:
Stderr from the command:
sudo: unable to resolve host ubuntu-xenial
mesg: ttyname failed: Inappropriate ioctl for device
hostname: No address associated with hostname