Install Linux on a virtual machine and Linux on a virtual machine
Install CentOS 6.4 tutorial (detailed steps)
CentOS is a clone version of RHEL, which has the same functions. In addition, some latter bugs are fixed after recompilation. The main difference is that CentOS is free, but there is no official technical support, and RHEL needs to be charged, with official technical support. The new CentOS versions are all released after RHEL, because they are cloned ~
I use VitrualBox, a virtual machine software, to install CentOS. There is actually no big difference between installing Linux on a virtual machine and a real machine. If your real machine configuration is better, it is possible that CentOS does not have a hardware driver.
Go to the installation page:
1 option: install or upgrade the existing system
2 Option: Use a basic graphics card driver to install the system
3 option: Save mode to install the system
4 option: Start from the local disk
5 option: Test memory
Linux can also be installed on the text interface. The installation procedure on the text interface is as follows: press the "ESC" key during this interface, and then enter the linux text key after boot: To enter the installation.
However, we recommend that you use a graphical interface for installation. I remember that CentOS 6. X cannot be partitioned during installation on the text interface, which is quite tangled.
Select "Install system with basic video driver" to go To the GUI for installation. It is used to detect and Mount related devices and files.
Then go to the following page:
Here, you can Skip this step directly. If you click "OK", the system will start to check whether the media on your computer is normal. It takes some time.
Click "Next"
Then select the language used during system installation. Here I select English and click "Next" to go to the Next step.
In this step, select the keyboard type. Here I select the default U. S. English, and click "Next" to go to the Next step.
In this step, select the hard drive type. Generally, select Basic Storage Device and Speciallzed Storage Dvices for SANs. Click "Next" to go to the Next step.
This step allows you to choose whether to delete the data in the virtual disk. We use a blank disk, so select "Yes, discard any data" (delete all data) and click "Next" to go to the Next step.
In this step, Configure the computer name and Network parameters, fill in your favorite computer name, and then click "Configure Network" to Configure the Network parameters.
Select "System eth0" and click "Edit" to Edit the NIC.
Check the "Connect automatically" option. After the sub-host restarts and enters the system, it can automatically Connect to the NIC and select the "IPv4 Settings" tab to configure the IP address.
I chose "Manual", which means Manual configuration. If there is a DHCP server in your network, you can use DHCP, and then click "Add" on the right to Add parameters.
If you are using an IPv6 network, configure the corresponding parameters in "IPv6 Setting"; otherwise, select "Ignore" to Ignore
Click "Apply" to continue, then click "Close", and then click "Next" to go to the Next step.
In this step, select the system time zone. Click "Next" to go to the Next step.
This step is to configure the password of the root account. For Server Installation, You need to configure a complicated password. for learning and testing purposes, the password should be at least 6 characters at will, if the password is too simple, the system will prompt.
Select "Use Anyway" to go to the next step.
This step enters the pace of partitioning.
Use All Space
Replace Existing Linux System to Replace the Existing Linux System
Shrink Current System reduces Current System space
Use Free Space Use unused Space
Create Custom Layout Custom Partition
Here we select Create M Layout, and there are two options below, as shown in figure
Encrypt system encryption system
Review and modify partitioning layout Review and modify partitions
We do not check "Encrypt system" here. The "Review and modify partitioning layout" option will be automatically selected after "Create Custom Layout" is selected. Click "Next" to go to the Next step.
This step is a partition and is one of the most important parts of the installation system. Theoretically, if your memory is large enough, you can only split it into one "/", that is, the root partition, the test machine is divided into two areas: "/" and "Swap ". Swap is the virtual memory in the virtual machine. If it is a server, it will be divided into several areas: "/boot" (the partition that stores startup-related files) about MB is enough, "/usr" (the partition where the program is installed) I generally divide it into 10 Gb. "/var" and "/home" can be customized, such as "/test ". The setting of "Swap" depends on the memory of your server. Select the "Create" button below to Create a partition:
Standard Partition Mode
RAID Partition: disk array Partition. Here is the software disk array.
LVM Physical Volume, which is the LVM partition Mode
Select "Standard Partition" and click "Create"
Mount Point
File System Type: The File System Type, which is equivalent to a partition format of NTFS or FAT32 in Windows. Select the latest ext4
Size
Fixed size
Fill all space up to specify the space size
Fill to maximum allowable size use all available space
Force to be a primary partition forced conversion to the primary partition
Encrypt Encryption
The following is the partitioning procedure:
Click "OK"
Here, I only have two zones, as shown in the end:
Click "Next"
Select "Write changes to disk" (Write to hard disk)
This step is to select the system startup program installation location, we can by default, Next
This step is to select what machines are used for, such as Desktop and web server. If you choose one, the system will automatically install some required software for you. Here I select Minimal, then select the Customize now custom installed component. Next
Go to the component selection and installation page
If you need any components later, you can load the CentOS image to install it.
It takes several minutes to install the component interface ~
After the installation is complete, click "Reboot" to restart
The system that follows is the text interface Linux. When you press the command, click it :)