Linux Learning CentOS (i)----installing CentOS 7 in a VMware virtual machine

Source: Internet
Author: User

Body

First, VMware Introduction:

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

Key Features of VMware:

    • Two or more operating systems can be used on the same PC without the need to differentiate or re-boot;
    • 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.

VMware Workstation10.0.3:

Lite Version: Http://pan.baidu.com/s/1jGFqhzo
Official version: Https://download3.vmware.com/software/wkst/file/VMware-workstation-full-10.0.3-1895310.exe

Harmony No.
1f48z-6mj4h-uzua8-ut176-92w5a
ha2pk-dmh1q-5z6e0-q327h-3303n
Mf2qc-8hk07-wz058-683n4-138np
mg2e7-8xj82-qzr59-xtc54-13t3j

Second, CentOS Introduction:

CentOS (Community ENTerprise Operating System) is one of the Linux distributions and is compiled from Red Hat ENTerprise Linux based on source code released under open source rules. Because of the same source code, some servers that require a high degree of stability are used with 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 7:

http://mirrors.hust.edu.cn/centos/7.0.1406/isos/x86_64/

Third, the installation of CentOS:

Virtual machine version: VMware workstation_10.0.3

Linux system version: Centos_7 (64-bit)

Physical machine Version: Win 7 Ultimate Edition

Note: I am a beginner, install CentOS on the virtual machine, it is convenient to operate on the Win7 and communicate with the physical machine at the same time, and can be installed dual system after skillful operation.

1 , Virtual machine creation:

Open the installed VMware (if you install the English version of VMware is OK, you can), select "File---> New virtual Machine",

Select "Custom" here, Next:

Select Default, Next:

Select the third item to install the operating system later, and install it later for easy configuration. Next:

(Note: The first item is the CD-ROM installation, the second one is installed with the ISO image on the hard drive)

Refers to the intention of simulating an operating system in the virtual machine, here select Linux,version CentOS 64-bit, Next:

Enter the name of the virtual machine (optionally), and select the path where the image file will be stored. Next:

Select the number of CPU cores allocated to the virtual machine, and VMware will warn you if the number of CPUs selected for the virtual machine exceeds the actual number of native CPUs. Here you choose the default. Next:

Virtual memory allocation, generally choose the default 1024MB on the line (note: The memory allocated to the virtual machine can not exceed half of physical memory, and later if you want to use a graphical interface to install CentOS, at least to allocate 628M of memory), the next step:

Here is the network type assignment, the network type allocation divides into three kinds, bridge,nat and host-only, the approximate difference is

1 BRIDGE: Equivalent to the host and virtual machine connected to the same hub, virtual machines and hosts configured on the same network segment

2 NAT: Using VMNET8, the host to open the necessary VMware services, such as Vmvare DHCP, virtual machine set to DHCP mode, of course, can also be manually set to vmnet1 the same network segment, more trouble

3 host-only: Use Vmnet1, direct and host interconnect, can use Ifconfig to view the configuration situation

Select Nat here, Next:

Select the IO controller type, select the default, Next:

Select the type of disk you want to create, select the default, and next:

Select the virtual hard disk type, here you choose to create a new one, Next:

Select disk space size, default, Next:

Set the virtual image file name, default, Next:

Create the complete, confirm the virtual machine information (in fact, can also be modified later), click "Done". The following interface appears:

This is our virtual computer, above the red box, you can see the virtual machine hardware information can also be modified, or click on the menu bar "virtual Machine---> Settings", you can also modify the hardware configuration.

How to use the virtual machine: "Create snapshot" (can be ignored)

The function of a snapshot is equivalent to a restore, and when we are in the next operation, even if we crash the virtual machine and read the snapshot, we can revert to the state at this point.

Click the button in the red box above, or select the "virtual Machine--->" snapshot in the menu bar:

Give the snapshot a name. If you want to restore the snapshot later, click the button in the red box below:

Popup dialog box:

Select the previously saved snapshot and click "Go".

Note: A snapshot consumes a certain amount of memory, and the real server is a feature without snapshots.

2 , installation CentOS Image:

The CentOS image needs to be loaded first. Select "Virtual Machine---> Settings":

Click "CD/DVD (IDE)" To open the virtual Machine Disc Settings page and click "Use ISO image file" to select the ISO image file to install. Is the Centos-7.0-1406-x86_64-dvd.iso file that you just downloaded. Click "OK":

Then click "Turn on this virtual machine" to start the virtual machine.

Ps:

After opening the virtual machine, a small error was prompted with the following error:

Depending on the error, the BIOS is set up, and the Intel virtual Tehnology setting is changed to Enabled:

Then reboot to continue the installation. This time, to quickly click into the mouse, and quick press F2 key, pop-up below the BIOS boot interface:

(Note: As explained below, the computer is booting from the hard disk by default, but the virtual machine is now empty, so it is now set to boot from the CD to enter the installation interface)

Select the "Boot" menu, and then use "+" on the keyboard to place "CD-ROM drive" on top, which is the priority.

Then, as shown, go to the Exit menu and select the second item "Exit discarding changes", i.e. do not save exit and press ENTER to confirm.

After that, the following interface appears:

In the, select the first item "Install CentOS 7" and press ENTER to confirm. After that, a graphical installation interface appears:

Select the language in Simplified Chinese and click "Continue" to bring up the following screen:

Date and Time:

If you installed the English version, you need to change the time zone to Shanghai. I installed the Chinese version, select the default Shanghai time can be.

Keyboard:

The English keyboard and the Chinese keyboard layout are the same, by default.

Installation Source:

As you can see, the installation source is automatically detected, without modification, click Finish.

Software selection:

The individual user recommends selecting the desktop version, and the server recommends selecting the minimum installation. I choose the desktop version here and install some software and tools as needed (I am all installed anyway).

Network and host name:

Just open the network connection and click Finish.

Installation location:

Select "I want to configure Partition", click "Finish" in the upper left corner and go to the following interface:

As shown, the partitioning scheme selects "Standard Partitions". and start mounting the partition:

Set the/boot partition to 200M:

Set the swap partition to 2G: (there is no need to modify the file system mode, the default is swap)

Set the/home directory to 2G:

Finally, give the root partition/allocate all the remaining space:

When you're done, click Finish in the upper-left corner to see the following screen:

Just accept the change.

The configuration is complete, click "Start Installation":

During the installation process, we can set the root password and create a common account:

So, it's done.

Linux Learning CentOS (i)----installing CentOS 7 in a VMware virtual machine

Related Article

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.