Win7 VMware installation CENTOS7 build Linux Environment Tutorial _linux

Source: Internet
Author: User
Tags get ip aliyun

Recently in the free time to learn the Linux environment in the installation and configuration of various services, are entry-level, where all the learning process recorded, and share with everyone.

My Computer system is win7, so I need to install a virtual machine-vmware on Win7, then install CENTOS7 in the virtual machine and build the Linux environment I need.

Linux Environment Build Reference document: HTTP://WWW.JIANSHU.COM/P/E5497F8FAF03

Introduction of VMware and CentOS

1.VMware is a Virtual PC software that can virtual a new hardware environment on an existing control system, which is equivalent to simulating a new PC to run two separate operating systems on a single machine.

Main features of VMware:

You can use more than two operating systems on the same PC without distinguishing or rebooting;

The native system can communicate with the virtual machine system network;

You can set and modify the hardware environment of the virtual machine operating system at any time.

Website Download Address: http://www.vmware.com/products/workstation/workstation-evaluation.html

2.CentOS (Community ENTerprise operating System) is one of the Linux distributions that comes from red Hat ENTerprise Linux is compiled from source code released by open source rules. Because of the same source code, some servers that require a high degree of stability are used by CentOS instead of the commercial version of Red Hat Enterprise Linux. The difference between the two is that CentOS does not contain closed source code software.

CentOS Download Address:

Aliyun Open Source Mirror station: http://mirrors.aliyun.com/

Second, installation environment introduction

Virtual machine version: VMware workstation_12.1.1 build-3770994

Linux system version: Centos_7 (64 bit, to be consistent with the number of digits in the computer system, I download here is: http://mirrors.aliyun.com/centos/7/isos/x86_64/ centos-7-x86-64minimal-1511, mini version, no desktop system, pure command mode, can download the corresponding version according to their own requirements.

Physical Machine version: Win7 flagship 64-bit

Below, nonsense not to say, start to build Linux environment.

Third, the Linux environment to build

1, install VMware

VMware installed version: Vmware-workstation_full_12.1.1.6932.exe

Serial Number: 5a02h-au243-tzj49-gtc7k-3c61n

can go to the official website to download, Baidu can also search its own download. Download complete, follow the prompts to install next.

2. Installation CentOS

The first step is to create a virtual machine

1 After starting the virtual machine, first, click Create a new virtual machine. As shown in the following illustration, select a typical type of configuration and click Next:


2 Choose to install the operating system later. Then click Next.

3 The following figure, select Linux, click Next.


4 set a good name and location, this location is the next time you open the virtual machine, you need to use the address, so please remember. Click Next.

5) Default 20G, click Next.


6) Click on the custom hardware, the virtual machine hardware configuration.

Enter the interface shown in the following figure:

The minimum memory to select 628MB, the recommended choice of 1G. The CPU recommends configuring 2 cores.


Optical drive here choose to use the ISO image file, select the storage path we have downloaded ISO, other configuration items are by default, set up, click the Close button.

Here, our virtual machine hardware configuration has been completed, click to complete.

The operating system is set up below.

Step two, run the virtual machine, install the CentOS

1 Click "Open this virtual machine"

Enter the following interface:

The next thing to do is to wait patiently ...

2 Select the language, we will drag the mouse to the bottom of the page, select Chinese, click Continue.

3 on the home page, slide down to the System option, select the installation location

Select the disk, click "I want to configure the partition", click Finish

4 in the manual partition page, make the following settings

Click on the plus button, pop-up select mount point box, first add a swap partition, capacity input 2048, click Add mount point.

In the same way, click the plus sign again, add the root partition, mount point selection/, size input available space capacity (as shown in the pink button, such as input 16GB), click Add mount point.

Finally, add a/boot partition that sets the device types for the 3 partitions that are added to the standard partitions:

Click on the Completion button in the upper left corner, will pop up a page, click to receive changes can

5 Configure network and host names

Set page, click Network and host name

Because our network is NAT mode, it will automatically obtain IP via DHCP, we put the network open, click on the top left corner to complete.

After you return to the Settings page, click on the lower right corner of the start installation.

6 set username and password and click Root password to set the password of root user.

If the password is too simple will prompt us, and need to click two times to complete.

Of course, we can also create an ordinary user, in the picture above, click Create User, enter account number, password, the next login can be a common user account password login. Here we do not do the creation of ordinary users, have the needs of students, you can create their own ordinary users.

7 After the password setting is complete, wait for installation

After the installation is complete, click Restart Wait, do not need to do any operation!.

8) Install the Success page

After the reboot, the image above shows that CentOS has been installed successfully. Enter the newly configured username root and password to login to the completed Linux system.

Four, virtual machine network configuration

Here we configure our virtual machine network. After shutting down the operating system, open the virtual machine again on the home page.

The open path of the virtual machine is the path that is set during installation, as seen during the installation process. Select. VMX Open.

In the following interface, set the network adapter as the bridging mode (because we need to connect our virtual machines with Xshell, so we need to have a separate LAN IP for the virtual machine.) Which, Nat mode and our native shared IP, do not apply. ), open the virtual machine again, you can network.

If you want to use a different network connection mode, you can also set it here yourself.

Five, Linux common software download

Because we have installed the smallest package, so many software require us to manually install

Install ifconfig command

Using the Ifconfig command to view the virtual machine IP, you need to install the package containing this command;

Through Yum Search this command found that ifconfig This command is in net-tools.x86_64 this bag, we install this package on the line. In the installation process, enter Y by default, carriage return.

Other command installation, installation command: Yum Install "package name"

After the installation is successful, enter the Ifconfig command to see if the installation is successful. In the following illustration, the virtual machine IP address is viewed successfully. In the next section, we use this IP address to connect the virtual machines with Xshell to follow up on our practice.

Vi. Summary of issues

1, the NAT networking mode, the virtual machine for the first time, you can get to the IP, computer shutdown, the use of virtual machine again, get IP failure, the following figure:

Workaround:

1 View the 5 services for VMware in Windows Task Manager, as shown in the following illustration:

If a service is missing, simply download a later version of VMware and overwrite the previous security directory, or you can update it directly to the latest version of VMware.

2 if VMware is installed properly, check to see if the DHCP and NAT service is running and show the stopped, then right-click to start.

2, Input Linux command, prompt command does not exist

Workaround: Enter yum install "nonexistent command", which can be used after installation, and sometimes a command is under a package name, which prompts the command under which package to download the package.

3, bridge mode, the virtual machine to get no IP

Solution: Click on the edit-virtual network editor, will VMnet0 automatic connection, set to the physical network card connection, and then restart the virtual machine can be.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.