Папка синхронизации Vagrant не работает в Windows 10

Я пытаюсь синхронизировать папки из хоста Windows 10 с гостем Ubuntu, но получаю эту ошибку:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 8080 (guest) => 8080 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
    default: /vagrant => C:/sync_workspace
    default: /sync_workspace => C:/sync_workspace
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 vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,nolock,vers=3 core /sync_workspace
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant`,nolock,vers=3 core /sync_workspace

The error output from the last command was:

stdin: is not a tty
unknown mount option `nolock'
valid options:
  rw         mount read write (default)
  ro         mount read only
  uid       =<arg> default file owner user id
  gid       =<arg> default file owner group id
  ttl       =<arg> time to live for dentry
  iocharset =<arg> i/o charset (default utf8)
  convertcp =<arg> convert share name from given charset to utf8
  dmode     =<arg> mode of all directories
  fmode     =<arg> mode of all regular files
  umask     =<arg> umask of directories and regular files
  dmask     =<arg> umask of directories
  fmask     =<arg> umask of regular files

Вот мой Vagrantfile

Vagrant.configure(2) do |config|
   config.vm.box = "ubuntu/trusty64"
   config.vm.network "forwarded_port", guest: 8080, host: 8080
   config.vm.synced_folder "C:/Users/rafa/Documents/personal docs", "/vagrant_data/sync_workspace"
end

Хост: Windows 10 Гость: Ubuntu Vagrant: 1.8.1 VirtualBox: версия 5.0.20 r106931

Любая помощь?


person Rafael Reyes    schedule 15.05.2016    source источник
comment
Можете ли вы включить параметр отладки в бродяге, например vagrant up --debug? Я предполагаю, что проблема заключается в пробеле в имени папки Windows. Но нужно доказать это с помощью журналов отладки.   -  person BMW    schedule 16.05.2016


Ответы (2)


Установите плагин vagrant blurest и позвольте ему установить гостевые дополнения VirtualBox хоста в гостевой системе и в вашем случае это обновит ваше гостевое дополнение

person Frederic Henri    schedule 16.05.2016

Также попробуйте apt-get update в своей гостевой ОС.

person StalkAlex    schedule 16.05.2016
comment
Как запустить apt-get в Windows? - person jycr753; 10.12.2016
comment
Легкий. Используйте Ubuntu внутри aka Bash в Windows. - person StalkAlex; 10.12.2016
comment
Что ты имеешь в виду? ВМ? - person jycr753; 10.12.2016
comment
howtogeek .com/249966/ - person StalkAlex; 10.12.2016
comment
вау, возможно, поэтому я думаю, что в вашем ответе не хватает много информации;) - person jycr753; 10.12.2016
comment
Мой ответ на вопрос автора темы, а не на ваш. Его гостевая ОС — Ubuntu, и в ней есть вся информация, которая поможет решить аналогичную проблему, с которой я столкнулся некоторое время назад. - person StalkAlex; 11.12.2016