Vagrant quickly builds Ubuntu virtual machine environment

Follow the public number get the first time in the serialization of the full set of learning tutorials of PassJava project.

Vagrant quickly builds Ubuntu virtual machine environment#

1. Enable virtual machine service##

Windows startup configuration: Intel Virtualization Technology -> Enabled

2. Download and install VirtualBox

VirtualBox: virtual machine management software

https://www.virtualbox.org/wiki/Downloads

3. Download and install Vagrant

Vagrant: Create and manage virtual machines

Vagrant software: https://www.vagrantup.com/downloads.html

Vagrant official mirror: https://app.vagrantup.com/boxes/search

Enter vagrant from the command line

vagrant

4. Install vagrant ubuntu domestic mirror##

# ubuntu 18.04 LTS:
vagrant box add https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/bionic/current/bionic-server-cloudimg-amd64-vagrant.box --name ubuntu18

# ubunt 16.04 LTS:
vagrant box add https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/xenial/current/xenial-server-cloudimg-amd64-vagrant.box --name ubuntu16

# ubuntu14:
vagrant box add https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box --name ubuntu14

Install ubuntu 18

vagrant box add https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/bionic/current/bionic-server-cloudimg-amd64-vagrant.box --name ubuntu18

vagrant init
config.vm.box ="base"change into
config.vm.box ="ubuntu18"

5. Start the virtual machine##

vagrant up

6. Connect to the virtual machine##

vagrant ssh

Recommended Posts

Vagrant quickly builds Ubuntu virtual machine environment
Python virtual environment: Ubuntu16.04
Install ubuntu on virtual machine
Ubuntu14.04 creates Genymotion virtual machine
Virtual machine VirtualBox-5.1 install ubuntu16.0.1
ubuntu builds common development environment
Virtual machine Linux Ubuntu installation tutorial
Install Python virtual environment on Ubuntu 18.04
Build an Ubuntu Linux development environment on a Vmware virtual machine
Install Ubuntu 18.04 in the virtual machine VMware
Install R package on UBUNTU virtual machine
Ubuntu20.04 install Python3 virtual environment tutorial detailed explanation
Virtual machine installation and configuration ubuntu shared folder_
Use Ubuntu and windows system in virtual machine
Solution to the virtual machine ubuntu16.04 cannot connect to the Internet
The same solution for cloning ubuntu18 virtual machine ip
Install Ubuntu on VMware virtual machine and install using UltraISO
How to create a Python virtual environment in Ubuntu 14.04
ubuntu16.04 deploy GPU environment
Ubuntu configuration development environment
Ubuntu builds Eclipse+JDK+SDK Android
Ubuntu18.04 perfectly builds Tensorflow-gpu
Ubuntu development environment configuration
Ubuntu 18.04 LTS quickly beautified
Ubuntu18.10 configure Java environment
ubuntu environment deployment project
Xshell and Xftp fail to connect to the virtual machine Ubuntu
Install VM virtual machine on Mac, equipped with Ubuntu system
Encountered in the process of building a virtual environment in ubuntu