[RUBY] Instantiation of the BOX development environment created earlier

Instantiate BOX

It is a record when the development environment is started from the vagrant BOX created in Record of creating Ruby development environment.

Create a directory to launch vagrant

pxedhcp1:Vagrant maho$ mkdir RubyDev4
pxedhcp1:Vagrant maho$ cd RubyDev4
pxedhcp1:RubyDev4 maho$ ls -la
total 0
drwxr-xr-x   2 maho  staff   68  8 16 15:08 .
drwxr-xr-x  21 maho  staff  714  8 16 15:08 ..

Check the list of boxes

pxedhcp1:RubyDev4 maho$ vagrant box list
RoRDev_Ubuntu14     (virtualbox, 0)
Ubuntu14.04_minimam (virtualbox, 0)

pxedhcp1:RubyDev4 maho$ vagrant init RoRDev_Ubuntu14
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

Edit the Vargrantfile. The contents of editing are 2GB of memory, 2 CPUs, and addition of private LAN.

pxedhcp1:RubyDev4 maho$ ls -la
total 8
drwxr-xr-x   3 maho  staff   102  8 16 15:09 .
drwxr-xr-x  21 maho  staff   714  8 16 15:08 ..
-rw-r--r--   1 maho  staff  3027  8 16 15:09 Vagrantfile
pxedhcp1:RubyDev4 maho$ vi Vagrantfile 

Start the virtual machine.

pxedhcp1:RubyDev4 maho$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'RoRDev_Ubuntu14'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: RubyDev4_default_1439705471918_64982
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (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: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: 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
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 4.3.10
    default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/maho/Vagrant/RubyDev4

Operation check

log in.

pxedhcp1:RubyDev4 maho$ vagrant ssh
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Sun Aug 16 05:53:19 2015 from 10.0.2.2
vagrant@vagrant-ubuntu-trusty:~$ df -m
Filesystem     1M-blocks   Used Available Use% Mounted on
/dev/sda1          39685   2291     35356   7% /
none                   1      0         1   0% /sys/fs/cgroup
udev                 991      1       991   1% /dev
tmpfs                201      1       200   1% /run
none                   5      1         5   1% /run/lock
none                1002      0      1002   0% /run/shm
none                 100      0       100   0% /run/user
vagrant           953050 157585    795465  17% /vagrant

Check the version of each tool and complete

vagrant@vagrant-ubuntu-trusty:~$ ruby -v
ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty:~$ node -v
v0.12.7
vagrant@vagrant-ubuntu-trusty:~$ python --version
Python 2.7.10

Recommended Posts

Instantiation of the BOX development environment created earlier
Switch the setting value of setting.py according to the development environment
Unify the environment of the Python development team starting with Poetry
Django + MongoDB development environment maintenance (in the middle of writing)
Checking the NAOqi Python development environment
Prepare the development environment with anyenv
Django cannot be installed in the development environment of pipenv + pyenv
Using TensorFlow in the cloud integrated development environment Cloud9 ~ Basics of usage ~
How to set up the development environment of ev3dev [Windows version]
Addition of local development environment on MacOS
About the virtual environment of python version 3.7
Build the execution environment of Jupyter Lab
About the development environment you are using
Prepare the development environment for keyhac for Mac
Construction of development environment for Choreonoid class
The strongest Python development environment PyCharm's recommendation
The strongest Python integrated development environment PyCharm
Active engineers personally write about the best development environment, frameworks, etc. [End of 2020]
Introduction to Python Let's prepare the development environment
Note: Prepare the environment of CmdStanPy with docker
Prepare the execution environment of Python3 with Docker
Build the fastest Django development environment with docker-compose
I created a Dockerfile for Django's development environment
python development environment -use of pyenv and virtualenv-
About the development contents of machine learning (Example)
Used from the introduction of Node.js in WSL environment
The story of building the fastest Linux environment in the world
The story of sharing the pyenv environment with multiple users
The strongest PySide / PyQt development environment is also PyCharm
[C language] [Linux] Get the value of environment variable
In the middle of development, we will introduce Alembic
Separation summary of development environment by chroot of various Linux
Preparing the execution environment of PyTorch with Docker November 2019
Install Ubuntu 20.04 with GUI and prepare the development environment
Ssh to virtual environment with remote development of vscode
python memo (for myself): About the development environment virtualenv
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
[No venv required] The strongest Python development environment created with Remote Containers [VS Code / Docker]
Move the environment created with Oracle VM Virutual Box and Cent OS 7 to another computer
The image is displayed in the local development environment, but the image is not displayed on the remote server of VPS