Installing CentOS on a virtual machine

Source: Internet
Author: User



Excerpt from < and Amin learning linux>





Installing virtual machines


There are many types of virtual machines that are currently popular, and Amin use VMware virtual machines. The latest version has been to version v9.0, but Amin has been using v6.0.1, if you do not want to download the latest version, then directly use the links provided by Amin download v6.0.1 bar, (including registration machine): Click here to download and install the vmware6.0.1, After installation, you need to enter a registration code can be used, Amin provides the registration machine is very useful, directly generate a can. Recently found that many friends feedback this 6 version of the virtual machine can not successfully install CentOS, so Amin to provide a 10.0 version, is Http://pan.baidu.com/s/1eQxOVPC.



If you feel that VMware is not good for you, you can also choose VirtualBox, which is completely free, official: https://www.virtualbox.org/wiki/Downloads





Download Linux OS image file


The advantage of installing a virtual machine is that you can use the image file as a disc directly. Amin mentioned earlier that all the experiments done in subsequent chapters are based on CentOS, so you also need to download a 32-bit [1] centos image. : http://iso.aminglinux.com/, download the dvd1 size 4G.







Installation of CentOS (graphical installation)


The previous preparation may take a long time because the CentOS image file is too large. Once downloaded, you can then install CentOS with Amin. In this version of the tutorial, Amin no longer insert pictures, because in the back Amin will record video to help you learn better, this may be a little obstacle to your learning, but Amin as clear as possible to everyone, if you really do not understand please add QQ Group (148412746), to the group Consulting Amin Bar. Amin first describes how to install CentOS graphically, and then describes how to install CentOS in text mode.





    1. Create a virtual machine that installs Linux


Turn on the VMware Workstation software and click on the "New Virtual machine" –> point "Next" –> the "next" button in the Home tab on the right to select Custom to continue with the "step down" –> continue to click "Next" –> Select "Linux" –> point "Next" –> location choose a large disk character, such as Amin select "E:centos" point "Next" –>processors quantity Select one, continue to "next" –> memory recommendations Modified to 1024M or larger, provided that your real machine memory is large enough (not too small, otherwise the graphical installation interface does not come out) then click "Next" –> Network Connection remain default, click "Next" –> continue to "next" –> Continue "next" – > vitual disk Type Select IDE, click Next –> disk size to 16.0 (if your computer has too little disk space, make it smaller, but not less than 5G) point "Next" –> last point "finish"


    1. Configuring the Virtual CD drive


You cannot install CentOS at this time, and you need to configure the virtual machine that you just created. Click "Edit Virtual machine Settings" –> Select Floppy, click the "Remove" below, because the floppy disk is not used, so directly deleted; CD-ROM This is the key, you need to "use ISO Image:" In front of a click, then click Browse, select the CentOS image file you just downloaded, last click OK.


    1. start installing CentOS


point "Start this vitrual machine" –> the mouse to click on the interface of the VM, enter the virtual machine, otherwise you can not follow up (to exit, you need to press ALT + Ctrl), and then select "Install System with basic V Ideo Driver "Enter –> Disk Found This is asked if you need to detect the image file, because it is downloaded from the official site of the image, certainly no problem, so we choose" Skip "–> point" Next "–> This step is let us choose in the next installation process The language that needs to be used, we choose "Chinese (Simplified)", click "Next" (to here if you find, and Amin is not the same, it must be your virtual machine does not support graphics display, then please skip to the next section refer to how to install text mode) – > Keyboard This one we keep the default, that is, the United States English keyboard, the point "next" –> use the device remains the default, point "Next" –> if a pop-up window prompts "Error processing Drive", then we need to select "Reinitialize (R)", then click "Next" –> Look at the time zone is not "Asia/Shanghai", if it is "next", otherwise select "Asia/Shanghai", click "Next" –> Enter the root password (root account password), you must remember Oh, otherwise you can not enter the system, anyway is to do experiment, Amin suggest you enter 123456, point " Next "–> will ask us" which type of installation to make ", we choose the last item" Create custom layout ", i.e. we customize the partition, click" Next "


    1. Partition


At this point the partition [2], Amin virtual machine has a total of a 16G of disk, I will be divided into: (1)/boot partition 100M (2) Swap partition divided by 2G (3) remaining partition to/partitions. below to see how Amin do it, first click "Create", then select "Standard Partition", then "generate", mount point Select/boot, size changed to 100, the last point "OK", so that the creation of a successful/boot partition –> and so on, create a swap partition, created without selecting the mount point , directly select the file system type Swap, then the size to 2048, the last point "OK" –> last create A/partition, mount point selection/, size regardless, other size options Select "Use all available space", the last point "OK", so that the Amin previously conceived scheme to create a good partition. Then click "Next". The warning pops up, the formatting will delete all the data on the disk, we choose "format", and then another pop-up warning, click "Write Changes to disk (W)"


    1. Select installation package


After formatting the disk, the boot loader option appears, keeping the default click "Next" –> the current installation plan will minimize the installation of CentOS, in order to let everyone more detailed understanding of the installation process, so Amin take you to choose "Now custom", point "Next" –> "Basic System" this item, Select "Basic" on the right, others do not tick –> Web services, development, elastic storage, database, server, System Management, virtualization, load balancer, high availability These are not a choice –> desktop This Amin will not choose any of the items, but if you are curious about the graphical interface, Or if you want to use a Linux graphical interface, then you have a few items on the right. –> Application This option to check "Tex support" on the –> language support has already ticked "Chinese support", so we don't have to change it, then click "Next". Then there is the long wait for the installation system. The length of the installation depends on the number of packages you check and the performance of your PC, and the Amin virtual machine installs for 8 minutes. After the installation of all the packages will prompt us, need to "reboot", restart after the login to the root account, into the CentOS system.





Installing CentOS (text-mode installation)


The first is to install the virtual machine, configure the virtual machine, the same steps as the previous section, the difference is that the CD-ROM drive, after entering the installation interface, we no longer select "Install system with basic video driver" instead of selecting the first line "Install or upgrade an" Existing system ". The Disk found prompt appears after the carriage return, asked if we want to detect the image file, we choose "Skip".


We'll pop up. Welcome page: Welcome to centos! Enter directly.


Select the language, because the use of text mode, select Chinese is not used, so directly enter.


The keyboard also remains the default, direct carriage return.


A warning appears indicating that the disk device may need to be reinitialized and select "Re-initialize".


Time zone Selection This is the TIMEZONE setting option, the System clock uses UTC in front of*to remove (by the space can be removed), because China's time zone is CST, and then press the "tab" key cursor to move below, press the DOWN arrow to find "asia/ Shanghai ", then press TAB to select OK to enter.


Root Password This column is for the root user to set a password. Amin suggest you enter a simple easy to remember, otherwise you will forget what is the trouble. For example, the password set by Amin is ' 123456 ', enter it and press "tab" again, then press "tab" to select OK to enter.


At this point, say the password is too weak, let us set a complex, which is also for security reasons friendly prompt users, but we are doing experiments, it doesn't matter. So select "Use anyway" to enter.


The "Partition type" window pops up into three modes: Use entire drives means that all disks are used; Replace existing Linux system means replacing existing Linux systems; using FRE E space means using the remaining space. Since we are a brand new installation, it doesn't matter which one you choose. Amin selected the first "Use entire drive". The next line is to let us choose which disk, if you have more than one disk on the machine, here will show multiple lines, Amin virtual machine only a disk, so Use "tab" select OK to enter.


The pop-up hint says that the storage configuration will be written to disk. We select "Write Changes to disk" carriage return.


The rest is automatic installation, about 3 minutes or so to complete the installation.



You might ask, where did the steps for partition and custom packages go? Yes, Amin in the beginning also have doubts, when I looked for a long time after the information, only to know that the original is the official for a bug and blocked the custom partition and custom installation package features. So, you want to customize the partition of friends, only through the graphical installation of it!









This article is from the "Good Study" blog, please be sure to keep this source http://1024079574.blog.51cto.com/10921986/1742511



Installing CentOS on a virtual machine


Related Article

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.