Vmware creates a virtual machine and installs the CentOs 7 system with detailed steps

1. Create a virtual machine

  1. Click [Create a new virtual machine];
    insert image description here
  2. Select [Custom (Advanced)©], and then click [Next];
    insert image description here
  3. Click [Next];
    insert image description here
  4. Select [Install the operating system later (S)], and then click [Next];
    insert image description here
  5. Select [Linux] for the operating system, because the CentOs 7 version is to be installed here, so, select [CentOs 7 64-bit] for the version, and then click [Next];
    insert image description here
  6. Customize the name of the created virtual machine and the location where the virtual machine is stored, and then click [Next];
    insert image description here
  7. Configure the number of CPUs of the virtual machine and the number of cores per CPU. Generally, one configuration is sufficient.
    insert image description hereOf course, you can configure it according to your own needs, but the result of multiplying the number of CPUs configured and the number of cores per CPU should not be greater than the number of logical processors in your computer. You can check the number of logical processors on your computer in Task Manager.
    insert image description here
  8. Configure the memory size of the virtual machine, generally 1~2GB is enough. Of course, you can also configure it according to your own needs, but it cannot exceed the memory size of your computer;
    insert image description here
  9. Configure the network type, generally select [Use Network Address Translation (NAT)];
    insert image description here
    here is a brief description of the difference between a bridge network and a NAT network:
  • Bridged network: Your virtual machine IP will be assigned to the same network segment as your computer IP, so that not only your computer can access your virtual machine, but other computers on the same network segment as your computer can also access the network you created. virtual machine. But using a bridged network may cause IP conflicts;
  • NAT network: Your computer will virtualize an IP network segment, and assign an IP of this network segment to your virtual machine. In this case, only your computer and virtual machine are in this network segment, then only your computer can Access your virtual machine while other computers cannot.
  1. Click [Next];
    insert image description here
  2. Click [Next];
    insert image description here
  3. Select [Create a new virtual machine disk], and then click [Next];
    insert image description here
  4. Generally, the maximum disk size is set to 20GB, of course, you can set it according to your needs; at the same time, select [Split the virtual disk into multiple files];
    Note: The maximum disk size set here refers to the maximum disk size of the virtual machine, not one time. The virtual machine has so much space, but the computer will give as much space as the virtual machine uses, and the maximum will not exceed this upper limit.
    insert image description here
  5. Set the disk file storage location of the virtual machine, preferably the same as the virtual machine storage location set in the sixth step, which is convenient for management;
    insert image description here
  6. Click [Finish];
    insert image description here16. At this point, the virtual machine is created.

2. Install CentOs 7 system to the virtual machine

  1. Select the virtual machine you just created, and then click [CD/DVD] to set the operating system image file used by the virtual machine;
    insert image description here
  2. Select [Use ISO image file], then click [Browse], select the CentOs 7 image file downloaded and saved on the computer in advance, and then click [OK];
    insert image description here
  3. Then click [Turn on this virtual machine];insert image description here
  4. Select [Install CentOs 7], and then press the Enter key, the virtual machine starts to install the system;insert image description here
  5. After the installation is complete, the language setting window will pop up, select [Chinese] in the left menu bar, select [Simplified Chinese] in the right menu bar, and then click [Continue];
    insert image description here
  6. First set the time zone and time, click [Date and Time];
    insert image description here
    among them, select Asia for [Region], select Shanghai for [City], fill in your current time as the year, month, day, hour, minute and second, and then click [Finish];
    insert image description here
  7. To set whether the virtual machine has a graphical interface, click [Software Selection];
    insert image description here
    among them, [Minimum Installation] is a black window, and operations are completed through commands, similar to the cmd window of Windows, which conforms to the standard of enterprise servers; and [GNOME Desktop] is There is a graphical interface, and beginners who are not familiar with commands can use the graphical interface. Here I select [Minimal Installation], and then click [Finish];
    insert image description here
  8. Set the disk partition, click [Installation Location];
    Note: If you don't want to set the disk partition here, but want to use the default partition configuration, you can skip this step and go directly to the ninth step.
    insert image description here
    Then select [I want to configure a partition], and click [Finish];
    insert image description here
    then click [+]; [Mount Point] select /boot, fill in [Desired Capacity] as 1g, and then click [Add Mount Point].
    Note: 1G space is allocated to boot here, which means that 1G resource space is allocated to the virtual machine system when it starts;
    insert image description here
    then the file system is changed to ext4;
    insert image description here
    then click [+], [mount point] select swap, [expected capacity] Fill in 4g, and then click [Add Mount Point].
    Note: 4G space is allocated to swap here, which means that when the memory of the virtual machine is not enough, 4G space will be divided from the hard disk to be used as memory;
    insert image description here
    then click [+], select / in [Mount Point], and fill in [Expected Capacity] as 15g, and then click [Add Mount Point].
    Note: Because I allocated a disk size of 20G to the virtual machine when I created it, and the /boot directory and swap shared 5G, so here, 15G is allocated to /, which means that the remaining 15G space is allocated to the root of the virtual machine. directory;
    insert image description here
    then click [Finish];
    insert image description here
    then click [Accept Changes];
    insert image description here
  9. Set the network and hostname. Click [Network and Hostname];
    insert image description here
    set the Ethernet status on the right to open, name the hostname as localhost, you can also set it to another name, and then click [Finish];
    insert image description here
  10. After the above steps are configured, click [Start Installation];
    insert image description here
  11. During the installation process, you can set the password of the root user. Click [root password];
    insert image description here
    enter the password, and then click [Finish];
    insert image description here
  12. After the installation is complete, click [Restart];
    insert image description here
  13. So far, the CentOs 7 system has been successfully installed on the virtual machine.

Guess you like

Origin blog.csdn.net/weixin_55118477/article/details/121022941