Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hci][esxi] changes to use esxi as hci node
- Loading branch information
Showing
9 changed files
with
111 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Emulating an SSD Virtual Disk in a VMware Environment](https://www.virtuallyghetto.com/2013/07/emulating-ssd-virtual-disk-in-vmware.html) | ||
[Sample configuration of virtual switch VLAN tagging](https://kb.vmware.com/s/article/1004074) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Userful Knowledge Base | ||
- [Performance Best Practices for VMware vSphere 6.7](https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/vsphere-esxi-vcenter-server-67-performance-best-practices.pdf) | ||
- [Best Practices for Performance Tuning of Telco and NFV Workloads in vSphere](https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/vmware-tuning-telco-nfv-workloads-vsphere-white-paper.pdf) | ||
- [VMware vCloud NFV 3.0](https://docs.vmware.com/en/VMware-vCloud-NFV/3.0/vmware-vcloud-nfv-30.pdf) | ||
- [Hyperthreading and ESXi Hosts](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-3362A2E9-AB03-4C10-B9A1-3E6CA78D399B.html) | ||
- [What is PreferHT and When To Use It](https://blogs.vmware.com/vsphere/2014/03/perferht-use-2.html) | ||
- [Assign a Virtual Machine to a Specific Processor](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-F40F901D-C1A7-43E2-90AF-E6F98C960E4B.html) | ||
- [Backing Guest vRAM with 1GB Pages](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-F0E284A5-A6DD-477E-B80B-8EFDF814EE01.html) | ||
- [Associate Virtual Machines with Specified NUMA Nodes](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-A80A6337-7B99-48C8-B024-EE47E2366C1B.html) | ||
- [Checking cpuinfo information on an ESXi host](https://kb.vmware.com/s/article/1031785) | ||
- [VMware vSphere - Why checking NUMA Configuration is so important!](https://itnext.io/vmware-vsphere-why-checking-numa-configuration-is-so-important-9764c16a7e73) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Make sure Subscription is done | ||
# Make sure packages can be downloaded | ||
|
||
subscription-manager attach --pool 8a85f99c6e417e37016e6c2fb8180766 | ||
|
||
subscription-manager repos \ | ||
--disable "*" \ | ||
--enable rhel-8-for-x86_64-baseos-rpms \ | ||
--enable rhel-8-for-x86_64-appstream-rpms \ | ||
--enable rhel-8-for-x86_64-supplementary-rpms \ | ||
--enable codeready-builder-for-rhel-8-x86_64-rpms | ||
|
||
dnf makecache | ||
|
||
dnf upgrade -y | ||
|
||
dnf install -y ipmitool lsof tcpdump vim git | ||
|
||
dnf install -y python3-virtualenv python3-libvirt libvirt-devel gcc make | ||
virtualenv /root/vBMC | ||
source /root/vBMC/bin/activate | ||
pip install --upgrade pip | ||
pip install virtualbmc==1.6.0 | ||
firewall-cmd --zone=public --permanent --add-port=623/udp | ||
firewall-cmd --reload | ||
|
||
# Do not accept forwarded locale | ||
sed -e 's/^\(AcceptEnv LANG.*\)/#\1/g' -e 's/^\(AcceptEnv LC_.*\)/#\1/g' -i /etc/ssh/sshd_config | ||
systemctl restart sshd | ||
|
||
echo "## REBOOT THE vBMC PROXY PLEASE ##" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
_ESXiCONNECTION="--libvirt-uri esx://192.168.178.13/?no_verify=1 --libvirt-sasl-username root --libvirt-sasl-password Diablo1108!" | ||
|
||
source /root/vBMC/bin/activate | ||
|
||
ip addr show ens192 | grep -q "192.168.178.25/24" || ip addr add 192.168.178.25/24 dev ens192 | ||
ip addr show ens192 | grep -q "192.168.178.26/24" || ip addr add 192.168.178.26/24 dev ens192 | ||
ip addr show ens192 | grep -q "192.168.178.27/24" || ip addr add 192.168.178.27/24 dev ens192 | ||
ip addr show ens192 | grep -q "192.168.178.28/24" || ip addr add 192.168.178.28/24 dev ens192 | ||
ip addr show ens192 | grep -q "192.168.178.29/24" || ip addr add 192.168.178.29/24 dev ens192 | ||
ip addr show ens192 | grep -q "192.168.178.30/24" || ip addr add 192.168.178.30/24 dev ens192 | ||
|
||
vbmcd | ||
|
||
vbmc show CEPH0 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.25 --port 623 ${_ESXiCONNECTION} CEPH0 | ||
vbmc show CEPH1 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.26 --port 623 ${_ESXiCONNECTION} CEPH1 | ||
vbmc show CEPH2 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.27 --port 623 ${_ESXiCONNECTION} CEPH2 | ||
vbmc show CTRL0 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.28 --port 623 ${_ESXiCONNECTION} CTRL0 | ||
vbmc show CTRL1 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.29 --port 623 ${_ESXiCONNECTION} CTRL1 | ||
vbmc show CTRL2 2>/dev/null || vbmc add --username root --password calvin --address 192.168.178.30 --port 623 ${_ESXiCONNECTION} CTRL2 | ||
|
||
vbmc show CEPH0 | grep status | grep -q running || vbmc start CEPH0 | ||
vbmc show CEPH1 | grep status | grep -q running || vbmc start CEPH1 | ||
vbmc show CEPH2 | grep status | grep -q running || vbmc start CEPH2 | ||
vbmc show CTRL0 | grep status | grep -q running || vbmc start CTRL0 | ||
vbmc show CTRL1 | grep status | grep -q running || vbmc start CTRL1 | ||
vbmc show CTRL2 | grep status | grep -q running || vbmc start CTRL2 | ||
|
||
ipmitool -H 192.168.178.25 -U root -P calvin -p 623 -I lanplus power status | ||
ipmitool -H 192.168.178.26 -U root -P calvin -p 623 -I lanplus power status | ||
ipmitool -H 192.168.178.27 -U root -P calvin -p 623 -I lanplus power status | ||
ipmitool -H 192.168.178.28 -U root -P calvin -p 623 -I lanplus power status | ||
ipmitool -H 192.168.178.29 -U root -P calvin -p 623 -I lanplus power status | ||
ipmitool -H 192.168.178.30 -U root -P calvin -p 623 -I lanplus power status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters