M312-vagrant-env install fail on MacOS

Hi ,

I am trying to do Installing Vagrant for M312, but shared folder not found.

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

I am run the following commands
cd m312-vagrant-env vagrant plugin install vagrant-vbguest
$ vagrant up

echo hello >> shared/test.txt vagrant ssh

$ cat /shared/test.txt
cat: /shared/test.txt: No such file or directory

There is not shared folder in m312 vBox.

I try to do :
vagrant plugin install vagrant-vbguest vagrant reload
$ vagrant provision

But no effect.

Best regards,

Felix

From which dir you redirected echo hello?
I think m312-vagrant-env.So check there for your test file

shared/test.txt is not same as /shared/test.txt
First one is relative path and second one is absolute path

Hi,

Thanks reply.

I do the follow command in vagrant m312.
vagrant@m312:~$ cat ~/shared/test.txt
cat: /home/vagrant/shared/test.txt: No such file or directory

Actually, there is not shared folder in vagrant environment
( By the way, there no this issue in m310 courses in vagrant environment .)

Best regards,

Felix

May be plugin version issues
Check this link from another course
Not sure if it is applicable to M312

Also did you see any error messages when vagrant up
It will show what is your shared dir

M310 Vagarnt infrastructure install fail

Hi

==
vagrant plugin install vagrant-vbguest --plugin-version 0.21
Installing the ‘vagrant-vbguest --version ‘0.21’’ plugin. This can take a few minutes…
Fetching micromachine-3.0.0.gem
Fetching vagrant-vbguest-0.21.0.gem
Installed the plugin ‘vagrant-vbguest (0.21.0)’!

I try to insall v0.21, and run again “vagrant up”, then got highlight messages:

m312: Installing collected packages: setuptools
m312:   Found existing installation: setuptools 3.3
m312:     Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS
m312:   Running setup.py install for setuptools
m312:     pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
m312:     ************************************************************
m312:     You are running Setuptools on Python 2, which is no longer
m312:     supported and
m312:     >>> SETUPTOOLS WILL STOP WORKING <<<
m312:     in a subsequent release (no sooner than 2020-04-20).
m312:     Please ensure you are installing
m312:     Setuptools using pip 9.x or later or pin to `setuptools<45`
m312:     in your environment.
m312:     If you have done those things and are still encountering
m312:     this message, please comment in
m312:     https://github.com/pypa/setuptools/issues/1458
m312:     about the steps that led to this unsupported combination.
m312:     ************************************************************
m312:       sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
m312:     warning: no files found matching '*.py' under directory 'tests'
m312:     warning: no previously-included files found matching 'pyproject.toml'
m312:     Installing easy_install script to /usr/local/bin
m312:     Installing easy_install-2.7 script to /usr/local/bin
m312:   Could not find .egg-info directory in install record for setuptools==45.3.0
m312: Successfully installed setuptools
m312: Cleaning up...
m312: + sudo pip install psutil==5.7.2
m312: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
m312: ************************************************************
m312: You are running Setuptools on Python 2, which is no longer
m312: supported and
m312: >>> SETUPTOOLS WILL STOP WORKING <<<
m312: in a subsequent release (no sooner than 2020-04-20).
m312: Please ensure you are installing
m312: Setuptools using pip 9.x or later or pin to `setuptools<45`
m312: in your environment.
m312: If you have done those things and are still encountering
m312: this message, please comment in
m312: https://github.com/pypa/setuptools/issues/1458
m312: about the steps that led to this unsupported combination.
m312: ************************************************************
m312:   sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
m312: Downloading/unpacking psutil==5.7.2
m312:   Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for package psutil
m312:     /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
m312:     ************************************************************
m312:     You are running Setuptools on Python 2, which is no longer
m312:     supported and
m312:     >>> SETUPTOOLS WILL STOP WORKING <<<
m312:     in a subsequent release (no sooner than 2020-04-20).
m312:     Please ensure you are installing
m312:     Setuptools using pip 9.x or later or pin to `setuptools<45`
m312:     in your environment.
m312:     If you have done those things and are still encountering
m312:     this message, please comment in
m312:     https://github.com/pypa/setuptools/issues/1458
m312:     about the steps that led to this unsupported combination.
m312:     ************************************************************
m312:       sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
m312:     /tmp/pip_build_root/psutil/setup.py:12: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
m312:       import os
m312: Installing collected packages: psutil
m312:   Found existing installation: psutil 1.2.1
m312:     Not uninstalling psutil at /usr/lib/python2.7/dist-packages, owned by OS
m312:   Running setup.py install for psutil
m312:     /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
m312:     ************************************************************
m312:     You are running Setuptools on Python 2, which is no longer
m312:     supported and
m312:     >>> SETUPTOOLS WILL STOP WORKING <<<
m312:     in a subsequent release (no sooner than 2020-04-20).
m312:     Please ensure you are installing
m312:     Setuptools using pip 9.x or later or pin to `setuptools<45`
m312:     in your environment.
m312:     If you have done those things and are still encountering
m312:     this message, please comment in
m312:     https://github.com/pypa/setuptools/issues/1458
m312:     about the steps that led to this unsupported combination.
m312:     ************************************************************
m312:       sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)

Best regards,

Felix

Hi

I check vagrant up output message:

==> m312: Mounting shared folders…
m312: /shared => /Users/***/VirtualBox VMs/m312-vagrant-env/shared

So, the shared folder full path is /shared in m312 vbox, not in /home/vagrant/shared/.
Not the same as m310, It’s my mistake.

Thanks.

Felix

Hi @BaoFeng_He,

I am glad that you were able to diagnose and fix the issue. :clap:

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

Kind Regards,
Sonali