Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install CentOS7 in a VMware virtual machine

2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

Today, I would like to share with you how to install CentOS7 in the VMware virtual machine. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

1. Brief introduction to vmware:

Vmware is a virtual pc software, which can virtualize a new hardware environment on the existing operating system, which is equivalent to simulating a new pc, so that it can really run two independent operating systems on one machine at the same time.

The main features of vmware:

You can use more than two operating systems on the same pc without distinguishing or rebooting.

The local system can communicate with the virtual machine system.

The hardware environment of the virtual machine operating system can be set and modified at any time.

Download address of vmware workstation10.0.3:

II. Brief introduction to centos:

Centos (community enterprise operating system) is one of the linux distributions, which is compiled from the source code released by red hat enterprise linux in accordance with open source regulations. Because it comes from the same source code, some servers that require high stability replace the commercial version of red hat enterprise linux with centos. The difference between the two is that centos does not contain closed source software.

Centos 7 download address:

3. Installation of centos:

Virtual machine version: vmware workstation_10.0.3

Linux system version: centos_7 (64 bit)

Physical version: win 7 flagship version

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; after skilled operation, I can install dual systems.

1. Creation of virtual machine:

Open the installed vmware (it doesn't matter if you installed the vmware in English, just take your seat), and select "File-> New Virtual Machine", as shown in the figure:

Select "Custom" here, and next:

Select default, next:

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

(note: in the picture above, the first item is installed on CD, and the second item is installed on the iso image on the hard disk)

The figure above shows what kind of operating system you want to simulate in the virtual machine. Here, select centos 64-bit in linux,version, and next:

Enter the name of the virtual machine (you can start at random) and select the path where the image files are stored. Next step:

Select the number of cpu cores assigned to the virtual machine, and vmware gives a warning if the number of cpu selected for the virtual machine exceeds the actual number of native cpu. You can choose default here. Next step:

For virtual memory allocation, generally choose the default 1024mb (Note: the memory allocated to the virtual machine cannot exceed half of the physical memory, and later, if you want to install centos using the graphical interface, you need to allocate at least 628m of memory). Next:

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

1 bridge: this means that the host and the virtual machine are connected to the same hub, and the virtual machine and the host are configured on the same network segment

2 nat: with vmnet8, the host enables necessary vmware services, such as vmvare dhcp, and the virtual machine can be set to dhcp mode. Of course, it can also be manually set to the same network segment of vmnet1, which is troublesome

3 host-only: use vmnet1 to directly connect with the host, and you can use ifconfig to check the configuration

Select nat here, and the next step:

Select the io controller type, and then select the default one. Next:

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

Select the virtual hard disk type, here choose to create a new, next step:

Select the disk space size by default. Next:

Set the virtual image file name, which is fine by default. Next:

After the creation is completed, confirm the virtual machine information (in fact, you can also modify it later), and click "finish". The following interface appears:

This is our virtual computer. In the red box above, you can see the hardware information of the virtual machine, or you can modify it, or click "Virtual Machine-- > Settings" in the menu bar, or you can modify the hardware configuration.

Tips for using virtual machines: [create a snapshot] (negligible)

Snapshot function is equivalent to a restore, when we in the subsequent operation, even if the virtual machine crashed, read the snapshot, we can restore to the state at this time.

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:

Pop-up dialog box:

Select the previously saved snapshot and click "go".

Note: snapshots take up a certain amount of memory, and the real server does not have the function of snapshots.

2. Install the centos image:

First, you need to load the centos image. Select Virtual Machine-> Settings:

Click "cd/dvd (ide)", open the virtual machine CD settings page, click "use iso Image File", and select the iso image file to be installed. This is the centos-7.0-1406-x86_64-dvd.iso file that you just downloaded. Click OK:

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

Ps:

After turning on the virtual machine, a small error is prompted, which is as follows:

According to the error prompt, set it in bios. Here, change the setting of intel virtual tehnology to enabled:

Then restart to continue the installation. At this time, quickly click the mouse and quickly press the f2 key to pop up the following bios startup interface:

(note: as explained below, the computer boots from the hard disk by default, but the virtual machine is now empty, so now it has to be set to boot from the CD to enter the installation interface.)

According to the figure above, select the "boot" menu, and then use the "+" on the keyboard to put "cd-rom drive" on top, that is, start first.

Then, according to the figure above, enter the exit menu and select the second item "exit discarding changes", that is, do not save the exit, press enter to confirm.

Then the following interface appears:

In the image above, select the first item "install centos 7" and press enter to confirm. After that, the following graphical installation interface pops up:

Select a language in simplified Chinese, click continue, and the following interface pops up:

Date and time:

If you install the English version, you need to change the time zone to Shanghai. I installed the Chinese version, choose the default Shanghai time.

Keyboard:

English keyboard and Chinese keyboard layout is the same, the default is OK.

Installation source:

As you can see, the installation source is automatically detected and does not need to be modified, just click finish.

Software selection:

Individual users are recommended to choose the desktop version, and the server is recommended to choose a minimum installation. I choose the desktop version here and install some software and tools as needed (I have all installed anyway).

Network and hostname:

Just open the network connection and click finish.

Installation location:

Select "I want to configure the partition", click "finish" in the upper left corner, and enter the following interface:

According to the figure above, select Standard Partition for the partition scheme. 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 the assignment is finished, click "finish" in the upper left corner, and the following interface appears:

Just accept the change.

When the configuration is complete, click "start installation":

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

These are all the contents of the article "how to install CentOS7 in a VMware virtual machine". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report