{"action":"created","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/1845","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/1845/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/1845/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/1845/events","html_url":"https://github.com/puphpet/puphpet/issues/1845","id":101471792,"number":1845,"title":"Error when vagrant mounting SMB shared folders","user":{"login":"wnasirou","id":8539387,"avatar_url":"https://avatars.githubusercontent.com/u/8539387?v=3","gravatar_id":"","url":"https://api.github.com/users/wnasirou","html_url":"https://github.com/wnasirou","followers_url":"https://api.github.com/users/wnasirou/followers","following_url":"https://api.github.com/users/wnasirou/following{/other_user}","gists_url":"https://api.github.com/users/wnasirou/gists{/gist_id}","starred_url":"https://api.github.com/users/wnasirou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wnasirou/subscriptions","organizations_url":"https://api.github.com/users/wnasirou/orgs","repos_url":"https://api.github.com/users/wnasirou/repos","events_url":"https://api.github.com/users/wnasirou/events{/privacy}","received_events_url":"https://api.github.com/users/wnasirou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T17:40:17Z","updated_at":"2015-08-29T04:51:12Z","closed_at":null,"body":"Hello.\r\n\r\nI am working on Windows 8.1 OS and today I am trying to create a virtual machine for my development with these tools : Vagrant 1.7.2 , VirtualBox 4.3.22, Puphpet.\r\n\r\nI also used in my PuPHPet configuration SMB as shared folder type to improve the slowness of default windows shared folder.\r\n\r\nThen, I encountered this issue when Vagrant trying to mount SMB Shared folders : \r\n\r\n``` \r\nD:\\App\\Boxes\\project.dev                                                                                                             \r\nλ vagrant reload                                                                                                                    \r\n==> default: Attempting graceful shutdown of VM...                                                                                   \r\n==> default: Checking if box 'puphpet/debian75-x64' is up to date...                                                                 \r\n==> default: Clearing any previously set forwarded ports...                                                                          \r\n==> default: Preparing SMB shared folders...                                                                                         \r\n==> default: Clearing any previously set network interfaces...                                                                       \r\n==> default: Preparing network interfaces based on configuration...                                                                  \r\n    default: Adapter 1: nat                                                                                                          \r\n    default: Adapter 2: hostonly                                                                                                     \r\n==> default: Forwarding ports...                                                                                                     \r\n    default: 22 => 2222 (adapter 1)                                                                                                  \r\n==> default: Running 'pre-boot' VM customizations...                                                                                 \r\n==> default: Booting VM...                                                                                                           \r\n==> default: Waiting for machine to boot. This may take a few minutes...                                                             \r\n    default: SSH address: 127.0.0.1:2222                                                                                             \r\n    default: SSH username: vagrant                                                                                                   \r\n    default: SSH auth method: private key                                                                                            \r\n    default: Warning: Connection timeout. Retrying...                                                                                \r\n==> default: Machine booted and ready!                                                                                               \r\nGuestAdditions 4.3.22 running --- OK.                                                                                                \r\n==> default: Checking for guest additions in VM...                                                                                   \r\n==> default: Setting hostname...                                                                                                     \r\n==> default: Configuring and enabling network interfaces...                                                                          \r\n==> default: Mounting SMB shared folders...                                                                                          \r\n    default: D:/Projects => /var/www                                                                                                 \r\nFailed to mount folders in Linux guest. This is usually because                                                                      \r\nthe \"vboxsf\" file system is not available. Please verify that                                                                        \r\nthe guest additions are properly installed in the guest and                                                                          \r\ncan work properly. The command attempted was:                                                                                        \r\n                                                                                                                                     \r\nmount -t cifs -o uid=`id -u www-data`,gid=`getent group www-data | cut -d: -f3`,sec=ntlm,username=,pass=PASSWORDHIDDEN ///c373e080   \r\ne30e1f7db166dd359eba98c2 /var/www                                                                                                    \r\nmount -t cifs -o uid=`id -u www-data`,gid=`id -g www-data`,sec=ntlm,username=,pass=PASSWORDHIDDEN ///c373e080e30e1f7db166dd359eba9   \r\n8c2 /var/www                                                                                                                         \r\n                                                                                                                                     \r\nThe error output from the last command was:                                                                                          \r\n                                                                                                                                     \r\nstdin: is not a tty                                                                                                                  \r\nmount: wrong fs type, bad option, bad superblock on ///c373e080e30e1f7db166dd359eba98c2,                                             \r\n       missing codepage or helper program, or other error                                                                            \r\n       (for several filesystems (e.g. nfs, cifs) you might                                                                           \r\n       need a /sbin/mount.<type> helper program)                                                                                     \r\n       In some cases useful info is found in syslog - try                                                                            \r\n       dmesg | tail  or so \r\n```\r\n\r\n\r\n  To solve my problem, I try these comands : \r\n1. vagrant plugin install vagrant-vbguest on my Host System (Windows 8.1 64bits)\r\n2. sudo ln -s /opt/VBoxGuestAdditions-4.3.22/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions on my Guest System (Debian Wheezy 7 x64 )\r\n3. vagrant relaod\r\n\r\n\r\nNow I have always the same problem : Failed to mount folders in Linux guest.........\r\n\r\nPlease Help me to solve my problem.\r\n\r\nThank you.\r\n                                                                                      "},"comment":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/comments/135941152","html_url":"https://github.com/puphpet/puphpet/issues/1845#issuecomment-135941152","issue_url":"https://api.github.com/repos/puphpet/puphpet/issues/1845","id":135941152,"user":{"login":"wimpyprogrammer","id":1280900,"avatar_url":"https://avatars.githubusercontent.com/u/1280900?v=3","gravatar_id":"","url":"https://api.github.com/users/wimpyprogrammer","html_url":"https://github.com/wimpyprogrammer","followers_url":"https://api.github.com/users/wimpyprogrammer/followers","following_url":"https://api.github.com/users/wimpyprogrammer/following{/other_user}","gists_url":"https://api.github.com/users/wimpyprogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/wimpyprogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimpyprogrammer/subscriptions","organizations_url":"https://api.github.com/users/wimpyprogrammer/orgs","repos_url":"https://api.github.com/users/wimpyprogrammer/repos","events_url":"https://api.github.com/users/wimpyprogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/wimpyprogrammer/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T04:51:12Z","updated_at":"2015-08-29T04:51:12Z","body":"I'm trying SMB for the first time and in a similar spot.  I think I've made some headway.\r\n\r\nHere's my setup:\r\n - Windows Server 2012 R2 x64 host\r\n - VirtualBox 4.3.28 provider\r\n - Vagrant 1.6.3\r\n - Ubuntu Trusty 14.04 LTS x64 guest\r\n - [config.yaml](https://gist.github.com/wimpyprogrammer/6bca202bc994274102af) of a barebones box I just generated on puphpet.com\r\n\r\nI also found the usual discussions of this problem which are focused on VirtualBox Guest Additions, per the \"Failed to mount folders...\" error message.  I installed `vagrant-vbguest` and the output of `vagrant up` showed that guest editions 4.3.28 is used.\r\n\r\nHere's the output of `vagrant up` after adding `--debug` to `vagrantfile.vm.provision.puppet.options` in the `config.yaml`.  There's nothing too surprising.\r\n\r\n```\r\nBringing machine 'default' up with 'virtualbox' provider...\r\n==> default: Importing base box 'puphpet/ubuntu1404-x64'...\r\n\r\n\u001B[KProgress: 10%\r\n\u001B[KProgress: 20%\r\n\u001B[KProgress: 30%\r\n\u001B[KProgress: 40%\r\n\u001B[KProgress: 60%\r\n\u001B[KProgress: 70%\r\n\u001B[KProgress: 80%\r\n\u001B[KProgress: 90%\r\n\u001B[K==> default: Matching MAC address for NAT networking...\r\n==> default: Checking if box 'puphpet/ubuntu1404-x64' is up to date...\r\n==> default: Setting the name of the VM: smb-testing_default_1440821354770_68935\r\n==> default: Preparing SMB shared folders...\r\n==> default: Clearing any previously set network interfaces...\r\n==> default: Preparing network interfaces based on configuration...\r\n    default: Adapter 1: nat\r\n    default: Adapter 2: hostonly\r\n==> default: Forwarding ports...\r\n    default: 22 => 6259 (adapter 1)\r\n    default: 22 => 2222 (adapter 1)\r\n==> default: Running 'pre-boot' VM customizations...\r\n==> default: Booting VM...\r\n==> default: Waiting for machine to boot. This may take a few minutes...\r\n    default: SSH address: 127.0.0.1:2222\r\n    default: SSH username: vagrant\r\n    default: SSH auth method: private key\r\n    default: Warning: Connection timeout. Retrying...\r\n==> default: Machine booted and ready!\r\nGuestAdditions versions on your host (4.3.28) and guest (4.3.20) do not match.\r\nstdin: is not a tty\r\nReading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nlinux-headers-3.13.0-32-generic is already the newest version.\r\nSuggested packages:\r\n  debhelper\r\nThe following NEW packages will be installed:\r\n  dkms\r\n0 upgraded, 1 newly installed, 0 to remove and 85 not upgraded.\r\nNeed to get 64.6 kB of archives.\r\nAfter this operation, 349 kB of additional disk space will be used.\r\nErr http://mirror.rackspace.com/ubuntu/ trusty-updates/main dkms all 2.2.0.3-1.1ubuntu5.14.04\r\n  404  Not Found [IP: 72.4.120.219 80]\r\nE: Failed to fetch http://mirror.rackspace.com/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-1.1ubuntu5.14.04_all.deb  404  Not Found [IP: 72.4.120.219 80]\r\n\r\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\r\nstdin: is not a tty\r\nIgn http://mirror.rackspace.com trusty InRelease\r\nIgn http://security.ubuntu.com trusty-security InRelease\r\nIgn http://mirror.rackspace.com trusty-updates InRelease\r\nGet:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]\r\nGet:2 http://security.ubuntu.com trusty-security Release [63.5 kB]\r\nIgn http://mirror.rackspace.com trusty-backports InRelease\r\nHit http://mirror.rackspace.com trusty Release.gpg\r\nGet:3 http://mirror.rackspace.com trusty-updates Release.gpg [933 B]\r\nGet:4 http://security.ubuntu.com trusty-security/main Sources [92.6 kB]\r\nGet:5 http://mirror.rackspace.com trusty-backports Release.gpg [933 B]\r\nGet:6 http://security.ubuntu.com trusty-security/restricted Sources [2,061 B]\r\nHit http://mirror.rackspace.com trusty Release\r\nGet:7 http://security.ubuntu.com trusty-security/universe Sources [29.9 kB]\r\nGet:8 http://mirror.rackspace.com trusty-updates Release [63.5 kB]\r\nGet:9 http://security.ubuntu.com trusty-security/multiverse Sources [2,330 B]\r\nGet:10 http://security.ubuntu.com trusty-security/main amd64 Packages [335 kB]\r\nGet:11 http://mirror.rackspace.com trusty-backports Release [63.5 kB]\r\nGet:12 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8,875 B]\r\nGet:13 http://security.ubuntu.com trusty-security/universe amd64 Packages [114 kB]\r\nHit http://mirror.rackspace.com trusty/main Sources\r\nHit http://mirror.rackspace.com trusty/restricted Sources\r\nGet:14 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3,686 B]\r\nHit http://mirror.rackspace.com trusty/universe Sources\r\nGet:15 http://security.ubuntu.com trusty-security/main i386 Packages [320 kB]\r\nHit http://mirror.rackspace.com trusty/multiverse Sources\r\nHit http://mirror.rackspace.com trusty/main amd64 Packages\r\nHit http://mirror.rackspace.com trusty/restricted amd64 Packages\r\nHit http://mirror.rackspace.com trusty/universe amd64 Packages\r\nGet:16 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,846 B]\r\nGet:17 http://security.ubuntu.com trusty-security/universe i386 Packages [114 kB]\r\nHit http://mirror.rackspace.com trusty/multiverse amd64 Packages\r\nHit http://mirror.rackspace.com trusty/main i386 Packages\r\nGet:18 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3,830 B]\r\nGet:19 http://security.ubuntu.com trusty-security/main Translation-en [182 kB]\r\nHit http://mirror.rackspace.com trusty/restricted i386 Packages\r\nHit http://mirror.rackspace.com trusty/universe i386 Packages\r\nGet:20 http://security.ubuntu.com trusty-security/multiverse Translation-en [1,679 B]\r\nHit http://mirror.rackspace.com trusty/multiverse i386 Packages\r\nHit http://security.ubuntu.com trusty-security/restricted Translation-en\r\nHit http://mirror.rackspace.com trusty/main Translation-en\r\nGet:21 http://security.ubuntu.com trusty-security/universe Translation-en [66.9 kB]\r\nHit http://mirror.rackspace.com trusty/multiverse Translation-en\r\nHit http://mirror.rackspace.com trusty/restricted Translation-en\r\nHit http://mirror.rackspace.com trusty/universe Translation-en\r\nGet:22 http://mirror.rackspace.com trusty-updates/main Sources [231 kB]\r\nGet:23 http://mirror.rackspace.com trusty-updates/restricted Sources [4,725 B]\r\nGet:24 http://mirror.rackspace.com trusty-updates/universe Sources [134 kB]\r\nGet:25 http://mirror.rackspace.com trusty-updates/multiverse Sources [5,143 B]\r\nGet:26 http://mirror.rackspace.com trusty-updates/main amd64 Packages [609 kB]\r\nGet:27 http://mirror.rackspace.com trusty-updates/restricted amd64 Packages [15.4 kB]\r\nGet:28 http://mirror.rackspace.com trusty-updates/universe amd64 Packages [309 kB]\r\nGet:29 http://mirror.rackspace.com trusty-updates/multiverse amd64 Packages [11.9 kB]\r\nGet:30 http://mirror.rackspace.com trusty-updates/main i386 Packages [589 kB]\r\nGet:31 http://mirror.rackspace.com trusty-updates/restricted i386 Packages [15.1 kB]\r\nGet:32 http://mirror.rackspace.com trusty-updates/universe i386 Packages [310 kB]\r\nGet:33 http://mirror.rackspace.com trusty-updates/multiverse i386 Packages [12.1 kB]\r\nGet:34 http://mirror.rackspace.com trusty-updates/main Translation-en [293 kB]\r\nGet:35 http://mirror.rackspace.com trusty-updates/multiverse Translation-en [6,148 B]\r\nGet:36 http://mirror.rackspace.com trusty-updates/restricted Translation-en [3,560 B]\r\nGet:37 http://mirror.rackspace.com trusty-updates/universe Translation-en [164 kB]\r\nGet:38 http://mirror.rackspace.com trusty-backports/main Sources [5,860 B]\r\nGet:39 http://mirror.rackspace.com trusty-backports/restricted Sources [28 B]\r\nGet:40 http://mirror.rackspace.com trusty-backports/universe Sources [28.4 kB]\r\nGet:41 http://mirror.rackspace.com trusty-backports/multiverse Sources [1,898 B]\r\nGet:42 http://mirror.rackspace.com trusty-backports/main amd64 Packages [6,288 B]\r\nGet:43 http://mirror.rackspace.com trusty-backports/restricted amd64 Packages [28 B]\r\nGet:44 http://mirror.rackspace.com trusty-backports/universe amd64 Packages [32.6 kB]\r\nGet:45 http://mirror.rackspace.com trusty-backports/multiverse amd64 Packages [1,571 B]\r\nGet:46 http://mirror.rackspace.com trusty-backports/main i386 Packages [6,293 B]\r\nGet:47 http://mirror.rackspace.com trusty-backports/restricted i386 Packages [28 B]\r\nGet:48 http://mirror.rackspace.com trusty-backports/universe i386 Packages [32.6 kB]\r\nGet:49 http://mirror.rackspace.com trusty-backports/multiverse i386 Packages [1,552 B]\r\nGet:50 http://mirror.rackspace.com trusty-backports/main Translation-en [3,645 B]\r\nGet:51 http://mirror.rackspace.com trusty-backports/multiverse Translation-en [1,215 B]\r\nHit http://mirror.rackspace.com trusty-backports/restricted Translation-en\r\nGet:52 http://mirror.rackspace.com trusty-backports/universe Translation-en [29.6 kB]\r\nIgn http://mirror.rackspace.com trusty/main Translation-en_US\r\nIgn http://mirror.rackspace.com trusty/multiverse Translation-en_US\r\nIgn http://mirror.rackspace.com trusty/restricted Translation-en_US\r\nIgn http://mirror.rackspace.com trusty/universe Translation-en_US\r\nFetched 4,343 kB in 11s (372 kB/s)\r\nReading package lists...\r\nstdin: is not a tty\r\nReading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nlinux-headers-3.13.0-32-generic is already the newest version.\r\nSuggested packages:\r\n  debhelper\r\nThe following NEW packages will be installed:\r\n  dkms\r\n0 upgraded, 1 newly installed, 0 to remove and 184 not upgraded.\r\nNeed to get 64.6 kB of archives.\r\nAfter this operation, 349 kB of additional disk space will be used.\r\nGet:1 http://mirror.rackspace.com/ubuntu/ trusty-updates/main dkms all 2.2.0.3-1.1ubuntu5.14.04.1 [64.6 kB]\r\ndpkg-preconfigure: unable to re-open stdin: No such file or directory\r\nFetched 64.6 kB in 0s (217 kB/s)\r\nSelecting previously unselected package dkms.\r\n(Reading database ... 63614 files and directories currently installed.)\r\nPreparing to unpack .../dkms_2.2.0.3-1.1ubuntu5.14.04.1_all.deb ...\r\nUnpacking dkms (2.2.0.3-1.1ubuntu5.14.04.1) ...\r\nProcessing triggers for man-db (2.6.7.1-1) ...\r\nSetting up dkms (2.2.0.3-1.1ubuntu5.14.04.1) ...\r\nCopy iso file C:\\Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso\r\nstdin: is not a tty\r\nmount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only\r\nInstalling Virtualbox Guest Additions 4.3.28 - guest version is 4.3.20\r\nstdin: is not a tty\r\nVerifying archive integrity... All good.\r\nUncompressing VirtualBox 4.3.28 Guest Additions for Linux............\r\nVirtualBox Guest Additions installer\r\nRemoving installed version 4.3.20 of VirtualBox Guest Additions...\r\nCopying additional installer modules ...\r\nInstalling additional modules ...\r\nRemoving existing VirtualBox DKMS kernel modules ...done.\r\nRemoving existing VirtualBox non-DKMS kernel modules ...done.\r\nBuilding the VirtualBox Guest Additions kernel modules ...done.\r\nDoing non-kernel setup of the Guest Additions ...done.\r\nYou should restart your guest to make sure the new modules are actually used\r\n\r\nInstalling the Window System drivers\r\nCould not find the X.Org or XFree86 Window System, skipping.\r\nAn error occurred during installation of VirtualBox Guest Additions 4.3.28. Some functionality may not work as intended.\r\nIn most cases it is OK that the \"Window System drivers\" installation failed.\r\nstdin: is not a tty\r\n==> default: Checking for guest additions in VM...\r\n==> default: Setting hostname...\r\n==> default: Configuring and enabling network interfaces...\r\n==> default: Mounting SMB shared folders...\r\n    default: D:/Users/Andrew/Dropbox/Programming/Applications/smb-testing => /var/www\r\nFailed to mount folders in Linux guest. This is usually because\r\nthe \"vboxsf\" file system is not available. Please verify that\r\nthe guest additions are properly installed in the guest and\r\ncan work properly. The command attempted was:\r\n\r\nmount -t cifs -o uid=`id -u www-data`,gid=`getent group www-data | cut -d: -f3`,sec=ntlm,username=,pass=PASSWORDHIDDEN ///7079ecb55df57e2457e7e1b7c3c1e813 /var/www\r\nmount -t cifs -o uid=`id -u www-data`,gid=`id -g www-data`,sec=ntlm,username=,pass=PASSWORDHIDDEN ///7079ecb55df57e2457e7e1b7c3c1e813 /var/www\r\n```\r\n\r\nNext I tried to SSH into my Ubuntu guest (succeeded) and run the `mount` commands at the end of the output above.  I found the following issues:\r\n\r\n 1. When I run `ls /sbin/mount.*`, `cifs` is not listed.  I only see `fuse`, `lowntfs-3g`, `ntfs`, `ntfs-3g`, and `vboxsf`.  So I ran `sudo apt-get install cifs-utils` to add CIFS support [per the Ubuntu wiki](https://wiki.ubuntu.com/MountWindowsSharesPermanently#CIFS_installation).\r\n\r\n 1. Next, the `mount` command fails because the `username=` parameter is present but blank and the SMB hostname is missing (`///sharename` is intended to be `//host/sharename`).  The PuPHPet GUI says it's OK to leave these fields blank and they are stored in the `config.yaml` as `''`.  If you delete the quotes (e.g. `smb_username: `) and run `vagrant reload`, SMB works great.  I'm prompted for my Windows username and password, and the IP address of my VirtualBox host is auto-detected.\r\n\r\n@wnasirou can you try these steps on your system?  You might need to adapt some things for Debian and unfortunately I can't help much there (I can barely manage Ubuntu :smile:).  If you can confirm the problem, we can hope for a patch in PuPHPet."}}