Connect vCenter To ESX/ESXi Through MIP NATd IP

To make both connectivity to vCenter and clone operations function with NATd ESX service consoles:

1. In Vmware vCenter client, disable Vmware HA and DRS.
2. In Vmware vCenter client, disconnect the host. The VMs will continue to run.
3. Log in to the ESX service console via SSH and change to root.
$ ssh
$ sudo su –

1. Change the IP address in /etc/hosts to the public IP.
$ vi /etc/hosts
$ cat /etc/hosts
127.0.0.1 localhost
::1 localhost
33.33.22.22 esxhost.example.com esxhost

1. Verify the hostIP address is the public IP, and add preserveServerIp in /etc/opt/vmware/vpxa/vpxa.cfg .
$ vi /etc/opt/vmware/vpxa/vpxa.cfg


33.33.22.22

true

1. Restart the VPXA service.
$ service vmware-vpxa restart

1. Log out of the ESX service console.
2. In Vmware vCenter client, reconnect the host. You may need to re-enter the root user�s credentials.
3. In Vmware vCenter client, enable Vmware HA and DRS.

 

VMware ESX 4.0 to 4.1 Upgrade Error

When updated VMware ESX 4.0 to 4.1:

Host was not updated, no changes required.
Skipping bulletin ESX410-GA-esxupdate; it is installed or obsoleted.
Encountered error RunCommandError:
This is an unexpected error. Please report it as a bug.
Error Message – Command ‘[‘/usr/bin/vim-cmd’, ‘hostsvc/runtimeinfo’]’
terminated due to signal 6

Simply type: ldconfig

[ad#Google Adsense]

Set-ExecutionPolicy : Access to the registry key ‘HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell’ is denied.

When running VMware PowerShell CLI you receive this error:

Set-ExecutionPolicy : Access to the registry key ‘HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1ShellIdsMicrosoft.PowerShell’ is denied.

Right click powercli and click: “Run As Administrator”

Once powershell starts type this command:

Set-ExecutionPolicy RemoteSigned

VMware Virtual Machine Hosting

IPTABLES Tidbits

List off all the rules in order. This helps to see if an allow is overriding one of your denies:

iptables -nvL –line-numbers

Reject or Drop?

Drop means to drop everything at the interface and give no response. Best for port probes and the like.

Reject responds to the source. Best practices for TCP/IP

VMware Virtual Machine Hosting

NetApp “Broken Drives” Simulator

Mon Nov 29 17:38:05 PST [raid.assim.disk.nolabels:error]: Disk 0b.18 Shelf 1 Bay 2 [NETAPP X274_HPYTA146F10 NA03] S/N [V5Y692RA] has no valid labels. It will be taken out of service to prevent possible data loss.

You will receive a message similar to the above on the simulator.

Type these commands in the shell:

priv set diag

disk unfail -s v4.29

VMware Virtual Machine Hosting

Malware Protection Designed To Protect

VMware Virtual Machine Hosting

This is scumbag malware designed to take your machine hostage until you pay.

Here is the -quickest- way to eliminate this tediosity:

1. Register the scumware using this serial number: SL55J-T54YHJ61-YHG88

Once this is done it will allow you to now use your computer.

2. Open explorer and delete: C:Documents and SettingsAll UsersApplication Datadefender.exe

If the file is not there, search for: defender.exe and delete it.

3. Download SpyBot Search & Destroy and run it on your machine: http://www.safer-networking.org/en/download/

VMware Virtual Machine Hosting

FreeBSD ZFS Settings On i386 Hardware

VMware Virtual Machine Hosting

AMD64 Kernel FreeBSD machines are good about autotuning. i386, on the other hand, needs to be adjusted manually.

1. Rebuild your kernel
a. Disable/wipe all drivers you are not using or at least those you are highly unlikely to ever use.
b. Add: options KVA_PAGES=512
c. Recompile/Install new kernel

2. Add these parameters to /boot/loader.conf
a. vm.kmem_size=”1024M”
b. vm.kmem_size_max=”2048M”
c. vfs.zfs.arc_max=”256M”
d. vfs.zfs.vdev.cache.size=”40M”

This will get the machine online without it crashing with vm.kmem errors. ZFS will bring an untuned i386 machine down to its knees with kernel panics quickly!

Adjust the above variables to your tastes. My test platform is a Dual Xeon with 4GB of RAM.

VMware Virtual Machine Hosting