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

Practical Application of centos7 esxi6.7 template

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Practical application of centos7 esxi6.7 template 1. Create centos7.6 system and optimize system 1. 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.

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