I am having problems with the Vagrant environment while working on “Homework 1.2 : Enabling Authentication on a Running Replica Set”.
When I try to run this command:
…:m310-vagrant-env me$ vagrant up
I get this result:
Bringing machine ‘database’ up with ‘virtualbox’ provider…
Bringing machine ‘infrastructure’ up with ‘virtualbox’ provider…
==> database: Checking if box ‘ubuntu/trusty64’ version ‘20190514.0.0’ is up to date…
==> database: Machine already provisioned. Run
vagrant provision or use the
==> database: flag to force provisioning. Provisioners marked to run always will still run.
==> infrastructure: Checking if box ‘centos/7’ version ‘2004.01’ is up to date…
==> infrastructure: Clearing any previously set forwarded ports…
==> infrastructure: Fixed port collision for 22 => 2222. Now on port 2200.
==> infrastructure: Checking for guest additions in VM…
infrastructure: No guest additions were detected on the base box for this VM! Guest
infrastructure: additions are required for forwarded ports, shared folders, host only
infrastructure: networking, and more. If SSH fails on this machine, please install
infrastructure: the guest additions and repackage the box to continue.
infrastructure: This is not an error message; everything may continue to work properly,
infrastructure: in which case you may ignore this message.
==> infrastructure: Setting hostname…
==> infrastructure: Configuring and enabling network interfaces…
==> infrastructure: Rsyncing folder: /Users/me/Documents/Exploration_Space/m310-vagrant-env/ => /vagrant
==> infrastructure: Mounting shared folders…
infrastructure: /home/vagrant/shared => /Users/me/Documents/Exploration_Space/m310-vagrant-env/shared
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 home_vagrant_shared /home/vagrant/shared
The error output from the command was:
mount: unknown filesystem type ‘vboxsf’
Since I was able to use Vagrant in one previous exercise, I suppose it should be working.
But I may also well be doing some basic mistakes, since I had never heard of it before taking this course.