-
-
Notifications
You must be signed in to change notification settings - Fork 646
Samba share from drupalvm guest to windows Host failed #1265
Comments
@fb-multimedia have you looked at https://superuser.com/a/258103 ? |
SSHFS might also be a good option: https://github.com/dustymabe/vagrant-sshfs#sharing-vagrant-guest-directory-to-vagrant-host---5-of-users |
hello geerlingguy, |
@fb-multimedia - You'd need to probably do a If you don't share the files at all (basically disable the synced folder config), then things are very fast :) |
I got SMB working well... documenting the process now. One quick hint—you will need to override Drupal VM's default firewall ports list to make sure SMB can communicate with your host: firewall_allowed_tcp_ports:
- "22"
- "25"
- "80"
- "81"
- "443"
- "4444"
- "8025"
- "8080"
- "8443"
- "8983"
- "9200"
# For reverse-mount Samba share.
- "137"
- "138"
- "139"
- "445" |
I'm going to do a full writeup tomorrow, on my blog, and then link to it here and add a link in the Drupal VM docs. It's slightly more complicated than I'd like... and I might consider adding better first-party support inside Drupal VM itself (just so you could avoid doing 2-3 steps by hand when building a new VM) if that is easy enough to do. |
@geerlingguy "working well" is way more than I could have expected. I tried opening up firewall ports manually when I tried setting it up but that didn't work for me. I'm looking forward to your write up. It sounds very promising! |
I'm working on this today; hopefully I'll have a blog posted by EOD. |
Super ! Merci geerlingguy ! |
Here's the blog post! Drupal VM on Windows - a fast container for BLT project development (includes a video that's currently uploading... give it 10 or so minutes and it should be up on YouTube). Specifically, regarding this issue, see Configure a reverse-mounted shared folder (using Samba). I'll make sure to update Drupal VM's docs as well before closing this issue. |
Super ! grand merci, ça marche ! I 've test and the samba share is working with your settings. The force permissions on the directory was missing on my initial smb.conf :
Now the reverse share is OK ! and composer take 3 minutes to install D8 !
And add a sh script to manage the smb.conf during vagrant up in the futur ? I'm Very happy to use drupal vm as solid solution for virtual lamp server under windows and talk about it on my french blog. |
@fb-multimedia - Possibly. I already have a role ( |
And see related issue in that role: geerlingguy/ansible-role-samba#5 |
Issue Type
Your OS
Host - Windows (8.1)
VirtualBox 5.1.10
vagrant 1.9.2
Drupal vm 4.3.1 : ubuntu 14.04
samba 4.3.11-Ubuntu
Full console output
Summary
Hello at all
I try to share with samba a directory on my drupal vm that can be accessible in my windows host.
I ever used this solution that work great in other Vbox, simply like this :
I install samba :
apt-get install samba
I create my shared directory with rights permissions and owner :
I add the vagrant user to samba and give a pass with :
smbpasswd -a vagrant
I configure samba :
sudo nano /etc/samba/smb.conf
change the workgroup with my windows workgroup :
workgroup = mshome
and add at the bottom :
I restart samba :
sudo /etc/init.d/samba restart
Normaly I should now access in windows (8.1) to my shared repository while connect to \192.168.88.88\partage but it doesn't work at all.
I have two other vbox, one with debian and another with ubuntu 14.04 (scotchbox) using samba like this and I can browse correctly their shared folder under windows network. so I think it's a problem between samba and drupal vm.
The ufw firewall is disable on the drupal vm.
From windows cmd I can ping 192.168.88.88 and see the server with
net view
command table :But no share
here is my testparm -s command result :
If a specialist of samba share could help It will be great cause I've investigate a lot and no way.
Thanks
The text was updated successfully, but these errors were encountered: