1: Install a virtual machine
First go to the official website to download the virtual machine package, you can download Windows
Download the URL of the virtual machine package (15): https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html
2. After the download is complete, click to install
3. Click "Next" on the virtual machine software installation wizard interface.
4. In the user license agreement interface, select "I accept the terms in the license agreement", and then click "Next".
5. Select the installation location of the virtual machine software, select the "Enhanced Keyboard Driver" check box and click "Next".
6. Select the check boxes of "Check for product updates at startup" and "Help improve VMware Workstation Pro" according to your own situation, and then click "Next".
7. Check the "Desktop" and "Start Menu Program Folder" check boxes, and then click "Next".
8. When everything is ready, click the "Install" button.
9, ready to start installing the virtual machine
10. Installation is complete
11. Enter the secret key
Activation code website for vmware warkstation 15:
https://blog.csdn.net/weixin_39728460/article/details/91852010
In this way, the virtual machine is installed.
Two, create a new virtual machine
Download mirror site
8 version: http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso
Alibaba Cloud mirror site URL:
Version 7: http://mirrors.aliyun.com/centos/7/isos/x86_64/ (recommended)
Next use the 8 version mirror test
1. Open VMwear and select new virtual machine
2. Typical installation and custom installation
Typical installation: VMwear will apply mainstream configuration to the operating system of the virtual machine, which is very friendly to novices.
Custom installation: Custom installation can strengthen some resources and remove unnecessary resources. Avoid waste of resources.
Here I choose a custom installation.
3. Virtual machine compatibility selection
Pay attention to compatibility here. If the virtual machine created by VMwear12 is copied to VM11, 10 or lower versions, there will be an incompatibility. If the virtual machine created with VMwear10 is opened in VMwear12, there will be no compatibility issues.
4. Choose to install the operating system later
5. The choice of operating system
The operating system to be installed after selecting here, the correct choice will make vm tools more compatible. Here choose CentOS under linux
6. Virtual machine location and naming
The virtual machine name is a name, which is convenient for you to find when there are many virtual machines.
The default location of VMwear is under C drive, I changed it to F drive here.
7. Allocation of processor and memory
Processor allocation should be allocated according to their actual needs. If the CPU is not enough during use, it can be increased. This time I only do a demonstration of installing CentOS, so choose 1. for both processor and core.
8. Memory is also allocated according to actual needs. My host's memory is 8G, so I allocate 2G of memory to the virtual machine.
9. The choice of network connection type. There are four types of network connection: bridging, NAT, host only and no networking.
Bridge: If you select the bridge mode, the virtual machine and the host have a level relationship on the network, which is equivalent to connecting to the same switch.
NAT: NAT mode means that the virtual machine must pass through the host before it can communicate with the outside world.
Host only: the virtual machine is directly connected to the host
The process of accessing the Internet in bridging and NAT mode is shown in the figure below
The difference between bridging and NAT
Select bridge mode here
There are four types of network connection: bridging, NAT, host only and no networking.
Bridge: If you select the bridge mode, the virtual machine and the host have a level relationship on the network, which is equivalent to connecting to the same switch.
NAT: NAT mode means that the virtual machine must pass through the host before it can communicate with the outside world.
Host only: the virtual machine is directly connected to the host
The process of accessing the Internet in bridging and NAT mode is shown in the figure below
The difference between bridging and NAT
Select bridge mode here
10. Press the virtual machine default options for the remaining two items
11. Disk capacity
The disk capacity can be increased at any time by temporarily assigning 100G to it. Do not check to allocate all disks immediately, otherwise the virtual machine will directly allocate 100G to CentOS, which will reduce the remaining hard disk capacity of the host.
Check to split the virtual disk into multiple files to make it easier for the virtual machine to copy and replicate with storage devices.
12. Disk name, the default is fine
12. Eliminate unnecessary hardware
Click on custom hardware
Select the unnecessary hardware such as sound card and printer and remove it.
13. Click Finish, the virtual machine has been created.
Start installing centos image
1. Connect the CD
Right click on the virtual machine you just created and select Settings
First select CD/DVD, then choose to use ISO image file, and finally select Browse to find the downloaded image file. The connection must be checked and confirmed when starting.
2. Turn on the virtual machine
3. Install the operating system
The following interface will appear after turning on the virtual machine
- Install CentOS 7 Install CentOS 7
- Test this media & install CentOS 7 Test the installation file and install CentOS 7
- Troubleshooting
Select the first item, install CentOS 7 directly, press Enter, and enter the following interface
Choose the language used during the installation process, here choose English, keyboard choose American keyboard. Click Continue
Set the time first
Select Shanghai as the time zone and check whether the time is correct. Then click Done
Select the software to be installed
Select Server with Gui, then click Done
Select the installation location, where you can partition the disk.
Select i wil configure partitioning (I will configure partitioning), then click done
As shown in the figure below, click the plus sign, select /boot, and divide the boot partition into 200M. Finally click Add
/ Root partition
/boot boot partition
swap swap partition similar to Windows virtual memory
Then use the same method to allocate space to the other three areas and click Done
Then a summary message will pop up, click AcceptChanges (accept changes)
Set host name and network card information
First, turn on the network card, and then check if you can get the IP address (I am bridging here), then change the host name and click Done.
Finally select Begin Installation (start installation)
Set root password
Click Done after setting the root password
Click USER CREATION to create an administrator user
Note: Full name fills in root
User name 填 root
If the User name is root and click done, there is no response, leave the User name blank and set the user name when logging in
After entering the username and password, click Done
Wait for the system to be installed and restart the system
Bridge mode network configuration
1. Configure the ip address and other information in the /etc/sysconfig/network-scripts/ifcfg-ens33 file as follows:
command:
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Modify as follows:
- TYPE="Ethernet" # The network type is Ethernet
- BOOTPROTO="static" # Manually assign ip
- NAME="ens33" # NIC device name, the device name must be consistent with the file name
- DEVICE="ens33" # NIC device name, the device name must be consistent with the file name
- ONBOOT="yes" # Whether the network card is started with the network service
- IPADDR="192.168.220.101" # The ip address of the network card is the fixed IP you want to configure. If you want to connect with tools such as xshell, the 220 network segment is best to be consistent with your own computer network segment, otherwise it is possible to use xshell to connect failure
- GATEWAY="192.168.220.2" # Gateway
- NETMASK="255.255.255.0" # Subnet mask
- DNS1="8.8.8.8" # DNS, 8.8.8.8 is the IP address of the free DNS server provided by Google
2. Save and exit after modification and restart the network service network restart
3. Configure network work
Add the following configuration in the /etc/sysconfig/network file
- command:
- vi /etc/sysconfig/network
- modify:
- NETWORKING=yes # Whether the network is working, it must not be no here
4. Configure public DNS service (optional)
Add the following configuration in the /etc/resolv.conf file
nameserver 8.8.8.8
5. Manually start the network card
ifup ens33
6. Turn off the firewall
- systemctl stop firewalld # temporarily close the firewall
- systemctl disable firewalld # Prohibit booting
VMware install Centos8 system (command line mode)
https://blog.csdn.net/renfeigui0/article/details/102545806