3

ESXi on old hardware Error 10 – Out of resources failed to malloc MMIO

At home I use a old Dell Precision T5600. It has 16 cores total with 128GB of memory and while old its still good for running multiple workloads via ESXi. In the 6.x days I had no issues with ESXi, however with 7.0 I now get the CPU is unsupported as well as many other warnings. However I was able to run 7.0 Update 2 build 17867351 without issues. When I first installed ESXi I used BIOS to install and to run it since it never worked with EFI and at the time I did not bother to figure out… Continue Reading

1

Google Cloud scripts

At work we use google cloud as our lab to stand up and take down instances. As I work, I noticed that I usually stand up the same type of instance and run the same post install all the time so instead of doing this manually I decided to create a script for the compute instance and another for the kubernetes cluster. Compute Instance gcp.sh – script to automate creating and deletion of compute instance script is located: https://github.com/jlim0930/scripts/blob/master/gcp.sh edit gcp_name & gcp_project to match your environment. Also zone and region as needed – The script will stand up a… Continue Reading

0

ESXi 7.x NutClient to query upsmon on Synology

After my last move I consolidated my home setup and now I am down to one synology for storage and one ESXi 7.x (currently 7.0u2d) host. I do have these two devices connected to a UPS but since UPS only has 1 USB port I needed a way to signal my two devices to power off in case of power outage. I plugged in the USB cable from the UPS to my synology NAS and configured the UPS. In the UI of synology goto Control Panel -> Hardware & Power -> UPS. Click on Enable UPS support and click on… Continue Reading

1

Update ESXi 7.x using esxcli

I run ESXi at home for my VMs. Since I only need and have 1 ESXi host I had no need to install vCenter to manage my ESXi host, however I do want to keep it updated and current. To follow all the updates for ESXi please view VMware KB 2143832 Below are the steps to take to keep your ESXi updated Turn off VMs and put ESXi into maintenance mode Reboot – OPTIONAL – this is an optional step but it never hurts to reboot before upgrading to clear things up. Enable ssh service – you will need to… Continue Reading

0

grub2 tips and tricks – CentOS/RHEL based

grub2 is vastly different from grub. Will post some tips and tricks.. list the current kernels on the OS # egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \’ Linux Server, with Linux 3.10.0-123.el7.x86_64 Linux Server, with Linux 3.10.0-123.4.4.el7.x86_64 Linux Server, with Linux 0-rescue-d3e0313c0f6d48a0bb72495d2x32r1 if your wanting to change the defautl kernel that the system boots into grub2-set-default # where the # is the line number starting with 0 if your just wanting to boot into a version of kernel just 1 time you can do grub2-reboot # where the # is the line number starting with 0 or if… Continue Reading

0

RHEL/Centos 7.x software raid LIVE! both LVM and standard partitions with grub2

Before getting started please read my previous post for RHEL/CentOS 6.x systems here. grub2 is vastly different than grub and I did not find any good solution of doing this on a live machine so lets get started. The setup will be the same as the previous post. make sure that the 2nd disk is added and now clone the partitions. You can also create partitions manually if you like or if you want to change the sizes of the partitions. [root@cent7 ~]# cat /proc/partitions major minor #blocks name 8 0 8388608 sda 8 1 1048576 sda1 8 2 7339008… Continue Reading

0

who is using the most memory

simple sort to show which application is using the most memory. ps -elf | awk ‘{print $10, $3, $4, $15, $16}’| sort -nr | head 572923 mysql 1246 /usr/libexec/mysqld –basedir=/usr 257775 root 6260 /usr/bin/python /usr/bin/fail2ban-server 176636 clamav 1086 clamd 146010 2001 27443 /usr/sbin/httpd 122691 apache 30546 /usr/sbin/httpd 121580 apache 27444 /usr/sbin/httpd 121410 apache 6437 /usr/sbin/httpd 121362 apache 6438 /usr/sbin/httpd 121223 apache 6439 /usr/sbin/httpd 121222 apache 6428 /usr/sbin/httpd in my case its mysqld.

3

Running the latest kernel CentOS7

I decided to start using the ML kernel for my kvm host for performance gains on my kvm guests. You can easily install the ML or the LT kernels easily on CentOS7 using the ELrepo. kernel-MT – mainline stable kernel kernel-LT – long term support kernel Steps: rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum remove kernel-headers kernel-tools kernel-tools-libs edit /etc/yum.repos.d/elrepo.repo and enable=1 the elrepo-kernel. change the ml to lt to install the long term support kernel. yum install kernel-ml.x86_64 kernel-ml-devel.x86_64 kernel-ml-headers.x86_64 kernel-ml-tools.x86_64 kernel-ml-tools-libs.x86_64 kernel-ml-tools-libs-devel.x86_64 time to get grub settled awk -F’ ‘$1==”menuentry ” {print $2}’ /etc/grub2.cfg it should list all… Continue Reading

0

Reset root password on RHEL/CentOS 7

much have changed since 4/5/6 days since RHEL/CentOS7 uses grub2 to boot. root password recovery is now very different than before. start/reboot the system and on the GRUB2 boot screen press the e key for edit. scroll down to the linux* line (could be linux/linux16/linuxefi) and remove rhgb and quiet and add init=/bin/sh to the end of the line. For some virtual hosts you might have to use rb.break instead of init=/bin/sh. Press CTRL-X to boot the system and it a shell prompt will be presented. Once booted the / filesystem will be in read only mode please issue mount… Continue Reading