Create centos7 basic image template for ProxmoxVE
On the left above is my personal Wechat. For further communication, please add Wechat. On the right is my official account "Openstack Private Cloud". If you are interested, please follow us.
With ProxmoxVE, it is necessary to prepare your own virtual machine image templates, so that importing virtual machine templates directly can save a lot of time every time you use some commonly used systems. Here I record the process of making a template for the centos7 virtual machine.
The virtual machine template uses minimal minimization installation mode, 1 network card DHCP mode, 1 hard disk 32G CPU 1 core. Install the net-tools package (so that it can use the ifconfig command), the docker package.
First, upload and install the image ISO in ProxmoxVE's web management interface, and then create a virtual machine. The creation of a basic virtual machine is not described in detail here.
After installing the centos7 basic virtual machine, go to the system to install the net-tools package (so that it can use the ifconfig command), docker package, vim package, wget package, as follows:
Yum install-y net-tools docker vim wget
You need to modify the parameter selinux-enabled=false of the configuration file / etc/sysconfig/docker, as follows:
Vi / etc/sysconfig/dockerOPTIONS='--selinux-enabled=false-- log-driver=journald-- signature-verification=false'if [- z "${DOCKER_CERT_PATH}"]; then DOCKER_CERT_PATH=/etc/dockerfi
If you do not modify the above parameter, there will be "Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel." Report an error
Enable: systemctl enable docker & & systemctl start docker after installation and configuration of docker
After that, shut down the virtual machine and turn the virtual machine convert into a template, so that a custom centos7 virtual machine template is generated.