1. #vi /etc/ssh/sshd_config
修改 #Banner /xxx/xxx
改成 Banner /etc/ssh/sshd_banner (後面路徑自行調整)
2. #vi /etc/ssh/sshd_banner
輸入要顯示的訊息
:wq 存檔離開
3.#service sshd restart (重新啟動sshd)
4. 完成
2017年10月19日 星期四
2017年9月6日 星期三
CentOS 7 關閉防火牆及 SELinux
CentOS 7 的 SELinux 及 Firewalld 防火牆都是安全相關的套件, RHEL 及 CentOS 均預設開啟, 但如果在開發或測試的機器上, 將它們關閉對除錯方便不少。
關閉 SELinux:
開啟檔案 /etc/selinux/config:
# vi /etc/selinux/config
找到以下一行:
SELINUX=enforce
改成:
SELINUX=disabled
另外將 “SELINUXTYPE=targeted” 加上註釋, 改成這樣:
# SELINUXTYPE=targeted
儲存後離開編輯器, 需要重新開機設定才會生效。
要檢查 SELinux 的狀態, 執行 sestatus 指令便可以看到:
# sestatus
關閉 Firewalld 防火牆:
關閉 Firewalld 防火牆指令:
# systemctl stop firewalld.service
設定下次開機不會啟動 Firewalld 防火牆
# systemctl disable firewalld.service
2017年8月31日 星期四
大內存機器減少workstaion I/O 讀寫方法
純文字精簡版打開.vmx文件
添加下面內容
windows
OS (安裝workstation
的OS):
----------------------------------------------
MemTrimRate
= "0"
mainMem.useNamedFile
= "FALSE"
sched.mem.pshare.enable
= "FALSE"
prefvmx.useRecommendedLockedMemSize
= "TRUE"
--------------------------------------------
Linux
OS (安裝workstation
的OS)
----------------------------------------------
MemTrimRate
= "0"
mainmem.backing
= "swap"
sched.mem.pshare.enable
= "FALSE"
prefvmx.useRecommendedLockedMemSize
= "TRUE"
--------------------------------------------
2017年8月20日 星期日
vmware workstation 12.5.7 install vsphere6.5、vcsa6.5 and VMware vSphere Replication 6.5.1 心得....
vsphere 6.5後已經沒有client,只有web,6.5注重DNS,故要安裝AD,之後安裝VMware-VMRC-10.0.1-5898794.msi,再裝esxi6.5,只要下一步即可解決,IP設一設就好。
在安裝vcsa6.5,因為只有ISO檔案,必須開啟ISO在vcsa目錄下VMware-vCenter-Server-Appliance-6.5.0.10000-5973321_OVF10.ova取出即可deploy,這是workstation作法,正式使用時直接掛載ISO執行\vcsa-ui-installer\w32\install.exe,deploy後在目錄下開啟*.vmx將以下文字加入。
guestinfo.cis.deployment.node.type = "embedded"
guestinfo.cis.appliance.net.addr.family = "ipv4"
guestinfo.cis.appliance.net.mode = "static"
guestinfo.cis.appliance.net.pnid = "192.168.1.250"
guestinfo.cis.appliance.net.addr = "192.168.1.250"
guestinfo.cis.appliance.net.prefix = "24"
guestinfo.cis.appliance.net.gateway = "192.168.1.254"
guestinfo.cis.appliance.net.dns.servers = "192.168.1.1"
guestinfo.cis.appliance.root.passwd = "Txxxxxxx@"
guestinfo.cis.appliance.ssh.enabled = "True"
guestinfo.cis.deployment.autoconfig = "True"
guestinfo.cis.appliance.ntp.servers = "192.168.1.1"
guestinfo.cis.vmdir.password = "Txxxxxxx@"
guestinfo.cis.vmdir.site-name = "vc"
guestinfo.cis.vmdir.domain-name = "sct.com"
guestinfo.cis.ceip_enabled = "False"
在安裝vcsa6.5,因為只有ISO檔案,必須開啟ISO在vcsa目錄下VMware-vCenter-Server-Appliance-6.5.0.10000-5973321_OVF10.ova取出即可deploy,這是workstation作法,正式使用時直接掛載ISO執行\vcsa-ui-installer\w32\install.exe,deploy後在目錄下開啟*.vmx將以下文字加入。
guestinfo.cis.deployment.node.type = "embedded"
guestinfo.cis.appliance.net.addr.family = "ipv4"
guestinfo.cis.appliance.net.mode = "static"
guestinfo.cis.appliance.net.pnid = "192.168.1.250"
guestinfo.cis.appliance.net.addr = "192.168.1.250"
guestinfo.cis.appliance.net.prefix = "24"
guestinfo.cis.appliance.net.gateway = "192.168.1.254"
guestinfo.cis.appliance.net.dns.servers = "192.168.1.1"
guestinfo.cis.appliance.root.passwd = "Txxxxxxx@"
guestinfo.cis.appliance.ssh.enabled = "True"
guestinfo.cis.deployment.autoconfig = "True"
guestinfo.cis.appliance.ntp.servers = "192.168.1.1"
guestinfo.cis.vmdir.password = "Txxxxxxx@"
guestinfo.cis.vmdir.site-name = "vc"
guestinfo.cis.vmdir.domain-name = "sct.com"
guestinfo.cis.ceip_enabled = "False"
存檔後開機,vcsa會比較久,之後開啟瀏覽器打https://vcsa IP:5480繼續安裝,之後開啟https://vcsa IP 左下角出現 下載增強型驗證外掛程式 安裝
VMware-EnhancedAuthenticationPlugin-6.5.0.exe,將esxi加入,若要安裝VMware vSphere Replication 6.5.1一定要先安裝DNS主機,否則在deploy時出現 傳送失敗:OVF描述元不可用。
以下是安裝vcsa6 一些問題,6.5就比較沒問題
在vcsa6光碟片執行vcsa-setup.html
會告知安裝用戶端整合外掛程式
在光碟片目錄vcsa中安裝VMware-ClientIntegrationPlugin-6.0.0-4911605.exe
安裝過程如果有error,請將防毒軟體關閉,安裝後再啟用防毒軟體
在vcsa6光碟片找不到ova等
在VMware-VCSA-all-6.0.0-5326177.iso中的vcsa目錄的vmware-vcsavmware-vcsa檔案解壓成vmware-vcsa.ova
即可在workstation deploy vcsa
deploy後開啟***.vmx
將以下資料複製上
安裝VMware vSphere Replication出現
Server returned 'request expired' less than 0 seconds after request was issued, but it shouldn't have expired for at least 600 seconds.
表示esxi、vcsa、vmware replication 時間不對
esxi時間-->隨主機一起啟動和停止,NTP開啟
vcsa時間-->etc/utc,時間同步-->主機
vmware replication 時間-->asia/taipei
VMware-EnhancedAuthenticationPlugin-6.5.0.exe,將esxi加入,若要安裝VMware vSphere Replication 6.5.1一定要先安裝DNS主機,否則在deploy時出現 傳送失敗:OVF描述元不可用。
以下是安裝vcsa6 一些問題,6.5就比較沒問題
在vcsa6光碟片執行vcsa-setup.html
會告知安裝用戶端整合外掛程式
在光碟片目錄vcsa中安裝VMware-ClientIntegrationPlugin-6.0.0-4911605.exe
安裝過程如果有error,請將防毒軟體關閉,安裝後再啟用防毒軟體
在vcsa6光碟片找不到ova等
在VMware-VCSA-all-6.0.0-5326177.iso中的vcsa目錄的vmware-vcsavmware-vcsa檔案解壓成vmware-vcsa.ova
即可在workstation deploy vcsa
deploy後開啟***.vmx
將以下資料複製上
安裝VMware vSphere Replication出現
Server returned 'request expired' less than 0 seconds after request was issued, but it shouldn't have expired for at least 600 seconds.
表示esxi、vcsa、vmware replication 時間不對
esxi時間-->隨主機一起啟動和停止,NTP開啟
vcsa時間-->etc/utc,時間同步-->主機
vmware replication 時間-->asia/taipei
2017年8月8日 星期二
VSPHERE WEB CLIENT 顯示特定語言
vSphere web client 瀏覽器內定為中文,若要改為英文必須改成為:
https://vcenter IP/vsphere-client/?locale=en_US
中文為https://vcenter IP/vsphere-client/?locale=zh_TW
2017年8月2日 星期三
vmware esxi 4.1 安裝windows 7 cpu選4核,出現2核?
vmware esxi 4.1 安裝windows 7 cpu選4核,出現2核?
之後再文獻找
https://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.vmadmin.doc_41/vsp_vm_guide/configuring_virtual_machines/t_configure_multicore_cpus.html
在edit settings-->options-->general-->configuration 增加1行
cpuid.coresPerSocket 值為 2
重開機後在工作管理員會出現4cpu
之後再文獻找
https://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.vmadmin.doc_41/vsp_vm_guide/configuring_virtual_machines/t_configure_multicore_cpus.html
在edit settings-->options-->general-->configuration 增加1行
cpuid.coresPerSocket 值為 2
重開機後在工作管理員會出現4cpu
訂閱:
文章 (Atom)