VMware Workstation and CENTOS7 installation tutorials

Source: Internet
Author: User
VMware Workstation and CENTOS7 installation Tutorials

Preface: By installing Linux on virtual machines to build a learning environment for Linux, here we use VMware Workstation virtual machine and CentOS distribution Linux to complete the learning environment, if there are deficiencies, welcome to communicate.

Preparation Phase VMware Workstation12 Software Links: Https://pan.baidu.com/s/1SshkJBEzzDuTcsAvwPBDcA Centos7 iOS mirrored links: https:// Mirrors.aliyun.com/centos/7.4.1708/isos/x86_64/centos-7-x86_64-everything-1708.iso

One, install VMware Workstation virtual machine
Start installing VMware Workstation12, double-click the application, and continue to the next step.

Select Application License, check my acceptance, and proceed to the next step.

Customize the installation, select the program installation directory, and continue to the next step.

Shortcuts: Check the desktop, start the menu program, and continue to the next step.

User experience, it is best not to check product updates at startup and continue to the next step.

Select Install.

Enter the license voucher.


Complete the installation.

VMware Workstation Network connection information:
1, open the Virtual network editor

There are three modes of network card: bridging, Address translation NAT, host only. Only the first two can be connected to the public network.

Bridge Connection: The virtual Machine network card bridge to the physical machine, the current bridge for automatic, you can manually set the card on the network, such as the bridge received unlimited network card, you can also knock to the wired network card, bridge external if there is DHCP, virtual machine can automatically obtain IP address.
NAT: Subnet IP can be manually changed, if you check the "Use of local DHCP service to assign IP addresses to virtual machines", the subsequent installation of Linux system can be installed in the network card for DHCP automatic IP address, you can not check, manually configure the IP address, which "NAT settings" You can set up gateway IP and some custom port forwarding.

Second, install Centos7 to create a Linux virtual machine

Open VMware Workstation and select-> to create a new virtual machine.

What type of configuration. Here we choose-> Customization (Advanced) to facilitate our own definition of the configuration of some virtual machines. Continue to the next step

Next, come to the hardware compatibility selection, we can choose according to our own needs, continue to the next step:
1. If you choose the latest version, when we copy the installed virtual machine to another PC, we need the same virtual machine version to import the use
2. Choose old version, when copying to other PCs, if there is no latest virtual machine version, can be compatible with the old version.

Install the client operating system: We choose the third item-> install the operating system later and continue to the next step.

Select the client operating system: We are installing Linux, so we chose "Linux". Version: "Centos 64-bit". Continue to the next step.

Naming virtual machines:
Virtual machine Name: centos7_test
Location: Store the path to the virtual machine and continue to the next step

Processor configuration: Can be adjusted according to PC performance, this side I keep the default. Continue to the next step.

Memory for this virtual machine: this way, I've given 1G, move on to the next step

Network type (NAT and bridging mode in VMware Workstation installation): Choose to use Network address translation (NAT), of course, you can choose to use Bridge Network, only host mode is not on the public network. Continue to the next step.

Select the I/O Controller type: Default LSI Logic, continue to the next step.

Select disk Type: Default SCSI, continue to the next step.

Select disk: Select Create new Virtual disk and continue to the next step.

Specify disk Capacity: Here we specify the 20G size, and choose to save the virtual machine disk as a single file, and if the PC file system is not NTFS, choose to split the virtual disk into multiple files. Continue to the next step.

Specify disk File: Leave the default and continue to the next step.

Ready to create the virtual machine: leave the default and the hardware can be adjusted again later. Select Finish.

2.Install Centos7
Select Create completed "Centos7_test", click "CD/DVD (IDE)", Tick: Connect at startup, use ISO image file (M), click Browse to select downloaded Centos7 image file, then click OK.


Select: Open this virtual machine and start booting the installation of the CENTOS7 operating system. Enter the following interface: Press the arrow keys to select the first line to install "Install CentOS Linux 7" carriage return, the second line "Test this media && Install CentOS Linux 7" means to check the image file for problems before installation. Then wait a minute.

Next choose the language, this side I keep the default. Select Finish and click "Continua".

Click Date & Time to modify the timezone. Here we choose Shanghai, select Complete click "Done"


Select "SOFTWARE SELECTION", where you can choose to install those packages, we choose to minimize the installation of "minimal Install", of course, can also choose desktop installation, such as: Gnome,kde,xface. Select Finish, click "Done"


Next go to the disk partition:
Select "Installation Destination", tick a 20G hard drive when we create the virtual machine, drag the Drop-down bar to the right, and select we manually configure the partition "I'll configure Partitioning.", select Complete click "Done", Enter the partition configuration interface.


Here we partition, the LVM in "partitioning scheme" is a logical volume, the logical volume can be dynamically extended, Standard Partition is the standard partition, here we choose Standard Partition:
/boot:500m
/:15g
/data:2g
SWAP: Twice times the size of memory
Click the "+" number to create the partition,




Finally complete the following illustration:

Next, begin formatting the partition:
Click "Done" and select "Accept changes" to accept the change.

Next, select Begin install to start the installation.

Select "Root PASSWORD" to set the root user's password. Select Done to wait for the installation to complete. You can also select "User creation" to create an ordinary user.


When you are done, select "Reboot" to reboot.

Next, make some simple settings so that we can connect to CENTOS7 using some external tools.
Network settings: Currently our virtual machine VMNET8 network Network segment is 172.17.0.0/16,GATEWAY:172.17.0.2,DNS can use the gateway, can also use the Telecommunications gateway 114.114.114.114, or Google 8.8.8.8 login to the system, Users: Root, Password: 123456 (according to the installation of the system when you set the password)
Configure IP Address:
VI Tools to use some of the methods:
I: Enter edit mode
Direction key: Move Up or down
Backspace: Remove Forward
Hold down the shift+, and a colon appears in the lower-left corner, and the input Wq means save and exit. q!: Indicates that only exit does not save this modification.

1, switch to the NIC configuration file directory:
[root@localhost ~]# cd/etc/sysconfig/network-scripts/
2, edit the network card profile ifcfg-ens32:
[ Root@localhost network-scripts]# VI ifcfg-ens32
BOOTPROTO=DHCP:DHCP modified to be static
Onboot=no:no modified to Yes, Power-on automatically enable the network card, No reboot will cause the NIC to not be enabled.
3, add IP address and other information:
ipaddr=172.17.0.150
netmask=255.255.0.0
gateway=172.17.0.2
dns1=172.17.0.2
dns2= 114.114.114.114
4, save exit
5, restart Network Service
[root@localhost network-scripts]# systemctl Restart network
6, stopping the Firewall service may cause the SSH tool connection to be denied
[root@localhost network-scripts]# systemctl Stop FIREWALLD
7, disabling the firewall to boot from boot
[ Root@localhost network-scripts]# systemctl Disable FIREWALLD

Connect to the CENTOS7 system you just installed through the SSH tool.

 This virtual machine and the Linux operating system installed to this end, you are welcome to point out the deficiencies, thank you. Aironm 

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.