I am taking an online course on udacity for full stack developer, one of the courses involves installing virtualbox and vagrant in your computer. in my case i have a window 10 laptop. I was able to install virtualbox and vagrant correctly. According to the instructions, the first vagrant command is vagrant up, then vagrant ssh
i can get in the virtual manchine runnig ubuntu. however, the instructions say to do an ls command and you should see the files in the virtualmachine as in your pc, however i DONT
i read through it, it also says to cd to vagrant directory. this is not very good instructions. the correct instructions should be:
commands:
1. $ vagrant up
2. $ vagrant ssh
Once you are in the virtualmachine, send these commands:
1. $ cd /vagrant
2. $ ls
NOW you will see all the files from your local computer
catalog forum tournament Vagrantfile
done
I was following their instructions, and all i keep seing was this file: redis-stable.tar.gz
The following is my output from each command:
vagrant> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-16.04-i386' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 8000 (guest) => 8000 (host) (adapter 1)
default: 8080 (guest) => 8080 (host) (adapter 1)
default: 5000 (guest) => 5000 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => F:/apachefriends/xampp/htdocs/udacity/Z_GIT/FSND-Virtual-Machine/vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
vagrant> vagrant ssh
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-75-generic i686)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
The shared directory is located at /vagrant
To access your shared files: cd /vagrant
Last login: Thu Aug 17 17:36:05 2017 from 10.0.2.2
vagrant@vagrant:~$ cd vagrant
-bash: cd: vagrant: No such file or directory
vagrant@vagrant:~$ cd /vagrant
vagrant@vagrant:/vagrant$ ls
catalog forum tournament Vagrantfile
vagrant@vagrant:/vagrant$ pwd
/vagrant
vagrant@vagrant:/vagrant$ cd ~
vagrant@vagrant:~$ ls
redis-stable redis-stable.tar.gz redis-stable.tar.gz.1
vagrant@vagrant:~$ pwd
/home/vagrant
vagrant@vagrant:~$ cd /vagrant
vagrant@vagrant:/vagrant$ ls
catalog forum tournament Vagrantfile
vagrant@vagrant:/vagrant$