Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Create centos7 basic image template for ProxmoxVE

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report