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

The usage of esxi template in centos7 system

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail how to use the esxi template under the centos7 system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

First, create the centos7.6 system and optimize the system. Close NetworkManager

Systemctl disable NetworkManager

Systemctl stop NetworkManager

two。 Close selinux

Setenforce 0

Sed-I "s#SELINUX=enforcing#SELINUX=disabled#g" / etc/selinux/config

3. Close firewalld

Systemctl stop firewalld

Systemctl disable firewalld

4. Install software for daily use

Yum install vim nc wget lrzsz telnet net-tools epel-release bind-utils tree cifs-utils ntpdate-y

5. Modify network configuration (change to / etc/sysconfig/network-scripts/ifcfg-eth0) and multiple network card configuration # modify network card file name and configuration cd / etc/sysconfig/network-scriptscp ifcfg-ens192 / tmp/ifcfg-ens192_baksed-I "s#NAME=.*#NAME='eth0'#g" ifcfg-ens192sed-I "s#DEVICE=.*#DEVICE='eth0'#g" ifcfg-ens192mv ifcfg-ens192 ifcfg-eth0### modify grub configuration sed-I 's#GRUB _ CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX=\ "rhgb quiet net.ifnames=0 biosdevname=0\" # g'/ etc/default/grubgrub2-mkconfig-o / boot/grub2/grub.cfg6. Modify the maximum number of files for all users # cat > > / etc/security/limits.conf / etc/security/limits.conf.\ ovftool.exe-dm=thin "vi://10.10.90.239/centos-template" d:\ centos-template\ centos-template.ova # 10.10.90.239 enter yesEnter login information for source vi://10.10.90.239/Username for the host ipFingerprint will be added to the known host fileWrite 'yes' or' no'yes #: Root # user name Password: * # password Opening VI source: vi://root@10.10.90.239:443/centos-templateOpening OVA target: d:\ centos-template\ centos-template.ovaWriting OVA package: d:\ centos-template\ centos-template.ovaTransfer CompletedCompleted successfully2. Modify the ova template file 1) change the centos-template.ova suffix name to centos-template.rar2) unzip centos-template.rar3) delete centos-template.mf and centos-template.nvram4) modify the centos-template.ovf file, delete the two lines with nvram characters, and save file 3. Import the ovf template to open the browser-> go to the vmware esxi6.7 host page-> Virtual Machine-> create / register a virtual machine-> deploy a virtual machine from an OVF or OVA file-> test-centos-template (enter a name for the virtual machine. )-- > Click to select a file or drag and drop (drag and drop centos-template.ovf and centos-template-disk1.vmdk files to this area)-- > default next page-- > finish Note: do not refresh the browser when deploying this virtual machine.

On the centos7 system on the use of esxi templates to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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