M310 Vagarnt infrastructure install fail

Hi ,

I am trying to do Installing vagrant of Chapter 1 Authentication lessons.

My Enviroment:
MacOS 10.15.7
VirtualBox Version 6.0.14 r133895 (Qt5.6.3)
Vagrant Installed Version: 2.2.14
Vagrntfile :
m310-vagrant-env.zip

I am run the following commands
" cd m310-vagrant-env "
" vagrant plugin install vagrant-vbguest "
"vagrant up "

" echo hello >> shared/test.txt "
" vagrant ssh database "
" cat ~/shared/test.txt "
" exit "
" vagrant ssh infrastructure "
" cat ~/shared/test.txt "

There are 2 problems that I got:

  1. The Infrastructure VM have highlight messages

    [infrastructure] No Virtualbox Guest Additions installation found.

    The following SSH command responded with a non-zero exit status.
    Vagrant assumes that this means the command failed!
    umount /mnt
    Stdout from the command:
    Stderr from the command:
    umount: /mnt: not mounted

    I trying to do manual install Virtualbox Guest Additions, but can not, because I don’t have the root account in the Infrastructure VM.
    By the way, the Database VM install successful, didn’t got any highlight messages.

  2. When I do “vagrant ssh infrastructure”, that can login into VM, but “cat ~/shared/test.txt” got “cat: /home/vagrant/shared/test.txt: No such file or directory” message.
    By the way, in the Database VM can see “hello” after do “cat ~/shared/test.txt” .

Vagrant fail to sync files in the shared directory in the Infrastructure VM, is’t problem about “No Virtualbox Guest Additions installation found” ?

I try many times to do the following steps, but still can not solve this issue.
" vagrant plugin install vagrant-vbguest "
" vagrant reload "
" vagrant provision "

Best regards,

Felix

Hi @BaoFeng_He,

Try to run the following command to destroy the current vagrant setup:

vagrant destroy

Then re-install the vagrant-vbguest plugin:

vagrant plugin uninstall vagrant-vbguest
vagrant plugin install vagrant-vbguest --plugin-version 0.21

Now, run the vagrant up command.

I hope it helps!!

Please feel free to reach out if you have any questions.

Kind Regards,
Sonali

2 Likes

Hi @Sonali_Mamgain

All problems have solved.
Thank you very much.

Let’s recap:
The root cause is version that “Installed the plugin ‘vagrant-vbguest (0.28.0)’” change to “Installed the plugin ‘vagrant-vbguest (0.21.0)’” , correct ?

Best regards,
Felix

1 Like

Thank you…This post helped me resolve the Infrastructure Sync Issue

helpful about install infrastructure vm