Table of Contents

Cheatsheet VMware

Summary: A cheatsheet to collect various information regarding vmware products.
Date: 3 January 2025

VMware voor Linux

VMware tools:

On ESX, first mount the cdrom:

Turn off the vm , and set the cdrom to automatically connect as host device, as auto detect.

Click “Install VMWare Tools” menu option and issue the following commands:

cd /tmp
tar zxf /media/VMware\ Tools/vmware-linux-tools.tar.gz
cd /tmp/vmware-tools-distrib
./vmware-install.pl
Run tools: /usr/bin/vmware-toolbox

Install everything into /usr/local/bin

Installation SLES9 - double screens that are hard to read

Open

vi /boot/grub/menu.lst

eand remove “vga=0x332” from the linux kernel load line

Discover new disk on linux

After you've added a new disk to linux you can discover it by issuing 'rescan-scsi-bus.sh' as root:

# rescan-scsi-bus.sh
Host adapter 0 (mptspi) found.
Scanning SCSI subsystem for new devices
Scanning host 0 channels 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: VMware   Model: Virtual disk     Rev: 1.0
      Type:   Direct-Access                    ANSI SCSI revision: 02
Scanning for device 0 0 1 0 ...
OLD: Host: scsi0 Channel: 00 Id: 01 Lun: 00
      Vendor: VMware   Model: Virtual disk     Rev: 1.0
      Type:   Direct-Access                    ANSI SCSI revision: 02
Scanning for device 0 0 2 0 ...
NEW: Host: scsi0 Channel: 00 Id: 02 Lun: 00
      Vendor: VMware   Model: Virtual disk     Rev: 1.0
      Type:   Direct-Access                    ANSI SCSI revision: 02
0 new device(s) found.
0 device(s) removed.

It says 0 devices found but the new disk is still discovered and ready for partitioning.

Time Drifting op Linux guests

Step 1: Configure NTP

Open ntp.conf and add the following lines:

vi /etc/ntp.conf
server x.x.x.x prefer
tinker step 0

Stop, synchroniseer en start ntp:

/etc/init.d/ntpd stop
ntpdate x.x.x.x (repeat until the difference is less then 1 second)
/etc/init.d/ntpd start
ntpq -p (repeat until the reach is on 377)

Step 2: clock=pit


or

Step 3: Misc.TimerHardPeriod (on ESX)

Set to 333 or 250

Step 4: tools.syncTime

Turn on time synchronisation with the host in the VMware tools or the *.vmx config file.

Optional extra steps

Step 5: noapic nolapic nosmp

Step 6: NTP polling

Extra Time Commands

Sync the hardware clock with the system clock:

hwclock --systohc
# Check the hardware clock
hwclock --show

VMware General

If the boot screen goes too fast, F2 is the key to enter the BIOS/CMOS.

VMware Server port forwarding

I needed to be able to authenticate through LDAP on a virtual from the production network. Of course, vmware server does not support reverse NAT, so I took my chances on port forwarding… and it worked:

Invalid Link


Don't forget to press restart and apply when you've added port forwards.

Force Removal of VMware Tools

To uninstall and re-install VMware Tools: