Wednesday, December 7, 2011
VMXNET 3: Supported Guest Operating Systems
Sunday, July 17, 2011
Changing IP and VLAN on host - no VM downtime
- Enter maintenance mode
- Update the DNS entry on the DNS server
- Log on to the vCenter server and flush the DNS: ipconfig /flushdns
- Go to ILO, DRAC or something similar for the host (you will loose remote network connection when changing the IP) and change the IP (use this KB article for inspiration): [root@server root]# esxcfg-vswif -i a.b.c.d
-n w.x.y.z vswif0 , where a.b.c.d is the IP address and w.x.y.z i s the subnet mask. - Change the VLAN id (in this case VLAN 12): esxcfg-vswitch -v 12 -p 'Service Console' vSwitch0
- Change gateway: nano /etc/sysconfig/network
- Change DNS servers: nano /etc/resolv.conf
- Restart network: service network restart
- Ensure that gateway can be pinged
- Update the NTP server from the vSphere client if needed.
- Continue the process with next host in the cluster
Changing hostname from the service console
The easiest way to change the hostname is via the vSphere client (see this post for changing IP address and VLAN IP). If, however, this is not an option for some reason, the hostname can be changed from the service console the following way:
This KB article actually explains most of the proces which includes:
-----------------
1. Open the /etc/hosts file with a text editor and modify it so that it reflects the correct hostname.
2. To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
3. For the changes to take place, reboot the host or restart the network service with the command:
[root@server root]# service network restart
Note: This command breaks any current network connections to the Service Console, but virtual machines continue to have network connection.
------------------------------
I have experienced that after a reboot, the changes are reset and the hostname is changed back to the original one. To avoid this, there is one more step to be performed (before reboot):
Change the /adv/Misc/HostName parameter in /etc/vmware/esx.conf file (see screendump)
Tuesday, June 28, 2011
Error during upgrade: The system call API checksum doesn’t match
On the ESX 4.0 host: Error during version check: The system call API checksum doesn’t match"
On the ESX 4.1 host: Vmkctl & VMkernel Mismatch,Signature mismatch between Vmkctl & Vmkernel
You can ignore the messages.
Workaround: Reboot the ESX 4.1 Update 1 host. "
Tuesday, June 21, 2011
Used network ports between ESX, vCenter, and the vSphere client
- A link to my previous post with a network diagram
- Link to VMware KB article about used ports for a vSphere environment and related components
- vMotion between networks requires TCP port 8000
- If searching and sorting VMs in the vSphere client is slow, then ensure that port 8443 TCP is opened between the vSphere client and the ESX hosts
- If hardware status tab is not available, then ensure that port 8443 TCP is opened between the vSphere client and the vCenter server
- In vCenter 5.x, if searching and sorting VMs in the vSphere client is slow then port 10443 TCP has to be opened between the vSphere client/client PC and the vCenter server (also, opening this port is required for viewing VM inventory across linked mode vCenter servers - for v5.1)
- If you can't get a remote console on the VMs (you get a black screen and a yellow bar in the top stating some sort of MKS error) ensure that port 903 (and 902) TCP is allowed from the vSphere client and to the ESX hosts
- If an ESX host keeps disconnecting in vCenter, ensure that port 902 UDP is allowed from the ESX host to the vCenter
Source
|
Destination
|
Direction
|
Protocol
|
Port
|
Purpose
|
vCenter
|
ESX
|
In/out
|
TCP
|
902
|
VMware console
|
vCenter
|
ESX
|
In/out
|
TCP
|
903
|
VMware console
|
vCenter
|
ESX
|
In/out
|
TCP
|
443
|
HTTPS
|
vCenter
|
ESX
|
In/out
|
TCP
|
22
|
SSH
|
vCenter
|
ESX
|
In/out
|
TCP
|
80
|
HTTP
|
vCenter
|
ESX
|
In/out
|
TCP
|
161
|
SNMP
|
vCenter
|
ESX
|
In/out
|
TCP
|
5989
|
CIM
|
ESX
|
vCenter
|
out
|
UDP
|
902
|
Heartbeart
|
Tuesday, May 10, 2011
vSphere Network Ports Diagram

Tuesday, February 8, 2011
ESX 4.1 install error on BL460c G7 - NIC driver fails to load
- Upload the ISO file to where you have the ESX installation image
- On the Custom Drivers page in the wizard, choose Yes and click on Add. It will tell you to load the driver CD (see picture below)
- Unmount the ESX installation CD and mount the driver ISO in stead. This can be done without interrupting the installation. You will be prompted to verify the custom driver package, click OK (see picture below)
- That's it. at a later stage in the wizard, you will be prompted to reinsert the installation ISO. Do that when prompted.


Thursday, July 8, 2010
Disaster recovery: Procedure in case of site failure
| 1. | Log into vCenter and verify whether or not storage is available for the cluster. If storage is unavailable, create an incident ticket for the storage group with priority urgent and with a request to: “Manually break the mirror for the “"Customer X" replicated storage group” used by ESXA and ESXB” The ticket should be followed by a phone call to the storage day/night duty to notify of the situation. | |
| 2. | When mirror has been broken, rescan remaining hosts in the cluster. This rescan can possibly time out. If this happens, reboot the hosts. After the rescan/reboot all shared LUNs will be missing on the hosts. These should be added/mounted manually from the console (step 3) (in ESX4u1 there's a bug in the add "storage" wizzard, so it doesn't work from the vSphere client, see this post for more info) | |
| 3. | Putty to each of the hosts and run the following commands: #esxcfg-volume –l This will list available volumes. For each volume, run the following command: #esxcfg-volume –M For example: #esxcfg-volume –M PSAM_REPL_001 See screendump below for ![]()
| |
| 4. | From the vSphere client, for each of the available hosts go to Configuration -> Storage and click “Refresh”. Verify that all LUNs appear as before the site failure | |
| 5. | Power on all VMs | |
| 6. | Done. In this situation, storage will run from the secondary site. The storage group will be able to reverse the replication seamlessly at a later stage when failed site is operational again. This does not require involvement from the VMware group. | |
Thursday, January 14, 2010
Finally the VCP4 certification Welcome Kit arrived
Friday, October 2, 2009
VTSP 4 certified
The achieve this certification, you need to pass six online tests which you can take at your own pace. These are available through Partner Central. There are self study guides with each test. We received a nice and sweet offer from our distributor to get a two day training session so we got it handled quick and easy...
Saturday, September 5, 2009
I passed the VCP 4 beta exam!
Tuesday, August 11, 2009
Access rights and permissions in vSphere
An example could be that a given user, 'UserA', has administrator rights at the top level (Hosts and Clusters) and then at a lower level (let's say at Datacenter level), a given security group, Group1, in which UserA exists is given, let's say, 'Virtual Machine User' rights. This will decrease the permissions for UserA on that datacenter to only Virtual Machine User in stead of Administrator - he cuts the tree under himself, so to speak.
The consequence can be that in stead of risking this scenario of suddenly losing access rights when groups are added, then security groups are not used at all, only single users are added. This is not a problem when only a few users needs acces to the vCenter or VirtualCenter. However, if many users need access, e.g. 20-40 employees, it gets rather complex to manage.
To be absolutely sure how these permissions work, I have done a bit of testing on both vCenter and VirtualCenter.
Test cases
First of all, permissions seem to work identically in both versions, that is VI3 (VirtualCenter) and vSphere (vCenter). Furthermore, when permissions are changed in vCenter, then they are applied more or less instantaneously. So if you change or configure permissions for a user that has the vSphere client open, then the changes will appear to the user at the same time while he has the vSphere client (or VI Client) open (this makes it nice and easy for testing purposes, by the way...)
If the administrator role is assigned to UserA at the Hosts and Clusters level, and then he is assigned less permissions at a lower level (e.g. at a given Cluster), then the less permisssions on that lower level will win.
It works the same way the other way around, if UserA has 'Read only' on Host and Clusters and Administrator rights at a given Datacenter, then UserA will have full rights on that Datacenter and read only on the rest of the virtual environment.
If UserA has Administrator rights at the Hosts and Clusters level and at the same time a group to which UserA belongs is added with Read only to the same level - the interesting question is which of the two different permision levels will UserA be granted, Administrator (as a single user) or Read only (as he belongs to the group)?
The answer is that the highest defined permissions defined at a given level for a user will win. In the case UserA will have administrator rights at hosts and clusters level.
Administrators group
Another thing to be aware of is that Windows Administrators on the vCenter server are automatically added as administrators in vCenter. If you do not intend to give all of your Windows admins full acces to your VMware environment, then remove the 'Administrators' group from vCenter (in stead, you can add the local administrator user a an administrator in vCenter, so you have the possibility to log in with a local account should AD fail..)
Security groups or Distribution lists
Only security groups defined in Active Directory (AD) can be used as groups in vCenter. Distribution lists won't work.
Recommendations for managing users
In regards to the use of groups for managing users in vCenter, I recommend that groups are used at the hosts and clusters level (of course, this can vary greatly depending on your setup). For example, you could have three groups:
- VMware admins (Administrator)
- VM admins (Deploy/destroy rights, change VM specs, etc.)
- Windows admins (console access to the VMs, similar to ILO access on physical servers)
Even though a VMware admin belongs to several groups, as long as these are defined at the same level, then he/she will retain administrator rights.
By using security groups, then the VMware admins won't have to manage user administration on the VMware environment. When a user is added to a given group in AD (this should be handled by your user administration department or system), then he automatically gets access to vCenter.
For more info, see Basic System Administration guide pp. 213-230 on VMware.com.
Thursday, July 23, 2009
Links to VMware documentation
Product Interoperability Matrixes
http://partnerweb.vmware.com/comp_guide2/sim/interop_matrix.php?
Thursday, July 16, 2009
VCP4 Beta exam
The exam was quite tough, there were more questions than there will be in the final test. Because I'm a non-native English speaker, I got an extra 30 minutes. But still, 270 minutes is not much for 270 questions! That's one question per minute for 4½ hours straight and no breaks... The exam is covered by the NDA so I can't go into details, but I'm glad I reviewed the configuration maximums and then I should have spent more time on resource management (resource pools), iSCSI, paravirtualization, NPIV, and storage.
For study material, I've used:
- What's New in VMware vSphere 4 book (that you get on the what's new training course)
- VCP4 exam blueprint
- vSphere documentation bundle
- misc info on professionalvmware.com
- Simon Long's practice exam
Saturday, June 6, 2009
Howto: 101 Scripting ESX server installation on vSphere 4
First off, I recommend that you download the ESX and vCenter Server Installation Guide and read pp. 43-58 on scripting installations. This documentation helped me to get started more than posts on the web.
On ESX 4, there are two built-in scripts that you can run when you boot the installation CD: 'ESX scripted install to first disk' and 'ESX scripted install to first disk (overwrite VMFS)'. But that's a little boring as these scripts can't be modified.
Tuesday, June 2, 2009
New memory hot add feature in vSphere 4
- Make sure the virtual machine hardware is upgraded to version 7 (right click the VM, choose 'Upgrade Virtual hardware', see below).
- Go to edit settings for the VM, then the options tab -> Memory/CPU hotplug and enable the two features (see below).
Update 2013.07.23: The CPU hot add will auto register the new CPUs in the guest OS for win2k8 R2 Datacenter and Enterprise edition (at least in vSphere 5), see compability chart here. Not for Standard edition. See demonstration here.
Saturday, May 30, 2009
Top VMware blogs and sites - in short
Sunday, May 24, 2009
Visio stencils for VMware - icons and diagrams
Maish Saidel-Keesing over at Technodrone has taken it upon him to convert these icons and diagrams into a set of Visio stencils which will give you all you need for making boss friendly diagrams (latest update 2012.06.11). These stencils are compatible with Visio 2010.
The VMware Visio stencils can be downloaded here.
A new set of VMware View stencils has been release on 2012.09.17 by Joshua Townsend at vmtoday.com

