All in one, one article talks about the use of virtual machine VirtualBox and Linux

. net rapid development framework 2021-01-14 14:04:15
article talks use virtual machine

This article will start with the choice of virtual machine 、 install 、Linux System installation 、SSH The client tool uses four aspects to describe in detail Linux How to install and use the system in virtual machine , For your normal use under the virtual machine Linux Escort .

1、 Choice of virtual machine

Before we talk about the choice of virtual machine , Let's first understand what a virtual machine is :

virtual machine (Virtual Machine) It refers to the function of complete hardware system simulated by software 、 A complete computer system running in a completely isolated environment . The work that can be done in the physical computer can be realized in the virtual machine . When creating a virtual machine in a computer , Part of the hard disk and memory capacity of the physical machine should be taken as the hard disk and memory capacity of the virtual machine . Each virtual machine has its own CMOS、 Hard disk and operating system , The virtual machine can be operated as if it were a physical machine .

Generally, we install virtual opportunity options VMware or VirtualBox, They can be installed as virtual machine software Linux, But the two are different . It mainly includes the following three aspects .

1: Charging and open source ( The biggest difference )

1、VMware:VMware It's commercial software , Rechargeable , And it's closed source . If you don't want to spend money to buy , Of course, you can also find the cracked version to use , I've used this before , However, there are many problems in the cracked version , Such as security issues , Update questions , Functional issues , Use of . So it's not recommended to use the cracked version .

2、Virtual Box:Virtual Box It's free. , It's open source. .

2: Installation file size and installation process

1、VMware:VMware The installation file is very large , Currently in 300MB about , And the installation process is troublesome , And it's in English , If you don't have any knowledge of English , Want to install it well , There's a lot of difficulty !

2、Virtual Box:Virtual Box The installation file for is in 100MB about , Than VM Less 200MB, A very small . And during installation , It's Chinese. , It's fast and easy to install , Even friends who have never been in touch with virtual machines , There's no need to worry about the problem of not being able to install .

3: Function and performance

1、VMware:VMware It's very versatile , Very powerful . If you have a special purpose , If you need a specific function ,VMware It's definitely your choice . Of course! , It's so powerful , The configuration requirements for physical hosts are also very high , It is too laggy to use . Performance aspect , I said that before , It requires high configuration . therefore , If used in high configuration , It's pretty good . But if it's used in medium and low configurations , Not ideal , It is too laggy. .( It's mainly memory consumption )

2、Virtual Box:Virtual Box It doesn't have the function of VMware More , But for the average person , It's enough . It's not like what the Internet says , Dragging files from a virtual machine to a physical machine is not supported , Maybe it didn't work before , But now the version has this function , In use and VM About the same . Performance aspect , It's also very good , Whether it's the middle and low end configuration , Or high-end configuration , Can be used very smoothly , But one thing to say is , It's kind of time consuming CPU.

This article USES VirtualBox To install Linux.

2、 Virtual machine installation

VirtualBox Is an open source virtual machine software , from Sun Company produce , Now it's up to Oracle Development .VirtualBox The best free virtual machine software , It has excellent performance and is easy to use . Virtual systems include Windows、Linux、MacOS、Android Isooperating system ! This article will use VirtualBox Install as a virtual machine Linux System .

2.1、VirtualBox Installation

 download VirtualBox Installation package

  • After downloading, double-click to run the installation package and click next :

 Run the installation package

  • You need to customize the installation path :

 Set the installation path

  • All the way to the default operation, the next step , Finally, click finish , Complete the installation .

2.2、 Create a virtual machine

  • Create a Linux virtual machine :

 Create a virtual machine

  • Allocate virtual machine memory size , It can be determined according to the configuration of your own computer :

 Allocate virtual machine memory size

  • Create a virtual hard disk :

 Create a virtual hard disk

  • Set the virtual hard disk file type , Choose here VDI Format :
     Set the virtual hard disk file type

  • Choose the dynamic allocation space size , If your hard disk space is large , You can choose a fixed size :

 Dynamically allocate space size

  • Set the location and size of the virtual hard disk :

 Set the location and size of the virtual hard disk

  • single click “ establish ”, Create success , As shown in the figure below .

 Create success

3、Linux install

CentOS(Community Enterprise Operating System) yes Linux One of the releases , Community enterprise operating system . It's from the Business Edition Red Hat Enterprise Linux Compiled from the source code released according to the open source code , So it's highly stable and completely open source . This article will be CentOS 7.6 For example Linux Installation of the system .

3.1、 download

3.2、 install

  • Add virtual disc for virtual machine , The virtual disc is designated for our download ISO Image file :

 Add virtual disc for virtual machine

  • Click start to run virtual machine :

 Start and run the virtual machine

  • After successful operation , choice Install CentOS 7 Installation :

Install CentOS 7

  • Choose the language of the system during installation , Suggested choice English Options :

 Choose the system language

  • Part of the diagram that needs to be set :

 Part of the schematic diagram of the setup

  • Time zone settings , Regional choice Asia, City selection Shanghai

 Time zone settings

  • Language support choose to install English 、 Simplified Chinese two language installation package :

 Install English 、 Simplified Chinese

  • Software installation settings selection Server with GUI, At the same time, select three additional environments as shown in figure :

Server with GUI

  • Partition settings , Because the memory of my virtual machine is small , You need to create a larger swap Partition , If the memory setting is large, select automatic partition directly , Here we use manual partitioning :

 Partition settings

  • Conduct manual partition operation as shown in the figure ;

 Manual partition operation

  • A description of several directories of the partition :

    • /: Root partition ;
    • swap: Swap partition , Can be used as virtual memory ;
    • /boot: Storage system boot information and kernel information ;
    • /usr: Storage system application software installation information ;
    • /var: Storage system log information .
  • Network settings , Set the host name and perform network activation :

 Network settings

  • single click Begin Installation Installation :

 Start installation

  • During installation, you can set root User's password ;

 Set up root User password

  • Reboot after installation to access system , The first boot requires agreement and configuration :

 Agree to the protocol and complete the configuration

  • At this time, the host cannot directly access the virtual machine , You need to change the network mode of the virtual machine to the bridging mode .

 Network mode changed to bridge mode

If the connection mode in the figure above is set to : After bridging the NIC , No corresponding... Was found in the interface name , Please install as follows .

 Installation of bridge network card

without , Just click “ install ” Button , choice “ service ”, As shown in the figure below .


single click “ add to (A)...” Button , Select from “ Disk installation ”, find virtualbox A file in the directory 【VBoxNetLwf.inf】

 Disk installation

As shown in the figure below , single click “ determine ” You can install it successfully .

 Make sure to install

4、Xshell Use

Xshell Is a SSH Connect client tools , It can be used for remote operation Linux System .Xshell Free for families and schools , Provide a valid email , The download link will be sent to your email .

 Open the terminal command line

  • Input ifconfig Command acquisition IP Address ;

ifconfig Command acquisition IP Address

  • After the acquisition is completed, pass Xshell Connect , And enter the account number and password :

Xshell Connect

Xshell Connect users with passwords

  • After the connection, you can use it remotely Linux The system .

 Conduct Linux System

5.1、 Modify the default boot mode

If you don't want to start the graphical interface by default , You can change the default startup mode , Because the graphical interface still takes up more memory , The commands are as follows .

# Change the default level to multi-user text mode
systemctl set-default
# Change the default level to Gui mode
systemctl set-default
# restart

Several years along the way , thank RDIFramework.NET Supporters and users of the framework , You can find out the details through the following address .

RDIFramework.NET Official website :

RDIFramework.NET The official blog :

In particular , Please refer to the official website for framework related technical articles , Welcome to collect !

RDIFramework.NET The framework is long-term built by the professional team of Hainan Guosi Software Technology Co., Ltd 、 Keep updating 、 Upgrading all the time , Please feel free to use !

Welcome to your attention RDIFramework.NET Official WeChat official account ( WeChat ID :guosisoft), Keep up to date .

Use wechat to scan QR code for immediate attention

 WeChat ID :guosisoft

本文为[. net rapid development framework]所创,转载请带上原文链接,感谢

  1. Spring boot static resource configuration principle (step by step source analysis, detailed and easy to understand)
  2. 400万Docker镜像中,51%的镜像存在高危漏洞
  3. Head first design pattern -- 10. Iterator pattern
  4. A few pictures, take down the HTTPS
  5. Simple use of pyecharts module
  6. [azure redis cache] discussion on the functionality of azure redis
  7. Installation of SVN under Linux
  8. Sorting out knowledge points of MySQL Cluster
  9. rocketmq-cpp-client Visual Studio 2019 编译
  10. rocketmq-cpp-client Visual Studio 2019 编译
  11. RBAC authorization mode of k8s
  12. Remember to use it once Asp.Net The development process of core webapi 5.0 + dapper + MySQL + redis + docker
  13. Java Concurrent Programming points
  14. Explain Java I / O flow in detail
  15. Linux system builds springboot project environment and deploys it
  16. Easy to understand JS object-oriented, by the way understand prototype and__ proto__
  17. Summary of java basic knowledge
  18. . net cloud native architect training camp (module 2 basic consolidation rabbitmq mastransit detailed explanation) - learning notes
  19. The architecture of MySQL
  20. MySQL security management, database maintenance and performance improvement
  21. Redis basic command
  22. Summary of MySQL articles
  23. 2、 Create k8s cluster in 5 seconds
  24. data自定义属性在jQuery中的用法
  25. Linux常见解压缩
  26. Detailed explanation of HBase basic principle
  27. 1、 Why and how to learn k8s
  28. Java advanced (29) -- HashMap set
  29. java中大文件上传
  30. Weblogic 2017-3248 analysis of Java Security
  31. Kubernetes official java client 8: fluent style
  32. Explain the function of thread pool and how to use it in Java
  33. Programming software tutorial video Encyclopedia: C + + / Java / Python / assembly / easy language (with tutorial)
  34. Description of dependency problem after javacv is updated to 1.5. X and how to reduce the size of dependency package
  35. Java reflection & dynamic agent
  36. Building Apache 2.4 + php7 + mysql8 in centos7 environment
  37. Summary of Java multithreading (1)
  38. Oracle AWR report generation
  39. Four magic functions of mybatis, don't step on the pit!
  40. A 16-year-old high school student successfully transplanted Linux to iPhone and posted a detailed guide
  41. Centos7 one click installation of JDK1.8 shell script
  42. Mounting of file system in Linux (centos7)
  43. How does serverless deal with the resource supply demand of k8s in the offline scenario
  44. Detailed explanation of HBase basic principle
  45. Spring security oauth2.0 authentication and authorization 4: distributed system authentication and authorization
  46. Redis performance Part 5 redis buffer
  47. JavaScript this keyword
  48. Summary of Java multithreading (3)
  49. Sentry(v20.12.1) K8S 云原生架构探索, SENTRY FOR JAVASCRIPT 手动捕获事件基本用法
  50. Sentry(v20.12.1) K8S 云原生架构探索, SENTRY FOR JAVASCRIPT 手动捕获事件基本用法
  51. (10) Spring from the beginning to the end
  52. Summary of Java multithreading (2)
  53. Spring source notes! From the introduction to the source code, let you really understand the source code
  54. A stormy sunny day
  55. Zookeeper (curator), the implementation of distributed lock
  56. Show the sky! Tencent T4's core Java Dictionary (framework + principle + Notes + map)
  57. Spring boot project, how to gracefully replace the blank value in the interface parameter with null value?
  58. Spring boot project, how to gracefully replace the blank value in the interface parameter with null value?
  59. docker+mysql集群+读写分离+mycat管理+垂直分库+负载均衡
  60. docker+mysql集群+读写分离+mycat管理+垂直分库+负载均衡