Why vagrant creates two shared resources for one folder? Vagrant 2.0.1; laravel/homestead (hyperv, 5.0.1); Windows 10; SMB

18 views
Skip to first unread message

Alexander Radchenko

unread,
Jan 16, 2018, 1:49:53 AM1/16/18
to Vagrant

I created new Laravel project `laravel new blog` at folder `~/Documents/Laravel`

Changed folder to new Laravel project `cd blog`

Add  laravel/homestead (hyperv, 5.0.1) to project
`composer require laravel/homestead --dev`
Then
`
vendor\\bin\\homestead make`

Edit `Homestead.yaml` file to next:
```
ip: 192.168.10.10
memory: 2048
cpus: 1
provider: hyperv
folders:
    -
        map: '~/Documents/Laravel/blog'
        to: /home/vagrant/code
sites:
    -
        map: blog.test
        to: /home/vagrant/code/public
databases:
    - homestead
name: blog
hostname: blog
```

Created Hyper-V External virtual switch with name `External`

Start vagrant `vagrant up` and select this `External` switch to attach to Hyper-V instance.

And vagrant creates two  shared resources for `~/Documents/Laravel/blog` folder.
The log is next:
```
==> blog: Preparing SMB shared folders...
    blog: You will be asked for the username and password to use for the SMB
    blog: folders shortly. Please use the proper username/password of your
    blog: Windows account.
    blog:
    blog: Username: Alex
    blog: Password (will be hidden):
==> blog: Setting hostname...
==> blog: Mounting SMB shared folders...
    blog: C:/Users/Alex/Documents/Laravel/blog => /home/vagrant/code
    blog: C:/Users/Alex/Documents/Laravel/blog => /vagrant
```

Is it vagrant or homestead issue?


Alvaro Miranda Aguilera

unread,
Jan 16, 2018, 2:56:48 AM1/16/18
to vagra...@googlegroups.com
is not an issue

the current folder is mounted as /vagrant

on top of that does what you ask o do.

you can ignore /vagrant as its the default.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/716fb274-8feb-4332-89db-40b098012603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages