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 On Thu, Aug 16, 2018 at 2:29 PM Dean Egan <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/86fa5c88-84ed-403d-9d82-d1af4b174d8d%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/86fa5c88-84ed-403d-9d82-d1af4b174d8d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exnAr%2BijZYr1O34-XCXPSA%2BHvJJxzNzAGWQjMJjserqdw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
