unswap ESXi 6

unswap available on esxi6

# memstats -r vm-stats -u mb -s name:memSize:max:consumed:swapped
name memSize max consumed swapped
-----------------------------------------------------------
vm.6954 8172 2000 2000 6300

show you swapped size

name memSize max consumed swapped
-----------------------------------------------------------
vm.6954 8172 -1 2000 6300

to unswap 2GB of it use … Continue reading

check_esx.pl unter Nagios Installieren

1. download and place the check_esx.pl or check_esx3.pl in to /usr/local/nagios/libexec/
2. download and install VMware SDK API
3. install perl-Models with “yum install perl-M*”
4. run “cpan install Nagios::Plugin” or “perl -MCPAN -e ‘install Nagios::Plugin’”
5. “cd /usr/local/nagios/libexec/”
6. “su nagios”
7. “./check_esx.pl … Continue reading

Erweitern eines PV on VMware + Swap LV

1. expand on vmware the HDD Size

2. maybe restart the virtual machine
or run following command
echo „- – -“ > /sys/class/scsi_host/host0/scan

3. fdisk -l
fdisk /dev/sda

-l

Device          Boot      Start         End      Blocks             Id   System
/dev/sda1   *                1                 65      522081          83  Linux
/dev/sda2               … Continue reading

VMware Guest Time Synchronization on Linux Based Systems

first on edit your boot.conf:

default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.17-1.2187_FC5) root (hd0,0) kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=/dev/VolGroup00/LogVol00 clock=pit nosmp noapic nolapic initrd /initrd-2.6.17-1.2187_FC5.img

then check the configuration on VMware tools to time synchronization Vcenter or direct on vmx file from Virtual Machine

tools.syncTime = "TRUE"

on 64bit Systems … Continue reading

udev messages on RHEL or CentOS Virtual Machines on ESX

After installing VMware Tools on a CentOS or RHEL  guest hosted on ESX-Server receiving the following udev warnings:
Starting udev:
udevd[572]: add_to_rules: unknown key ‘SUBSYSTEMS’
udevd[572]: add_to_rules: unknown key ‘ATTRS{vendor}’
udevd[572]: add_to_rules: unknown key ‘ATTRS{model}’
udevd[572]: add_to_rules: unknown key ‘SUBSYSTEMS’
udevd[572]: add_to_rules: unknown key … Continue reading