您好,登錄后才能下訂單哦!
?
systemctl disable NetworkManager
systemctl stop NetworkManager
setenforce 0
sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
yum install vim nc wget lrzsz telnet net-tools epel-release bind-utils tree cifs-utils ntpdate -y
###修改網卡文件名和配置
cd /etc/sysconfig/network-scripts
cp ifcfg-ens192 /tmp/ifcfg-ens192_bak
sed -i "s#NAME=.*#NAME='eth0'#g" ifcfg-ens192
sed -i "s#DEVICE=.*#DEVICE='eth0'#g" ifcfg-ens192
mv ifcfg-ens192 ifcfg-eth0
###修改grub配置
sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX=\"rhgb quiet net.ifnames=0 biosdevname=0\"#g' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
#cat >> /etc/security/limits.conf <<eof
* soft nofile 65535
eof
#cat >> /etc/security/limits.conf <<eof
* hard nofile 65535
eof
#sed -i "/*/s#* soft nproc.*#* soft nproc 65535#g" /etc/security/limits.d/20-nproc.conf
https://www.vmware.com/support/developer/ovf/
雙擊VMware-ovftool-4.3.0-7948156-win.x86_64.msi,默認下一步,完成即可
PS >cd C:\Program Files\VMware\VMware OVF Tool
PS >.\ovftool.exe -dm=thin "vi://10.10.90.239/centos-template" d:\centos-template\centos-template.ova #10.10.90.239為宿主機ip
Fingerprint will be added to the known host file
Write 'yes' or 'no'
yes #輸入yes
Enter login information for source vi://10.10.90.239/
Username: root #用戶名
Password: ********* #密碼
Opening VI source: vi://root@10.10.90.239:443/centos-template
Opening OVA target: d:\centos-template\centos-template.ova
Writing OVA package: d:\centos-template\centos-template.ova
Transfer Completed
Completed successfully
1)將centos-template.ova后綴名改為centos-template.rar
2)解壓縮centos-template.rar
3)刪除centos-template.mf和centos-template.nvram
4)修改centos-template.ovf文件,將帶有nvram字符的兩行刪除掉,保存文件
打開瀏覽器-->進入vmware esxi6.7 宿主機頁面 --> 虛擬機 --> 創建/注冊虛擬機 --> 從OVF或OVA文件部署虛擬機 --> test-centos-template(為該虛擬機輸入名稱。)--> 單擊以選擇文件或拖放(將centos-template.ovf和centos-template-disk1.vmdk兩個文件拖放到此區域) --> 默認下一頁 -->完成
注意:請勿在部署此虛擬機時刷新瀏覽器。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。