Nếu version của VirtualBox Guest Additions trong box của vargrant (guest) cũ hơn so với phiên bản được cài trên Windows (host) thì khi thực hiện lệnh `vagrant up` sẽ xuất hiện thông báo tương tự dưới đây: ~~~ ==> 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: cause things such as shared folders to not work properly. If you see ==> default: shared folder errors, please update the guest additions within the ==> default: virtual machine and reload your VM. ==> default: Guest Additions Version: 5.0.10 ==> default: VirtualBox Version: 5.1 ~~~ Dưới đây là cách update Guest Additions trong box để khắc phục vấn đề này. Tất cả các lệnh dưới đây đều thực hiện trên cmd của Windows. ### Cài plugin vagrant-vbguest: https://github.com/dotless-de/vagrant-vbguest ~~~ > vagrant plugin install vagrant-vbguest ~~~ ### Update VirtualBox Guest Additions trong guest: ~~~ > vagrant vbguest [default] GuestAdditions versions on your host (5.1.22) and guest (5.0.10) do not match. Setting up Install Process Package kernel-devel-2.6.32-696.1.1.el6.x86_64 already installed and latest version Package gcc-4.4.7-18.el6.x86_64 already installed and latest version Package binutils-2.20.51.0.2-5.47.el6_9.1.x86_64 already installed and latest version Package 1:make-3.81-23.el6.x86_64 already installed and latest version Package 4:perl-5.10.1-144.el6.x86_64 already installed and latest version Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version Nothing to do Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso Installing Virtualbox Guest Additions 5.1.22 - guest version is 5.0.10 Verifying archive integrity... All good. Uncompressing VirtualBox 5.1.22 Guest Additions for Linux........... VirtualBox Guest Additions installer Removing installed version 5.0.10 of VirtualBox Guest Additions... Stopping VirtualBox Additions [FAILED] (Cannot unload module vboxguest) Removing existing VirtualBox non-DKMS kernel modules[ OK ] [ OK ] VirtualBox Guest Addition service [ OK ] Copying additional installer modules ... Installing additional modules ... vboxadd.sh: Starting the VirtualBox Guest Additions. An error occurred during installation of VirtualBox Guest Additions 5.1.22. Some functionality may not work as intended. In most cases it is OK that the "Window System drivers" installation failed. vboxadd.sh: Starting the VirtualBox Guest Additions. Could not find the X.Org or XFree86 Window System, skipping. ~~~ Trong quá trình update có thể xuất hiện thông báo không tìm thấy X Window (dành cho GUI) nhưng có thể bỏ qua. ### Kiểm tra version của VirtualBox Box Additions: ~~~ > vagrant vbguest --status [default] GuestAdditions 5.1.22 running --- OK. ~~~ Xong. Sau khi update xong VirtualBox Box Additions, thực hiện lại `vagrant up` sẽ không xuất hiện thông báo version không tương thích nữa.