Production Centos 7.4 operating system template machine

Machine tool production templates need to go to network disk extract:https://pan.baidu.com/s/17vnFic6xKVdDaY0g7uRv5g
extraction code: m005

New Virtual Machine, a typical installation, click Next
Production Centos 7.4 operating system template machine

Choose to install the operating system later, click Next
Production Centos 7.4 operating system template machine

Select the Linux operating system, version selection CentOS 64 bit click Next
Production Centos 7.4 operating system template machine

Edit virtual machine name, choose the installation location, click Next
Production Centos 7.4 operating system template machine

Set disk size, I set here 80GB
Production Centos 7.4 operating system template machine

New complete
Production Centos 7.4 operating system template machine

Edit virtual machine settings device, mount the CD-ROM, open the virtual machine
Production Centos 7.4 operating system template machine

Enter to select Install CentOS 7
Production Centos 7.4 operating system template machine

Select Simplified Chinese language, click Continue
Production Centos 7.4 operating system template machine

Click Software Options
Production Centos 7.4 operating system template machine

Select the GNOME desktop, select GNOME applications, additional options compatibility libraries and development tools
Production Centos 7.4 operating system template machine

Set the installation location
Production Centos 7.4 operating system template machine

Select the disk, check the manual configuration partition, click Finish
Production Centos 7.4 operating system template machine

New standard partition
Production Centos 7.4 operating system template machine

New / boot partition, capacity and setting bit 200MiB, click the Add mount point
Production Centos 7.4 operating system template machine

Continue the new swap partition, set the bit capacity 4096MiB, click the Add mount point
Production Centos 7.4 operating system template machine

New third partition, root partition, and the rest of the capacity allocated to the whole root, there is no need to fill is added directly to the mount point
Production Centos 7.4 operating system template machine

Will find new partitions are xfs file system, you can click Finish
Production Centos 7.4 operating system template machine

Accept the changes
Production Centos 7.4 operating system template machine

Select Settings KDUMP
Production Centos 7.4 operating system template machine

Close KDUMP
Production Centos 7.4 operating system template machine

Set the host name and network
Production Centos 7.4 operating system template machine

Open Ethernet, the host name is set to Centos, click Apply to
Production Centos 7.4 operating system template machine

Click Start Installation
Production Centos 7.4 operating system template machine

Set the Root Password
Production Centos 7.4 operating system template machine

Set a password, you can click Finish
Production Centos 7.4 operating system template machine

The installation is complete, you can restart
Production Centos 7.4 operating system template machine

Accept the license
Production Centos 7.4 operating system template machine
Production Centos 7.4 operating system template machine

Set the network and host name
Production Centos 7.4 operating system template machine

Open Ethernet, set the host name, click Finish
Production Centos 7.4 operating system template machine

You can complete the configuration
Production Centos 7.4 operating system template machine

Chinese selection, click Forward
Production Centos 7.4 operating system template machine

Chinese input selection, click Forward
Production Centos 7.4 operating system template machine

Click Forward privacy default
Production Centos 7.4 operating system template machine

Shanghai time zone selection, click Forward
Production Centos 7.4 operating system template machine

They can choose to skip account
Production Centos 7.4 operating system template machine

Creating a user test, click Forward
Production Centos 7.4 operating system template machine

Set a password for the test user, click Forward
Production Centos 7.4 operating system template machine

The end of the wizard, you can start using
Production Centos 7.4 operating system template machine

Right-click the desktop space open terminal

[test@centos ~]$ su   <!--切换到root账户-->
密码:           <!--输入密码-->
[root@centos test]# cd     <!--退出-->
[root@centos ~]# vim /etc/selinux/config       <!--关闭selinux防火墙-->
SELINUX=disabled            <!--disabled关闭-->
[root@centos ~]# systemctl stop firewalld.service       <!--关闭防火墙-->
[root@centos ~]# systemctl disable firewalld.service              <!--关闭开机自启-->
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@centos ~]# vim /etc/yum.repos.d/local.repo        <!--设置yum源-->
[local]
name=centos
baseurl=file:///mnt
enabled=1
gpgcheck=0
[root@centos ~]# systemctl set-default multi-user.target  <!--将图形界面改为字符界面-->
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
[root@centos ~]# systemctl get-default          <!--查看是否切换-->
multi-user.target
[root@centos ~]# init 6            <!--重启Centos看一下是否进入到字符界面-->
[root@centos ~]#systemctl status firewalld.service <!--开机之后查看防火墙是否关闭-->
[root@centos ~]#getenforce           
[root@centos ~]# cp /etc/sysconfig/network-scripts/ifcfg-ens32 /etc/sysconfig/network-scripts/ifcfg-ens32.bak            <!--备份网卡配置文件-->
[root@centos ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens32         <!--配置网络-->
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
NAME=ens32
DEVICE=ens32
ONBOOT=yes
关闭Centos
[root@centos ~]# init 0           <!--关闭Centos-->

So far template machine has finished, start the virtual machine clone
Production Centos 7.4 operating system template machine

Select the current state of the virtual machine clone, click Next
Production Centos 7.4 operating system template machine

Select Create a linked clone, click Next
Production Centos 7.4 operating system template machine

Edit virtual machine name, where he's located, click Next
Production Centos 7.4 operating system template machine

Cloning completed, startup
Production Centos 7.4 operating system template machine

Enter the root account password to log

[root@centos01 ~]# hostnamectl set-hostname Centos01   <!--修改主机名-->
[root@centos01 ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens32    <!--修改IP地址-->
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
NAME=ens32
DEVICE=ens32
ONBOOT=yes
IPADDR=192.168.100.10      <!--设置为100.10网络-->
NATEMASK=255.255.255.0     <!--子网掩码-->
[root@centos01 ~]# vi /etc/yum.repos.d/local.repo  <!--编辑yum源-->
[local]
name=centos01   <!--修改和计算机名一致-->
baseurl=file:///mnt
enabled=1
gpgcheck=0

The terminal may be connected to test whether Centos01
Production Centos 7.4 operating system template machine

------ This concludes the article, thanks for reading ------

Guess you like

Origin blog.51cto.com/14156658/2445273