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

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

  • You need to customize 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 :

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

  • Create a virtual hard disk :

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

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

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

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

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 :

  • Click start to run virtual machine :

  • After successful operation , choice Install CentOS 7 Installation :

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

  • Part of the diagram that needs to be set :

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

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

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

  • 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 :

  • Conduct manual partition operation as shown in the figure ;

  • 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 :

  • single click Begin Installation Installation :

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

  • Reboot after installation to access system , The first boot requires agreement and 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 .

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 .

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】

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

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 .

  • Input ifconfig Command acquisition IP Address ;

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

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

5、 Other related

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 multi-user.target
# Change the default level to Gui mode
systemctl set-default graphical.target
# restart
reboot

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 :http://www.rdiframework.net/

RDIFramework.NET The official blog :http://blog.rdiframework.net/

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

The majestic , One article talks about virtual machines VirtualBox And Linux Use more related articles

  1. virtual machine virtualBox install linux System xshell Remote connection linux

    virtual machine virtualBox install linux System  xshell Remote connection linux Virtual machine concept : Through software , Use virtualization technology to virtualize the hardware environment of the computer , Act as a real computer . Common virtual software : virtualBo ...

  2. To configure SecureCRT Connect VirtualBox In the virtual machine Linux Environmental Science

    In actual operation and maintenance, we often use SecuriteCRT To remotely control Linux The server . More on this below windows 7 Pass through VirtualBox build linux development environment , And finally through SecurityCRT To remote access ...

  3. The development board cannot ping An example of how to solve the problem of virtual machine

    Let's first describe the problems we encountered : The development board used is Tq2440, I set the virtual machine and development board in the same network segment , And the virtual machine uses the bridge way , I use nfs Mounting the root file system in the same way failed , The system doesn't work , And then I went into uboot Command module ...

  4. [ primary ]openstack-kilo--issue( 7、 ... and ): How can virtual machine communicate with Internet , How about Internet ping Through virtual machines

    ===== problem ======= Virtual machines can ping Internet access , The Internet can ping Through the virtual machine, but can't receive reply There are two situations in this problem : 1. The installation is complete openstack-kilo after , stay route In the virtual machine ...

  5. virtual machine ping It's not working , But the mainframe can ping Through virtual machines ( Reprint )

    I am here Windows7 The system has a virtual machine installed , Installed through a virtual machine Ubuntu13.04, The connection mode between the host and the virtual machine I set is bridging , After installed , Discover virtual machines ping It's not working , But the mainframe can ping Through virtual machines . My operation is : Turn off ...

  6. Firewall settings : virtual machine ping It's not working , But the mainframe can ping Through virtual machines ( Reprint )

    I am here Windows7 The system has a virtual machine installed , Installed through a virtual machine Ubuntu13.04, The connection mode between the host and the virtual machine I set is bridging , After installed , Discover virtual machines ping It's not working , But the mainframe can ping Through virtual machines . My operation is : Turn off ...

  7. host ping Through virtual machines , virtual machine ping The host solution (NAT Pattern )

    Sometimes it is necessary to simulate data interaction between virtual machine and host computer ,ping It's a very annoying thing , This article takes net Patterns solve this problem . Host system :window7 Virtual machine system :CentOs7 How to connect :NAT Pattern host ping Through virtual machines ...

  8. virtual machine VirtualBox And lightweight CentOS

    1, Download the virtual machine first VirtualBox and centos( There's a link below ), take VirtualBox Installed on this machine 2, management -->  Import virtual computer   --> Select local centos file 3, Click next - ...

  9. Sure ping Virtual machine, but not telnet 9000 port

    Suddenly found that eclipse Can't connect to the virtual machine , The error is that the machine cannot be connected 9000 The port of . I think it's a little strange , It's on the command line trying to ping Through virtual machines , success : But try this telnet 9000 Port time , But it's wrong. It's not connected . I checked this on the Internet ...

  10. VMware In virtual machine Linux Add virtual hard disk (VirtualBox The method is similar to )

    modify 1:2014-06-24 11:38:21 Linux Adding a hard disk is a solution when the original hard disk space is not enough or you need to use something on another hard disk , Because most beginners are used to using virtual machines , Here we are Vmware In the virtual machine ...

Random recommendation

  1. RabbitMQ on windows Turn on Remote Access

    my RabbitMQ The installation position is :C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6 by rabbitmq Add users C:\Progra ...

  2. A little bit a day MySQL review —— stored procedure

    One . The concept of stored procedure Use SQL When writing code to access a database , There are two ways to store and execute this code , One is to store code on the client side , And create the SQL command ( or SQL sentence ), For example C#.Java And so on ...

  3. Enterprise applied Web The security of the program

    When it comes to security , I'm afraid you still remember Sony Of PSP Account information leakage accident caused great losses . But I feel it's far away from me , There is no need to think too much about . Some people think , What we do is the internal system of the enterprise, so we don't have to care too much . however ,Web Program ...

  4. CXF Handle Date There are two ways of type

    1. CXF utilize wsdl2java When generating a client Date Date type conversion http://cwfmaker.iteye.com/blog/1142835 2. GregorianCalendar cal = ...

  5. Scala Introductory series ( 5、 ... and ): Object oriented and so on

    Defining classes // Defining classes , contain field as well as method class HelloWorld { private var name = "Leo" def sayHello() { pr ...

  6. use CSS Realize the animation effect of loading

    In pure CSS Realize some dynamic effects of loading , You can divide the elements in the loading effect into many small parts , Every part has animation , Each part of the animation and then set the corresponding delay effect , such , It looks like a coherent loading animation effect . The code is as follows : 1. effect 1 <di ...

  7. excel How to compare the same and different items of two groups or columns of data

    https://jingyan.baidu.com/article/c843ea0b7a2a7477921e4a47.html

  8. HDU 6300

    Problem Description Chiaki has 3n points p1,p2,…,p3n. It is guaranteed that no three points are coll ...

  9. Linux Inferior transplantation QT(2)--- transplant QT

    Get ready :ubantu12.04    kernel 3.0.8( It's better to use the same kernel ,3.2.0 I didn't make it ) Cross compiler tool :arm-cortex_a8-linux-gnueabi-gcc-4.4.6 QT edition 5.4.2 ...

  10. His writing jQuery Drag the slider

    (function ($) { $.fn.bnSlide = function (options) { var defaults = { colorData: 0, // The effective value of the original slide maxWid ...