The host path of the shared folder is missing

56 views
Skip to first unread message

Dean Egan

unread,
Aug 16, 2018, 8:29:14 AM8/16/18
to Vagrant
Hello.

I have an EC2 instance (Windows Server 2016) that holds 2 directories. These directories are shared to Everyone.
I tested this by opening Windows Explorer on my local PC and typed \\<Publlic_IP_of_EC2>\filename\ and I was able to see the files.

I am trying to use Vagrant to build another EC2 instance and sync the directories from my existing EC2 instance to the new one.

When I use the config.vm.sync.folder command, It get "The host path of the shared folder is missing.
The syntax I am using is:
config.vm.synced_folder 'smb://PublicIPAddressofEC2/c$/foldername/ ', "C:/vagrant", disabled: false, type: "smb", smb_host: "PublicIPAddressofEC2", smb_username: "Administrator", smb_password: <password to use when RDPing into EC2 Instance>, mount_options: ['vers=3.0']

I have also tried "//PublicIPAddressofEC2/foldername/" and "\\PublicIPAddressofEC2\foldername\ " , every time I get the error "The host path of the shared folder is missing".

Can you please help me understand why I get this error and how to get past it?

Kind Regards,
Dean

Alvaro Miranda Aguilera

unread,
Sep 3, 2018, 8:59:51 AM9/3/18
to vagra...@googlegroups.com
Hello

From what I know the shared folder smb is from host to guest

since you know what to type, i suggest use a script

alvaro

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/86fa5c88-84ed-403d-9d82-d1af4b174d8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages