Linux Virtual machine installation configuration manual (version: 7.3)

Source: Internet
Author: User
Tags gpg

First, prepare

①, installing VMware

The installation steps are omitted. The version I use here is as follows:

②, Linux system image file:

It is recommended to use the latest version of the Linux system. Some components require a higher version of the system kernel and may cause errors.

The version I'm using here is: Rhel-server-7.3-x86_64-dvd.iso

Baidu Cloud sharing Connection: Https://pan.baidu.com/s/1hsJS4bM

Second, install the virtual machine

↓ Create a new virtual machine

↓ Default, Next

↓ Default, Next

↓ Default, Next

↓ Select the Linux version according to the image file version. I'm using "Rhel-server-7.3-x86_64-dvd.iso", so I chose the Linux 7 version.

↓ Customize a virtual machine name and location, click Next.

↓ Default, Next

↓ Default, Next:

↓ Select the network type.

Recommend a blog: http://www.cnblogs.com/yygsj/articles/4759933.html

It is recommended to select different network types based on different usage scenarios.

If the use of the environment is fixed, the IP address will not change, need to access the extranet, it is recommended to use Bridge mode.

If you do not need to access the extranet, you only need to be able to communicate between the machine and the virtual machine, it is recommended to use NAT mode.

I use NAT mode here, the main reason is the use of notebooks, the office environment changes frequently, IP addresses are often adjusted.

↓ Default, Next

↓ Default, Next

↓ Default, Next

↓ Default, Next:

↓ Default, Next

↓ Click Done.

↓ You can manually configure the mirror location before starting the virtual machine for the first time

↓ Select and open the newly created virtual machine

↓ the configuration graphical interface shown below will open after the virtual machine is started normally.

First you need to choose the language of the installation process, you can choose Chinese, you can also choose English. I chose English here in order to exercise English. Click Next

Then design the time zone of the system

Set the time zone, and then click Done

↓ to install the required software, it is recommended to select the minimum installation (Minimal install).

↓ for System Setup

Complete the disk size setting as shown below. (size can be set according to your preference, where/boot is generally set to 500M)

↓ After the configuration is complete, click Install (the computer screen is too small, the button can only see half)

↓ you can set the root user password

↓ wait for the installation to complete and reboot

Third, network settings

After restarting, enter the Linux login screen and enter the user name and password.

Use the CD command to enter the path to the network design file, and use the VI command to edit the network configuration file.

Ifcfg-ens33 file before editing as follows:

The changes are as follows:

Restart the Network service. Command: Service Network restart

Verify that the network settings are correct. Command: Ifconfig

Check to see if you can interoperate with the virtual machine through the local PC Command window.

Iv. Configuring the local Yum source using the system image file

1. Use the FTP tool. Upload the image file to the virtual machine directory.

Recommended Location:/USR/LOCAL/SRC

2, in order to operate conveniently, use the SSH tool to connect the virtual machine. I use the Xshell here, configured as follows

3. Mount the image file

Mount command: mount-t iso9660-o loop/usr/local/src/rhel-server-7.3-x86_64-dvd.iso/media/cdrom

※ un-mount command: Umount/media/cdrom

4. Set up automatic mount system image file on boot

Vi/etc/fstab #添加以下代码. Enable automatic mount on boot

/usr/local/src/rhel-server-7.3-x86_64-dvd.iso/media/cdrom iso9660 defaults,ro,loop 0 0

5. Configure local Yum Source

Cd/etc/yum.repos.d/#进入yum配置目录

Touch Rhel-media.repo #建立yum配置文件

VI Rhel-media.repo #编辑配置文件

Add the following content

[Rhel-media] #这一行一定要写

name=red Hat Enterprise Linux 7.3 #自定义名称

Baseurl=file:///media/cdrom #本地光盘挂载路径

Enabled=1 #启用yum源, 0 is not enabled, 1 is enabled

Gpgcheck=1 #检查GPG-key,0 for no check, 1 for inspection

Gpgkey=file:///media/cdrom/rpm-gpg-key-redhat-release #GPG-key Path

: wq! #保存退出

6. Install the software automatically using the Yum command

Yum Clean all #清除yum缓存

Yum Makecache #缓存本地yum源中的软件包信息

(2016/12/1 21:10, today, temporarily updated here, will continue to update in the future)

Linux Virtual machine installation configuration manual (version: 7.3)

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.