Hôm nay khi mở máy ảo vagrant lên thì gặp lỗi ở bước mount folder như bên dưới: ~~~ Failed to mount folders in Linux guest. This is usually beacuse 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 apache | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=777,fmode=777 /vagrant /vagrant ~~~ ## Nguyên nhân: Theo như tìm hiểu trên mạng thì là có lẽ là do hôm trước thực hiện update, kernel của máy ảo được update mới nhưng module VirtualBox Guest Additions vẫn còn ở phiên bản cũ nên không tương thích. ## Giải pháp: Build lại module VirtualBox Guest Additions. Kết nối vào máy ảo qua SSH, thực hiện lệnh bên dưới: ~~~ $ sudo /etc/init.d/vboxadd setup Removing existing VirtualBox non-DKMS kernel modules [ OK ] Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module [ OK ] Building the shared folder support module [ OK ] Building the OpenGL support module [ FAILED ] (Look at /var/log/vboxadd-install.log to find out what went wrong) Doing non-kernel setup of the Guest Additions [ OK ] ~~~