Install CentOS 7 on the vmwarevm
[Body]
I. Introduction to VMware:
VMware is a virtual PC software that virtualizes a new hardware environment on an existing operating system. It is equivalent to simulating a new PC, in this way, two independent operating systems are actually running on one machine at the same time.
Major features of VMware:
- Two or more operating systems can be used on the same PC without distinction or reboot;
- The local 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:
Official: https://download3.vmware.com/software/wkst/file/VMware-workstation-full-10.0.3-1895310.exe
Ii. CentOS introduction:
CentOS (Community ENTerprise Operating System) is one of the Linux releases. It is compiled from the source code that Red Hat Enterprise Linux releases according to open source code regulations. Because of the same source code, some servers that require high stability use CentOS instead of the commercial version of Red Hat Enterprise Linux. The difference between the two lies in that CentOS does not contain closed source code software.
CentOS 7:
Http://mirrors.hust.edu.cn/centos/7.0.1406/isos/x86_64/
Iii. CentOS installation:
Virtual Machine version: VMware Workstation_10.0.3
Linux: CentOS_7 (64-bit)
Physical server version: Win 7 flagship Edition
Note: I am a beginner and install CentOS on a virtual machine to facilitate simultaneous operations on Win7 and communication with physical machines. After being proficient in operations, I can install dual systems.
1. Create a virtual machine:
Open the Installed VMware (if you have Installed VMware in English, it doesn't matter, just sit in the seat), select "file ---> create virtual machine ",
Select "Custom" here, And next step:
Select default. Next step:
Select "third item" Install the operating system later "for later installation. Next step:
(Note: In, the first option is to use a CD, and the second option is to use an ISO image on the hard disk)
It refers to the operating system to be simulated in the Virtual Machine. Here we select Linux and CentOS 64-bit in Version. Next:
Enter the Virtual Machine name (which can be set as needed) and select the path for storing the image file. Next step:
Select the number of cpu cores allocated to the virtual machine. If the number of cpu cores selected for the Virtual Machine exceeds the actual number of CPUs of the Local Machine, VMware will give a warning. Select the default value here. Next step:
For virtual memory allocation, select the default MB (note: the memory allocated to the virtual machine cannot exceed half of the physical memory, and if you want to install CentOS on the GUI later, at least MB of memory should be allocated). Next:
Here is the network type allocation, which can be divided into three types: Bridge, NAT, and Host-Only. The approximate difference is
1 BRIDGE: equivalent to connecting the host and virtual machine to the same hub. The virtual machine and the host must be configured on the same network segment.
2 NAT: Use vmnet8 to enable necessary VMware services on the host, such as vmvare dhcp. Set the VM to dhcp. Of course, you can also manually set it to the same network segment of vmnet1.
3 HOST-ONLY: Use vmnet1 to directly communicate with the HOST. You can use ifconfig to view the configuration.
Select NAT here. Next step:
Select the io controller type and select the default one. Next:
Select the disk type you want to create and select the default one. Next:
Select the virtual hard disk type. Here, create a new one. Next step:
Select the disk space size, which is the default value. Next step:
Set the virtual image file name by default. Next step:
After the VM is created, confirm the VM information (which can be modified later) and click "finish. The following interface is displayed:
This is a virtual computer. in the red box above, you can view the hardware information of the virtual machine, modify the information, or click "virtual machine ---> Settings" in the menu bar ", you can also modify the hardware configuration.
Tips for using a virtual machine: [Create a snapshot] (negligible)
The snapshot function is equivalent to a restoration. In subsequent operations, even if the Virtual Machine crashes and the snapshot is read, it can be restored to the current state.
Click the button in the red box above, or select "virtual machine --->" snapshot in the menu bar:
Name the snapshot. If you want to restore the snapshot, click the button in the red box below:
Dialog Box:
Select the previously saved snapshot and click "go.
Note: Snapshots occupy a certain amount of memory, and the real server does not have the snapshot function.
2. Install the CentOS image:
First, you must load the CentOS image. Select "virtual machine ---> Settings ":
Click CD/DVD (IDE) to go To the vm cd settings page, click "use ISO image file", and select the ISO image file to be installed. Is the CentOS-7.0-1406-x86_64-DVD.iso file you just downloaded. Click "OK ":
Click "enable this VM" to start the VM.
PS:
After opening the virtual machine, a small error is prompted. The error is as follows:
According to the error message, go to the BIOS and set the Intel virtual Tehnology to enabled:
For more details, please continue to read the highlights on the next page: