Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Analysis on the Application of centos7 esxi6.7 template

Shulou Source: shulou.com Published: 2022-05-31 11:26:40 10月03日 Update

This article mainly explains "centos7 esxi6.7 template application case analysis", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "centos7 esxi6.7 template application case analysis" bar!

First, create and optimize the centos7.6 system

1. Close networkmanager

Systemctl disable networkmanagersystemctl stop networkmanager

two。 Close selinux

Setenforce 0sed-I "s#selinux=enforcing#selinux=disabled#g" / etc/selinux/config

3. Close firewalld

Systemctl stop firewalldsystemctl 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 the network configuration (change to / etc/sysconfig/network-scripts/ifcfg-eth0) and the configuration of multiple network cards

# modify the file name of the network card and configure 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 the grub configuration sed-I configuration grubbing cmdlineroomlinux.roomgrubrubbing cmdlineroomlinux =\ "rhgb quiet net.ifnames=0 biosdevname=0\" # g'/ etc / default/grubgrub2-mkconfig-o / boot/grub2/grub.cfg

6. 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: root # user name password: * for the host ipfingerprint will be added to the known host filewrite 'yes' or' no'yes # * * 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 successfully

two。 Modify the file in the ova template

1) change the suffix name of centos-template.ova to centos-template.rar

2) decompress centos-template.rar

3) delete centos-template.mf and centos-template.nvram

4) modify the centos-template.ovf file, delete the two lines with nvram characters, and save the file

three。 Import ovf template

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.

At this point, I believe that everyone on the "centos7 esxi6.7 template application case analysis" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Files templates configurations instances case analysis analysis applications tools browsers users browsing maximum content host system network card learning input utility Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Microsoft Docker MariaDB