Procedure when building Ubuntu as a virtual environment with Vagrant + Virtualbox for LPIC Level 1.

While changing now

LPIC looks interesting, so why not take it! So for the time being

Book 3rd Edition Thorough Strategy Series where you can learn the basics of LPIC in a week

Read,

Linux textbook LPIC Level 1 Version 5.0 compatible

I am solving the problem of ping-t while inputting the question range in.

Well, it seems that I will be able to memorize the problem and solve it, but if I can change the structure of the problem a little, it will not be possible to solve it, and I felt that it would be difficult to remember without moving it, so let's move it! I built it for the purpose.

I thought that there might be some precedent, and when I searched for it, I found that CentOS was actually running in a similar environment with the following video, so I tried to build an environment for running Ubuntu.

Professional training for new employees teaches! LPIC-1 Learning Points

What are these in the first place?

Virtualbox

What is Virtualbox?

Software for building an OSS virtual environment managed by Oracle.

Is there any merit to use it?

So what makes you happy when you create a virtual environment? However, it is common to be able to handle multiple OSs on one OS. For example, production and development environments are often different. There are various different factors such as required packages and differences depending on the OS, but these are used when you actually want to run them in the local development environment.

Also, if you make a fatal mistake in a virtual environment, that environment will not affect the original OS. Virtualization is used to take advantage of these benefits.

Vagrant

What is Vagrant?

It is software that operates virtualization software such as VMWare and Virtualbox on your behalf. This time, by building using this, you will be able to manage the operations of the originally required OS (such as downloading Ubuntu images) through Vagrant.

I understand that. What are the benefits? Isn't Virtualbox just good?

** You will be able to manage the virtual environment based on the vagrantfile with commands. ** **

The benefits here are talked about everywhere, so I won't go into too much detail, but this is one of the great benefits of using Vagrant. It is troublesome to write the VM configuration from 1 in the procedure manual when sharing with team members or when you want to set up a virtual environment in such an article format. Then, fetch the file that describes the specific configuration, hit the command, and you're done! Will also increase other speeds.

~~ I also wanted to study personally ~~

Environment

environment

VirtualBox

Download the package from the Official Page (https://www.virtualbox.org/).

Install it. This completes the VirtualBox settings.

Vagrant

Go to the Official Page and click Download.

Download the version for each platform as it is available for download.

Install the downloaded package.

Then you should have successfully installed it, so proceed as follows in the terminal.

#Create and move directories
$ mkdir Ubuntu && cd Ubuntu

#Check the list installed on Vagrant
#Probably nothing! Come out
$ vagrant box list

#Download Ubuntu vagrantfile in folder and start provisioning
$ vagrant init ubuntu/trusty64
$ vagrant up

# ubuntu/trusty64 (virtualbox, 20190514.0.0)
$ vagrant box list

#Port information etc. will be displayed with the following command, so log in based on the information here
$ vagrant ssh-config

#ssh login
# user,password is both vagrant
$ ssh -p 2222 vagrant@localhost

Now you can actually run Ubuntu on your terminal. In fact, if you look at Virtualbox, the virtual environment works as follows.

Now you can actually enter commands and enjoy. You did it!

Thank you for your hard work.

Recommended Posts

Procedure when building Ubuntu as a virtual environment with Vagrant + Virtualbox for LPIC Level 1.
Building a virtual environment with Python 3
[Mac] Building a virtual environment for Python
Procedure for building a kube environment on amazon linux2 (aws) ~ (with bonus)
Procedure for building a CDK environment on Windows (Python)
Build a Django environment for Win10 (with virtual space)
Building a Python virtual environment
Building a Python virtual environment
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
[Python] Building a virtual python environment for the pyramid tutorial (summary)
Building a virtual environment with pyenv-virtualenv/Python (installation, environment settings, packages) Mac environment
Building a kubernetes environment with ansible 2
A modern environment building procedure for those who want to get started with Python right away
Building a Python environment on Ubuntu
PATH when using ANACONDA virtual environment with Pycharm (as of Mac 2020/10/03)
Building a Windows 7 environment for getting started with machine learning with Python
Create a virtual environment with Python!
Create an environment for Django x Apache x mod_wsgi with Vagrant (Ubuntu 16.04)
Building a kubernetes environment with ansible 1
Create a USB boot Ubuntu with a Python environment for data analysis
Building a virtual environment for Mayavi dedicated to Python 3.6, Anaconda, Spyder users
Prepare a Python virtual environment for your project with venv with VS Code
Building a Python3 environment with Amazon Linux2
Building a virtual environment using homebrew + pyenv-virtualenv
Let's create a virtual environment for Python
[Python] Create a virtual environment with Anaconda
Building a Python 3.6 environment with Windows + PowerShell
Create a virtual environment with Python_Mac version
Building a conda environment for ROS users
Build a python virtual environment with pyenv
Building a Python development environment for AI development
Creating an environment for OSS-DB Silver # 1_Create a Linux environment (CentOS7 virtual environment) with VirtualBox/Vagrant
When I tried to create a virtual environment with Python, it didn't work
Ubuntu18.04.05 Creating a python virtual environment in LTS
Building a python environment with virtualenv and direnv
Building an Anaconda environment for Python with pyenv
Building a Python environment with WLS2 + Anaconda + PyCharm
Start Django in a virtual environment with Pipenv
Procedure for creating a LineBot made with Python
Create a virtual environment with conda in Python
Build a Django environment with Vagrant in 5 minutes
Various commands for building an environment with Apache
[Memo] Build a virtual environment with Pyenv + anaconda
[Python] Web development preparation (building a virtual environment)
Error when entering virtual environment with workon command
A memo when creating a python environment with miniconda
Build a virtual environment with pyenv and venv
[Venv] Create a python virtual environment on Ubuntu
Commands for creating a python3 environment with virtualenv
Work in a virtual environment with Python virtualenv.
Build a Kubernetes environment for development on Ubuntu
Flow of creating a virtual environment with Anaconda
Procedure for creating a Python quarantine environment (venv environment)
Try building an environment for MayaPython with VisualStudioCode
[Building a CI environment in 2 hours] Procedure for building a Python Web server with CircleCI and passing an HTTP communication test
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Write about building a Python environment for writing Qiita Qiita
Recommendation of building a portable Python environment with conda
Building a Docker working environment for R and Python
Build a python virtual environment with virtualenv and virtualenvwrapper
Create a virtual environment with Anaconda installed via Pyenv