2016-10-16 12 views
0

Так что у меня была эта проблема, пытаясь выяснить это через пару дней. Пробовал каждую ОС в puphpet.com каждый раз, когда я устанавливаю sync_type с smb vagrant up сбой. Выход ошибки:Vagrant PuPHPet не работает с Samba (smb) из коробки

Failed to mount folders in Linux guest. This is usually because 
the "vboxsf" file system is not available. Please verify that 
the guest additions are properly installed in the guest and 
can work properly. The command attempted was: 

mount -t cifs -o uid=`id -u www-data`,gid=`getent group www-data | cut -d: -f3`,dir_mode=0775,file_mode=0664,sec=ntlm,credentials=/etc/smb_creds_24f79a72536bca2b335860f233950314 ///24f79a72536bca2b335860f233950314 /var/www 
mount -t cifs -o uid=`id -u www-data`,gid=`id -g www-data`,dir_mode=0775,file_mode=0664,sec=ntlm,credentials=/etc/smb_creds_24f79a72536bca2b335860f233950314 ///24f79a72536bca2b335860f233950314 /var/www 

The error output from the last command was: 

mount: wrong fs type, bad option, bad superblock on ///24f79a72536bca2b335860f233950314, 
     missing codepage or helper program, or other error 
     (for several filesystems (e.g. nfs, cifs) you might 
     need a /sbin/mount.<type> helper program) 
     In some cases useful info is found in syslog - try 
     dmesg | tail or so 

После этой ошибки я бегу бродяга положение которым вызвало другую ошибку:

==> pup-machine1: [vagrant-hostsupdater] Checking for host entries 
==> pup-machine1: [vagrant-hostsupdater] found entry for: 192.168.56.110 testpup.dev 
==> pup-machine1: Running provisioner: shell... 
    pup-machine1: Running: inline script 
==> pup-machine1: sed: can't read /vagrant/puphpet/shell/*.sh: No such file or directory 
The SSH command responded with a non-zero exit status. Vagrant 
assumes that this means the command failed. The output for this command 
should be in the log above. Please read the output to determine what 
went wrong. 

ответ

2

Так при создании окна с помощью puphpet.com оставить sync_type к по умолчанию и после первой загрузки бродячего SSH к вашей коробке и запустите sudo yum install cifs-utils для centos или sudo apt-get install cifs-utils для ubuntu.

Другой способ, при создании вашей коробки указать CIFS-Utils под системные пакеты затем запустить с по умолчанию sync_type, пусть это установить все пакеты, после первой загрузки, изменения sync_type к кому-л и перезагрузить.

Чтобы помнить, вы должны в первый раз запустить с использованием sync_type по умолчанию и позволить бродяжничеству делать, устанавливать все пакеты и настраивать. Затем измените sync_type на smb и перезагрузите, поэтому основная проблема отсутствует. cifs-utils. Другой, не связанный с этой проблемой, состоит в том, что если вы оставите smb_host пустым, это тоже не сработает. Измените его с smb_host: '' до smb_host: (не оставляйте пустое место после:). Chnages mus будет сделана в файле config.yaml.