Błąd Vagrant: nie udało się zamontować folderów w Linux guest

Mam pewne problemy z folderami współdzielonymi Vagrant, moim podstawowym systemem jest Ubuntu 13.10 desktop.

Nie rozumiem, dlaczego mam ten błąd jest coś, co nie jest dobrze skonfigurowany ? Problem z NFS czy Virtualbox ? Próbowałem z różnymi pudełkami, ale ten sam problem.

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` /vagrant /vagrant
    mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

Oto cały proces po vagrant up:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'u131032'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant_default_1396020504136_46442
==> 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: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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: Error: Connection timeout. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
    default: Error: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
GuestAdditions versions on your host (4.3.10) and guest (4.2.16) do not match.
 * Stopping VirtualBox Additions
   ...done.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  dkms libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1
  libgl1-mesa-dri libglapi-mesa libice6 libllvm3.3 libpciaccess0 libpixman-1-0
  libsm6 libtxc-dxtn-s2tc0 libxaw7 libxcomposite1 libxdamage1 libxfixes3
  libxfont1 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxt6
  x11-common x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils
  xserver-common xserver-xorg-core
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  virtualbox-guest-dkms* virtualbox-guest-utils* virtualbox-guest-x11*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 11.1 MB disk space will be freed.
(Reading database ... 65615 files and directories currently installed.)
Removing virtualbox-guest-dkms ...

-------- Uninstall Beginning --------
Module:  virtualbox-guest
Version: 4.2.16
Kernel:  3.11.0-18-generic (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxguest.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-18-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxsf.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-18-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxvideo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-18-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 4.2.16
completely from the DKMS tree.
------------------------------
Done.
Removing virtualbox-guest-x11 ...
Purging configuration files for virtualbox-guest-x11 ...
Removing virtualbox-guest-utils ...
Purging configuration files for virtualbox-guest-utils ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version.
dkms set to manually installed.
linux-headers-3.11.0-18-generic is already the newest version.
linux-headers-3.11.0-18-generic set to manually installed.
The following packages were automatically installed and are no longer required:
  libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1 libgl1-mesa-dri
  libglapi-mesa libice6 libllvm3.3 libpciaccess0 libpixman-1-0 libsm6
  libtxc-dxtn-s2tc0 libxaw7 libxcomposite1 libxdamage1 libxfixes3 libxfont1
  libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxt6 x11-common
  x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
  xserver-xorg-core
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copy iso file /usr/share/virtualbox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only
Installing Virtualbox Guest Additions 4.3.10 - guest version is 4.2.16
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.10 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.10. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
nfsd running
sudo: /usr/bin/exportfs: command not found
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
    default: /vagrant => /home/me/Documents/Work/project/vagrant
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` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

Moja konfiguracja Vagrantfile to:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

personalization = File.expand_path("../Personalization", __FILE__)
load personalization

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = $base_box
  config.vm.box_url = $base_box_url

  config.vm.hostname = $vhost + ".dev"

  config.hostsupdater.aliases = ["api." + $vhost + ".dev", "mysql." + $vhost + ".dev"]
  config.hostsupdater.remove_on_suspend = true

  # set auto_update to ture to check the correct 
  # additions version when booting the machine
  config.vbguest.auto_update = true
  config.vbguest.auto_reboot = true

  config.vm.network :private_network, ip: $ip

  config.vm.synced_folder "../", "/srv/www/vhosts/" + $vhost + ".dev", type: "nfs"

  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--memory", 2048]
    v.customize ["modifyvm", :id, "--cpus", "1"]
    v.customize ["modifyvm", :id, "--cpuexecutioncap", "100"]
    v.customize ["modifyvm", :id, "--ioapic", "off"]
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  end

  config.vm.provision "shell" do |s|
    s.path = "vagrant-bootstrap.sh"
    s.args = $vhost + " " + $mysql_password + " " + $application_database
  end
end

Plik personalizacji to:

# Name of the vhost to create
$vhost = "project"

# Use the Ubunut 32bit or 64bit
$base_box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-i386-vagrant-disk1.box"

# VM IP
$ip = "192.168.7.7"

# Base box name
$base_box = "u131032"

# MySQL
$mysql_password = "admin"
$application_database = "project"

Następujące wtyczki są włączone w Vagrant:

$ vagrant plugin list
vagrant-hostsupdater (0.0.11)
vagrant-login (1.0.1, system)
vagrant-share (1.0.1, system)
vagrant-vbguest (0.10.0)
Author: Ek Kosmos, 2014-03-28

21 answers

Plugin vagrant-vbguest GitHub RubyGems rozwiązałem mój problem:

$ vagrant plugin install vagrant-vbguest

Wyjście:

$ vagrant reload
==> default: Attempting graceful shutdown of VM...
...
==> default: Machine booted and ready!
GuestAdditions 4.3.12 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: VM already provisioned. Run `vagrant provision` or use `--provision` to force it

Upewnij się, że używasz najnowszej wersji VirtualBox

 350
Author: karlingen,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-04-29 09:18:28

Znalazłem ten problem tutaj problemy Włóczęgów. dwa sposoby:

  1. Uruchom to na guest (tj. po ssh do vboxa przez vagrant ssh)

    sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
    

    Następnie uruchom vagrant reload, aby poprawnie zamontować foldery.

  2. Jak zauważył @klang, zaktualizuj VBoxGuestAdditions.plik iso na komputerze mac:

    wget https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.11-93070.iso‌​
    sudo cp VBoxGuestAdditions_4.3.11-93070.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
    
W tym celu należy skontaktować się z działem obsługi klienta.]}

Ponieważ iso nie jest już dostępny, możesz użyć wersji 4.3.12 ( http://dlc.sun.com.edgesuite.net/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso )

Uwaga: binarny vbox4. 3. 12 dla os X nie jest obecnie dostępny

 231
Author: kenzie,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-08-06 08:26:21

Dotarłem na tę stronę, szukając tego samego komunikatu o błędzie. Dla mnie przyczyna była inna: uruchomiłem yum update w systemie, który zainstalował nowe jądro. Dodatki gości tam, gdzie nieaktualne, więc nie można ich załadować.

Przebudowałem je

sudo /etc/init.d/vboxadd setup 

I vagrant reload później mój gość znów zaczął działać.

Dodaję to tutaj na wypadek, gdyby ktoś inny tu dotarł tak samo jak ja.

Edit (Per KCD ' s comment):
Możliwe, że ty błąd:

Nie znaleziono nagłówków dla bieżącego jądra

Można to rozwiązać instalując kernel-devel (yum install kernel-devel)

 48
Author: Blizz,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-09-03 06:10:27

Fix krok po kroku:

Jeśli nie masz wtyczki vbguest, zainstaluj ją:

$ vagrant plugin install vagrant-vbguest

Run Vagrant

To jest pokaż błąd.

$ vagrant up

Logowanie na VM

$ vagrant ssh

Napraw!

W guest (vm logged).

$ sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

Back on the host, reload Vagrant

$ vagrant reload
 28
Author: Dadaso Zanzane,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-02-23 14:48:32

Aktualizacja Luty 2016

To zajęło mi godziny, aby rozwiązać niezależnie. Tak, ten problem nadal istnieje z najnowszymi instalacjami Vagrant i Virtual Box: {]}
△  vagrant -v
Vagrant 1.8.1
△  vboxmanage -v
5.0.14r105127

Objawy dla mnie były wiadomości Coś w rodzaju:

Checking for guest additions in VM... The guest additions on this VM do not match the installed version of VirtualBox!

Po którym następuje błąd montażu dysków NFS.

1). Zainstaluj wtyczkę vagrant-vbguest.

W zależności od używanej wersji Vagrant, wydaj jedno z następujących poleceń:

# For vagrant < 1.1.5
$ vagrant gem install vagrant-vbguest

# For vagrant 1.1.5+
$ vagrant plugin install vagrant-vbguest

Następny, do vagrant halt, następnie vagrant up - są szanse, że nadal masz problemy.

2). ssh do gościa i ustaw soft link do poprawnej wersji dodatków Gościa (tutaj, 5.0.14).

$ vagrant ssh

$ sudo ln -s /opt/VBoxGuestAdditions-5.0.14/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
$ exit

$ vagrant reload
Powinno być dobrze. Domyślnie dysk zamontowany na serwerze guest ma wartość /vagrant

Ostatni komentarz:

Jeśli nadal masz problemy związane z montowaniem dysków NFS, oto obejście, które zadziałało dla mnie. Miałem vagrantfile z config coś w stylu:

Po prostu usuń mocowanie wpisz Informacje i zmniejsz ustawienia mount_options , aby działały uniwersalnie. Vagrant automatycznie wybierze opcję najlepiej zsynchronizowanego folderu dla Twojego środowiska.

 14
Author: arcseldon,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-02-26 18:37:33

Zainstaluj wtyczkę vagrant-vbguest, uruchamiając to polecenie:

vagrant plugin install vagrant-vbguest
 12
Author: ngonidzashe,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-04-29 12:27:14

Doświadczyłem tego samego problemu z Centos 7, zakładam, że ze względu na przestarzałe jądro w połączeniu z zaktualizowaną wersją VirtualBox. Na podstawie aktualizacji Blizza, to mi się udało (Vagrant-vbguest plugin już zainstalowany):

vagrant ssh
sudo yum -y install kernel-devel
sudo yum -y update
exit
vagrant reload --provision
 6
Author: user3006381,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-03-02 02:57:15

Dla mnie, z VBoxGuestAdditions 5.1.20, problem polegał na tym, że /sbin/mount.vboxsf wskazuje na złą lokalizację.

sudo ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

Fixed it for me

 5
Author: bartv,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-04-24 21:33:50

W przeciwieństwie do innych programów, nie jest to możliwe.

Dotyczy tylko VirtualBox 4.3.10 i został całkowicie poprawiony w 4.3.12.

 4
Author: tsusanka,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-03-30 07:45:49

Uważam, że jest to najbardziej aktualna odpowiedź teraz i to działało dla mnie ( Guest Additions Version: 5.0.6, VirtualBox Version: 4.3.16, Ubuntu 14.04 LTS)

Https://github.com/mitchellh/vagrant/issues/3341#issuecomment-144271026

W zasadzie mówię:

Simple and Quick Solution for Failed to mount folders in Linux guest issue.

Add the following line to your Homestead/Vagrantfile:

config.vbguest.auto_update = false
Your Homestead/Vagrantfile should looks like this:

/...

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

   # To avoid install and uninstall VBoxGuessAdditions during vagrant provisioning.
    config.vbguest.auto_update = false

.../
Save it and execute

$ vagrant destroy --force
$ vagrant up
 3
Author: psychok7,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-10-29 18:19:13

Tak na przyszłość, ten problem pojawił się u mnie, używając Vagrant 1.7.4 i VirtualBox 5.0.10 r104061, kiedy aprowizowałem folder współdzielony w / i utworzyłem dowiązanie symboliczne do mojego folderu domowego. Coś takiego:

/folder
~/folder -> /folder

Najwyraźniej ta operacja nie jest dozwolona przez Vagranta ze względów bezpieczeństwa i rzuca opisany błąd.

Rozwiązałem to, aprowizując żądany folder bezpośrednio do mojego katalogu domowego, na przykład /home/vagrant/folder.

 3
Author: Matheus Portela,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-12-04 17:59:57

W moim przypadku na wcześniej działającym obrazie Ubuntu 16.04, błąd zaczął się po zainstalowaniu Vagrant-vbguest dla innego obrazu vagrant, a następnie uruchomieniu maszyny Wirtualnej Ubuntu. Zaktualizował dodatki gości do wersji 5.1.20 i od tego czasu wierzchowce zaczęły zawodzić. Zaktualizowałem box, apt update + upgrade i to samo, vbguest zainstalowałby nowszą wersję 5.1.20.

Został rozwiązany przez ręczne uruchomienie:

sudo apt-get update
sudo apt-get install virtualbox-guest-dkms 

A także wyłączenie: config.vbguest.auto_update = false dla tej maszyny wirtualnej (może nie być konieczne).

 2
Author: Nico,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-04-25 21:07:01

(z mojego komentarza powyżej)

Po problemie do jego korzeni:, konkretnie część w komentarzach mówiąca o tym:

wget https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.11-93070.iso‌​ 
sudo cp VBoxGuestAdditions_4.3.11-93070.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso

Po zrobieniu tego, mam normalne interesy ze wszystkimi moimi maszynami wirtualnymi (i ich aktualnymi plikami Vagrantfiles, oczywiście)

Kiedy musisz zrobić coś w świeżo stworzonej maszynie wirtualnej, aby to działało, coś jest nie tak.

 1
Author: klang,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-04-10 06:05:17

W konfiguracji gdzie windows jest hostem, a linux gościem znalazłem rozwiązanie tego samego problemu w innym miejscu.

Więc ponownie, komunikat o błędzie był " nie udało się zamontować folderów w Linux guest. Dzieje się tak zazwyczaj dlatego, że system plików" vboxsf " nie jest dostępny." (...)

To było spowodowane tym, że popełniłem błąd, wykonując dowiązanie symboliczne wewnątrz systemu gościa z /vagrant do / home/vagrant / vagrant. Chodzi o to, że katalog /vagrant jest normalnym katalogiem linuksowym to ma dowiązanie symboliczne (więc wszystko w porządku), ale podczas uruchamiania przez "vagrant up", próbuje zamontować katalog windows w tym miejscu, a Katalog windows nie może działać jako dowiązanie symboliczne. Windows host nie obsługuje dowiązań symbolicznych Linuksa.

Więc co możesz zrobić, to ssh do gościa, usunąć dowiązanie symboliczne gdziekolwiek masz go, i przeładować maszynę.

W mojej konfiguracji było to: Vagrant 1.7.2, VBoxGuestAdditions 4.3.28 i VBox 4.3.28.

 1
Author: BartoszK,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-06-29 05:28:24

Jest rok 2017. Na wypadek, gdyby ktoś miał ten sam problem.

Dla bento / centos-6.7, miałem ten sam błąd. To zostało rozwiązane przez dodanie wtyczki vagrant-vbguest (0.13.0). c: > Vagrant plugin install Vagrant-vbguest

Box url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-7.0_chef-provisionerless.box

Ta wersja centos-7 dawała mi ten sam błąd

błąd:

==> build: Mounting shared folders...
    build: /vagrant => C:/projects/
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

Mój Konfiguracja:

C:\projects>vagrant -v
Vagrant 1.9.1

C:\projects> vboxmanage -v
5.0.10r104061

C:\projects>vagrant plugin list
vagrant-cachier (1.2.1)
vagrant-hostmanager (1.8.5)
vagrant-hosts (2.8.0)
vagrant-omnibus (1.5.0)
vagrant-share (1.1.6, system)
vagrant-vbguest (0.13.0)
vagrant-vbox-snapshot (0.0.10)

Ponieważ mam już Vagrant-vbguest plugin, próbuje zaktualizować VBoxGuestAdditions w centos-7, gdy widzi różne wersje vbguestadditions są zainstalowane w Host 5.0.10 i guest 4.3.20.

Sprawdziłem nawet, czy istnieje dowiązanie symboliczne.

[root@build VBoxGuestAdditions]# ls -lrt /usr/lib
lrwxrwxrwx.  1 root root   53 Jan 14 12:06 VBoxGuestAdditions -> /opt/VBoxGuestAdditions-5.0.10/lib/VBoxGuestAdditions
[root@build VBoxGuestAdditions]# mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
/sbin/mount.vboxsf: mounting failed with the error: No such device

to nie działa jak sugerowane przez user3006381

vagrant ssh
sudo yum -y install kernel-devel
sudo yum -y update
exit
vagrant reload --provision

rozwiązanie dla centos-7: jak podano przez psychok7 pracował

/ Align = "left" / config.vbguest.auto_update = false Then vagrant destroy --force i vagrant up

Wynik:

javareport: Guest Additions Version: 4.3.20
javareport: VirtualBox Version: 5.0
==> javareport: Setting hostname...
==> javareport: Configuring and enabling network interfaces...
==> javareport: Mounting shared folders...
javareport: /vagrant => C:/projects

C:\project>
 1
Author: samarjit samanta,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-01-14 13:32:22

Twój log skarży się, że nie znajdziesz exportfs: sudo: /usr/bin/exportfs: command not found

Exportfs udostępnia katalogi lokalne dla klientów NFS do montowania.

 0
Author: kenzie,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-03-28 15:55:16

Wydaje się, że jest to spowodowane niekompatybilnością z wtyczką vbguest vagrant i najnowszą wersją vagrant. Próbuje zaktualizować dodatki gości i nie robi tego całkowicie / poprawnie.

 0
Author: Hickeroar,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-04-10 20:46:09

Try like it:

vagrant plugin install vagrant-vbguest

W Vagrantfile dodaj:

config.vbguest.iso_path = "http://download.virtualbox.org/virtualbox/VERSION/VBoxGuestAdditions_VERSION.iso"
config.vbguest.auto_update = false
config.vbguest.installer_arguments = %w{--nox11 -- --force}

Run:

vagrant vbguest --do install -f -b

vagrant reload
 0
Author: user8034098,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-05-19 01:48:14

Używałem Vagrant z VirtualBox 5.1.X, i musiał downgrade do VirtualBox 5.0.40 i zainstalować wtyczkę vbguest, aby rozwiązać ten problem.

Moje kroki były:

  • Odinstaluj VirtualBox 5.1.X
  • Install Vagrant 5.0.40
  • Uruchom ponownie moją maszynę
  • Run vagrant up for my vagrant. To się nie uda.
  • Uruchom vagrant plugin install vagrant-vbguest podczas pracy mojej maszyny Wirtualnej, aby zainstalować wtyczkę vagrant. Zarządza synchronizacją wersji Gościa VirtualBox między hostem a gościnnie
  • Uruchom vagrant reload, aby przeładować moją maszynę wirtualną
  • Magia!
 0
Author: Brad Parks,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-10-02 16:26:58

Do tej pory montaż działa na niektórych maszynach (ubuntu), a niektóre nie (centos 7) ale instalacja wtyczki rozwiązuje to

vagrant plugin install vagrant-vbguest

Bez konieczności robienia czegokolwiek poza tym, po prostu

vagrant reload
 0
Author: George Mogilevsky,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2018-07-16 17:37:18

Kolejny krok, który musiałem wykonać po wykonaniu pierwszej sugestii kenzie, polegał na uruchomieniu mount poleceń wymienionych w komunikacie o błędzie z sudo z linii poleceń Ubuntu [14.04 Server]. Potem wszystko było gotowe!

 -1
Author: Yossarian,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-05-14 18:00:29