Today I learned a day of Linux-related fundamentals, below to do a summary to prepare for the rainy days.
first, start by building a learning environment, I use the latest version of VMware's workstation, which is VMware Workstation 11, the reason for using VMware instead of other virtual machine software like VirtualBox is because VMware can easily copy, paste, and so on after installing VMware Tools, and of course other software is possible, but I ignorant it. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0009.gif "alt=" J_0009.gif "/>, However, the disadvantage of using VMware is that it is a commercial software need to register (this can be solved by itself), there is the memory and performance of the other virtual machine software compared to the relatively small amount of resources, but in order to better learn these can be ignored first. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0057.gif "alt=" J_0057.gif "/>
First of all, a brief talk about today by following the video learning some of the small knowledge, lest the time is too long forgotten:
A sparse-format virtual disk
This concept I also probably understand a little bit, is that the format of the disk it occupies a real physical disk space will be relatively small, will automatically with the capacity of the installed system to change, the advantage of course is to occupy small space, can be more efficient and reasonable use of physical disk space (after all, their laptop disk is not very large), The disadvantage is that disk performance is less than the disk format of a single allocation.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/55/B5/wKioL1SJkkGAZRXRAAHRQq_QeYA035.jpg "title=" Disk format. png "alt=" wkiol1sjkkgazrxraahrqq_qeya035.jpg "/>
Second, the network's working mode
1, bridged (bridge mode)
This network mode can be considered that the virtual machine is located in the local area network of a separate machine, it can access any machine in the network, we need to manually configure it IP address, subnet mask, and if you want to communicate with the host, you need to be in the same network segment with the host. And we can also manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router. Its relationship to the host machine is like two computers connected to the same hub, where they need to be configured with an IP address and subnet mask to communicate, otherwise they cannot communicate.
This type of network mode is the need to use VMware in the local area network to create a new virtual server for LAN users to provide network services when used, I use this configuration process is this mode.
2, Host-only (host mode)
In host-only mode, all virtual machines can communicate with each other, but the virtual system and the real network are separated. It is also important to note that in this network mode, the virtual machine and the host system can communicate with each other, which is equivalent to the two machines connected by twisted pair. The TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual machine is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network. Of course, this virtual machine can also access the Internet by manually changing the TCP/IP information when you share the network card of your Internet access to VMNET1.
This network mode is required when you need to separate the real environment from the virtual environment in some special network debugging environments.
3. NAT (network address translation mode)
Using NAT mode, the virtual machine is allowed to access the Internet through the network of the host, with the help of the NAT (Network address translation) feature. In other words, the use of NAT mode allows access to the Internet in virtual machines. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network.
The advantage of this network mode is that it is very easy to access the virtual machine to the Internet, and it is recommended to use a NAT mode if you want to install a VM that does not have any manual configuration to directly access the Internet.
Next, take a look at the specific steps for installing CentOS 7.0 today:
Customize the new virtual machine, choose the relevant settings and configuration, because I installed a minimal installation, so the configuration is not too high
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/55/FA/wKiom1SJmxHR-UnKAANuKnqtqpU668.jpg "title=" new. png "alt=" Wkiom1sjmxhr-unkaanuknqtqpu668.jpg "/>
Enter the installation boot interface
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/F9/wKioL1SJm-zxyXweAACzUrjPe7k920.jpg "style=" float: none; "Title=" Installs 1.png "alt=" Wkiol1sjm-zxyxweaaczurjpe7k920.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/FB/wKiom1SJm1TAkCMYAAKBQq5vIqM557.jpg "style=" float: none; "Title=" Installs 2.png "alt=" Wkiom1sjm1takcmyaakbqq5viqm557.jpg "/>
Directly select the minimized installation category, just tick some development-related tools and libraries, etc.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/55/FA/wKioL1SJnBuztwHeAAK0M39m1ww948.jpg "title=" Install 3.png "alt=" Wkiol1sjnbuztwheaak0m39m1ww948.jpg "/>
Wait for the installation to complete, restart, enter the command line form of the login interface, installation completed
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/FD/wKiom1SJm6WAYShcAAJQ5a-XjGs522.jpg "style=" float: none; "Title=" Installs 4.png "alt=" Wkiom1sjm6wayshcaajq5a-xjgs522.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/FD/wKiom1SJm6WDGMg9AABsw1g_F4M429.jpg "style=" float: none; "Title=" after the installation is complete. png "alt=" wkiom1sjm6wdgmg9aabsw1g_f4m429.jpg "/>
PS: The first step after installation is best to backup the virtual machine through the VMware Snapshot feature, and any important operations can be backed up by a snapshot later, so that you can quickly recover to the desired state if you do something wrong or want to practice again, which will help you improve your learning efficiency.
This article is from the "jessexing" blog, make sure to keep this source http://jessexing.blog.51cto.com/1548589/1588910
Build Linux learning Environment using VMware Workstation 11 (version of CentOS 7.0 for Linux)