Path to clothing (1): vmwarevm + CentOS system installation, vmwarecentos

Source: Internet
Author: User

Path to clothing (1): vmwarevm + CentOS system installation, vmwarecentos

Buyibo is a hard-pressed Java programmer, although the work does not involve system O & M, however, the development project is always deployed on the server for some cool operations such as load balancing, system compatibility testing, and system integration, however, these tested operations cannot be implemented directly on servers that require remote ssh o & M, therefore, using a Linux system as a test server on an individual development machine as a virtual machine becomes a necessary survival skill for programmers. I wanted to write a blog post about virtual machine installation and various environment building. However, the blogger carefully noted that there are still a lot of things, from the virtual system to the JDK environment to the database service, in addition, there are still many problems to be mentioned during the construction process, which is too simple. As a blogger of Tom, he will be forced to refer to the blog post in the future, simply split the content into several blog posts in detail, so that it can be a little more white than the bloggers, and the old white readers who are a little bit darker than the bloggers can make a good shot.

The first part of the series will first explain how to virtualize a computer on our computer and install the operating system. Because it is an installation tutorial, there are many blog posts below, so read carefully if there are many image phobias. Software Versions involved in the blog: Virtual Machine-VMware 12, Linux system-CentOS 6.5

1. Software preparation

You can download the VMware installation package from Baidu. The latest version has been updated to version 14. What is more difficult is the CentOS image file, which should be downloaded from the official website for more authority. Since the official website is in English, many people seem to be a little aggressive, so it is necessary to briefly talk about it here. First, click the link to visit the official website. You will see the following homepage --

You can see the top navigation menu bar --

  • Get CentOS: Like the Get CentOS Now function on the homepage, it is linked to the CentOS image download page;
  • About: Subscribe to multiple sub-menus, which are linked to the CentOS details page;
  • Community: Links to the CentOS community from multiple sub-menu items. You can share and exchange related information and submit bugs;
  • Documentation: Subscribe to multiple sub-menus and link to CentOS document information, including help documents and version guides;
  • Help: Links to common CentOS troubleshooting methods and help information.

Our goal is to download the image. Click the link to go to the image download page --

On the download page, you can see three optional links to the download page of the latest version --

  • DVD ISO: The complete installation version image of the general CD can be installed offline on the computer hard disk, including a large number of common software, larger than 4G size, generally choose this image type;
  • Everything ISO: Includes the content of the complete installation version, supplements it, integrates all the software, size more than 8 GB;
  • Minimal ISO: This version is a lite version of the image. You can install a basic CentOS system, which only contains the minimum installation package required to start the system, excluding the desktop, and can only perform full command line operations, the image size is less than 1 GB. You can select a simple server environment deployment project.

Based on your preferences, click the corresponding version to link to the download Directory Interface, which has two main resource areas:Actual CountryAndNearby Countries --The former indicates the current country resource zone, and the latter indicates the nearby country resource zone. Resources of different sites are listed below each resource. Generally, download the site of the current country resource zone, resource Retrieval is faster. Although the latest CentOS version is already 7 +, the usage of the 6 + version is quite high in China, so the download of the 6 + version is also a common requirement. In the Older Versions at the bottom of the download page, there is a link to the Old Version Download Page. Click it to link to the Old Version Download page. You can download a detailed tutorial from Guan du Niang, I will not go into detail here.

2. Virtual Machine Installation

The installation of virtual machines is free of charge. Basically, you agree to the next step of the agreement. You just need to enter the activation key and enter the activation key, even if you Virtualize a computer on your computer (host machine)-yes, you don't have to spend a penny, so you can have another computer to play with. Isn't that easy? The virtual machine interface is as follows --

Virtual Machine Installation Wizard for CentOS

Now you have a brand new computer, but you can't do anything without installing a computer. You have to install the operating system. On the VM boot page, click Create New VM to enable the Configuration Wizard before installing the system's Vm system --

There are two options: Typical and custom. The custom only requires more options for version compatibility and hardware restrictions. We just need to select a typical installation. Then select the Operating System (Linux) and the number of system digits (64-bit CentOS) respectively, and fill in the Virtual Machine name and installation location, which is very simple. No texture will be shown here. After completing these settings, go to the next step and select the system installation source --

In this step, we can directly select the second option to mount the downloaded system image file, or choose the last option, not to mount the file first, and then mount the file together When configuring the hardware. We recommend that you do not attach it here. You can configure it later with the hardware configuration. Of course, if you forget to mount the image at the end, you cannot start the installation process by enabling the virtual machine, but the following error message is not found --

Next, specify the disk size and select single-file storage (unless the virtual machine needs to be migrated to split the disk). Next, you can perform hardware configuration before completing the VM wizard (if you do not complete the wizard, you can edit it separately )--

The system memory can be configured according to the recommended configuration. If your local computer memory is large enough, it doesn't matter if the allocation is large enough, but it is recommended that the system memory be enough.

We recommend that you use the default processor configuration to avoid affecting the running of the host. If you require a high-level virtual machine, you can select a high number of processor cores, but cannot exceed the original number of cores of the host machine. If you exceed the number, an error message is displayed. If you want to determine the number of host machine processor cores, you can choose either of the following methods: Right-click a computer, choose Properties> View Device Manager> Number of processors, more concise is through the Task Manager> performance> CPU usage records, there are several boxes that represent several cores. Next, mount the operating system image --

Configure the network adapter. If you really want to virtualize a computer like a real machine in the LAN, select the bridging mode as follows (other modes will be described in the following blog )--

You do not need to configure other sound cards in detail. You can click Close or complete to complete the VM Configuration Wizard --

Virtual Machine System Installation

After the VM wizard is installed, enable the VM and set the system according to the process --

You can press the tab key to select, and press enter for the first installation (installation or upgrade of the existing system) to enter --

This interface indicates that the test disc media is skipped. Because it is not a CD-Rom installation, if you select test, the CD-Rom cannot be found, and the configuration process cannot proceed. After skipping, select the system language and system keyboard. We recommend that you use the language you can understand when installing and using the blogger for the first time. You do not have to pretend to be an easy-to-learn language. You can select an American English keyboard as the keyboard. Next, select the default basic storage --

 

Next, a warning will be displayed here. Because the installation is completely new, a unused hard disk will be created. Therefore, if you select "no", the system will prompt you that no available disk is found and you cannot continue) --

Go on to the next step, set the computer name, Time Zone (Asia/Shanghai), and super user password, and then select a partition. If You Need To Know Linux partitions, you can customize the partition layout according to your own configuration. Of course, if the bloggers are relatively small, they will not go to custom partitions. They will directly use all the space, saving you the trouble:

Next, write the modification to the disk.

Next, by default, choose system installation streamlining. We recommend that you select Minimal Desktop, a basic Desktop system, which contains less software --

We recommend that you check the current custom settings no matter what you choose here, because you can customize and pre-install some software services during system installation. For example, you can directly install the MySql service, java platform. Of course, it is not recommended to select the Java platform here. This will cause the installation of the default OpenJDK, but it is more difficult to uninstall.

Finally, wait quietly until the installation is complete --

After the installation is complete, reboot, restart the system, and complete some protocol license, User Creation, date and time settings --

Finally, you can use the created user to log on to the system to operate your Linux system --

Finally, it should be noted that due to version upgrades, the command and directory structure between the latest and old versions of CentOS have changed a lot, the operation commands mentioned in the blog post are only applicable to the 6 + versions. You must differentiate them. The blogger tried 7 + versions and found that many command changes made him somewhat uncomfortable. He had to switch back to the old version as an installation example. However, in the future, I will try to play with the latest version of the system. After all, the technology will develop forward, and I will always lie in my comfort zone. If I don't embrace the latest things, I will be eliminated. In the next blog, the Buyi blogger will go on to install the system and explain the story after logon...

 

 

 

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.