«Failed to mount folders in Linux guest»

Запуск виртуальной машины VirtualBox / 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-root /vagrant
mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant vagrant-root /vagrant

The error output from the last command was:

stdin: is not a tty
/sbin/mount.vboxsf: mounting failed with the error: No such device

Причиной сбоя является несоответствие между версией VirtualBox и версией VirtualBox Guest Additions, о чём система пишет в более раннем диагностическом сообщении:

The guest additions on this VM do not match the installed version of 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 shared folder errors, please make sure the guest additions within the virtual machine match the version of VirtualBox you have installed on your host and reload your VM.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.3

Для устранения сбоя надо обновить VirtualBox Guest Additions.
Мне оказалось проще всего установить гем vbguest

Шаг 1.

vagrant plugin install vagrant-vbguest

Шаг 2.

vagrant reload