Error in vagrant up windows 10

1

I'm using homestead and vagrant to create a virtual machine and run my web projects. However, I can not get into my hosts (eg, myite.dev) , all are already properly configured in homestead.yaml and the hosts However, whenever I apply the vagrant up command, at the end of the command I get the following error message:

==> homestead-7:
==> homestead-7:   [Composer\Downloader\TransportException]                                               
==> homestead-7:   The "https://getcomposer.org/versions" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
==> homestead-7:   failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
==> homestead-7:                                                                                          
==> homestead-7:
==> homestead-7: self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--] [<version>]
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Both bash and vagrant, like composer are already properly installed and upgraded. What could this mistake be?

    
asked by anonymous 06.02.2017 / 15:54

2 answers

0

Hello,

The problem is probably the configuration of the DNS server on the operating system inside your vagrant box. To resolve, run the following commands:

auto eth0
iface eth0 inet dhcp
dns-search google.com
dns-nameservers dnsserverip

And restart the network service:

sudo service network restart

More details can be seen on this page where I found the issue resolved.

Try the procedure and let me know if it worked,

Hug.

    
06.02.2017 / 18:32
0

The error consists of a DNS conflict , even if you create a proxy, update servernames or try forced resources to configure the connection, the only alternative that releases the command is updating windows using the windows update feature or using an installation cd.

Microsoft has not commented on this, but updating windows with patch packs generates a refresh of DNSzone and reconfigures the internet protocols to work with Virtual Machine . , composer update via ssh and removal of the "php_network_getaddresses" error

    
07.02.2017 / 07:08