I am using the latest vagrant version running on my windows 10 professional 
x64. I configured my Network device to share the connection with my 
internal virtual switch (HyperV). Everything seams okay and I can bring up 
my VM without any issues. I am using the following box (generic/ubuntu1804).

The problem that I have is that once that my host gets the assigned the 
admin role, after run "docker swarm init", I tried to add the Hypervisor as 
a Worker node and I seems like is docker can not see it :-/.

*These are the steps that I followed:*

# Bring up w1 (My vagrantfile will handle the provider,etc) IP = 
192.163.135.199
*vagrant up w1*

# host machine
*docker init swarm*
*To add a worker to this swarm, run the following command:*

*docker swarm join --token 
SWMTKN-1-36gi398mfzkq8q9f4qt6u5wll7xv88a4u0osv8rpofmmvknunn-91ogycjru6p29p44f7iam63il
 *
192.163.135.197*:2377*

*To add a manager to this swarm, run 'docker swarm join-token manager' and 
follow the instructions.*

# Switch to Worker 
*$env:DOCKER_HOST="192.163.135.199"*

# I verified that docker can see this node

*docker info*

# docker shows Name: w1 :-)

# Join the current node as worker
*docker swarm join --token 
SWMTKN-1-36gi398mfzkq8q9f4qt6u5wll7xv88a4u0osv8rpofmmvknunn-91ogycjru6p29p44f7iam63il
 192.163.135.197:2377*
*Error response from daemon: Timeout was reached before node joined. The 
attempt to join the swarm will continue in the background. Use the "docker 
info" command to see the current swarm status of your node.*

*Troubleshooting:*

I ping the VM and the host is able to see it, but if  *I try to ping the 
host from the VM, it failed* :-/. I am guessing that it has to do with the 
way that I configured the internal virtual switch :-/. Any recommendation? 


-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/aa877eb8-2fd8-4e9c-b9ec-f3b586794631%40googlegroups.com.

Reply via email to