Category: vmware

HA configuration errors on virtualised ESX ESXi

If you are running a copy of workstation for your vsphere lab and you are encountering an error when trying to enable HA/DRS clusters then this is probably the issue.

When you create a ESX vm, vmware workstation autocreates a vm with 2GB’s of ram which is the lowest amount you can get away with to boot the hypervisor. However in order for HA to work you will need a minimum of 2300megs of ram (2.3GB) so shutdown your ESX/i vm and up the ram by 300megs or more and you will find that HA/DRS works correctly!

£99 vmware lab offer

Hi all,

I thought i’d alert you to a deal doing the rounds at the moment which HP are running, they are offering an HP proliant microserver at £199 with £100 cashback (making the server £99). The offer can be found here and the server is supplied with a 160GB hard disk 1GB ram and an Athlon 1300 processor and gigabit networking. Now obviously its not the most highly specced out of the box, but it does come with 4 sata connections and hardware support for RAID 0,1 which means that this could be a nice little vsphere lab server with little extra work, or you could stick freenas (or your own favourite media server OS) on it and have a nice small media server.

This deal runs to near the end of this year 2010 so hurry and snap one or two up.

updating ESXI 4 to 4.1 without update manager

Hi all,

So you have one or more esxi boxes at home doing various tasks and they are currently running esxi 4, your tempted to update to 4.1 but do not have update manager installed and do not want the hassle of configuring esxi again.

No Problem good old command line to the rescue again. To upgrade 4 to 4.1 you need the esxi 4.1 upgrade installation as a zip file and the vcli (vsphere command line interface) both are available from the vmware site (I wont post links as I dont know how quickly the links will age), Once you have downloaded the VCLI and installed it you will have a new program item in your start\programs\vmware folder called “vmware Vcli\command prompt”. Click on that and it will dump you in the the old familiar black and white screen. Ensure any vm’s on the server are either powered off or migrated and put the host into maintenance mode.

Navigate your way to the “bin” directory (currently “c:\program files\vmware\vsphere cli\bin” on my computer and run the following:

vihostupdate.pl –server 0.0.0.0 –install –bundle c:\zipfilelocation

Press return and enter the esxi servers admin credentials (probably the root account in a home environment.) in a few minutes the command will complete and tell you that it needs to reboot the server before the process finishes, do this and when it comes back up exit maintenance mode.

WARNING: Before updating be sure to have consulted the vmware HCL (hardware compatibility list) to ensure that your server is compatible with the version you are trying to install. If your server is not specifically listed then you can check out the individual components compatibility either through the hcl or the community driven hcl. the hcl is currently located HERE

Increasing the amount of concurrent Vmotions

Here’s a nice little tip which has helped my ESX production deployment no end. By default ESX 3.5 will only vmotion 2 guests at a time which if you have a few on the host can add up a bit of time. It can also cause update manager to fail if the vmotion of the guests takes too long.

Simply change the vpdx.cfg file (normally in c:\docs & settings\all users\app data\vmware\vmware virtualcenter ) file on your vcenter server to the value you desire and restart the virtualcenter service.

The change is required inbetween the <vpdx></vpdx> marker tags and you will need to insert the following:

<ResourceManager>

<MaxCostPerHost>16</MaxCostPerHost>

</ResourceManager>

Now the trick with this is to decide what you want the max cost to be and as usual there is a little light maths involved:

A Hot Migration = 4

A Cold Migration = 1

So if you wanted 4 hot migrations to run concurrently then you would need to add 16 as the max cost. As with all fiddling with production servers you should make a backup of the vpdx.cfg file first before making any changes and then make small changes to the max cost ensuring nothing is honking during the migrations.

Deploying ESX4 VSphere guide

Those lovely people over at Xtravirt have had this guide kicking around for a while now and its a brilliant read to get you up to speed with deploying VSphere whether you are a old hand at previous versions or a total newbie!

Check it out, its always worth saving this doc in your tech docs as you never know when it may come in handy!

LINKY

VirtualCenter 2.5 Min Hardware Requirements

VC 2.5 requires at least:

2Ghz Cpu

2GB ram

560MB hard drive space

Network Card (pref 1Gb)

The OS needs to be Windows 2000 server with sp4 or Windows server 2003 with sp1 or Windows Server 2003 R2 edition.

Supported databases are:

Oracle 9i

Oracle 10g

SQL Express 2005 (ment for non production or low count farms)

SQL 2005 with sp1

SQL 2000 with sp4

VMware High Availability

High availability or HA as I will call it from now on, is a feature of Virtual Center which allows for the automatic restart of VM’s in the event of a host failure.

For example if you had 4 ESX servers running 40 VM’s (10 on each). if one host goes pop then HA would detect the failure and restart the VM’s on the 3 remaining hosts. However of course whilst there is not a great deal of options to fiddle about with (most of them follow the same pattern)  you do have an important decision to make, which is if a host fails do you want to restart your VM’s or would you rather they stay down. This is basically is it more important that all the vm’s are up and running but possibly slower than normal, or would you rather some or all of the VM’s stay down until you have dragged yourself out of bed and into the office to fix the issue.

VMware HA Tab

HA can be enabled once you have created a cluster by right clicking on the cluster and selecting “Edit Settings”. The first screen you will see consists of 2 check boxes, one for enabling/disabling HA and one for enabling/disabling  DRS. The choice here is self-explanatory but you might want to spend a minute reading the couple of paragraphs on that page.

The next tab worth looking at is the Vmware HA tab there are 3-4 options here that you will need to consider.

The first option is Admission Control, within that setting is the options to set the number of host failures the cluster can tolerate this can be any number between 1-4. This by default is set to 2 and of course if you suddenly find yourself loosing 4 hosts in your cluster then you have a rather large problem on your hands. The next option is to prevent or allow the powering on of vm’s if they violate availability constraints. This means basically do you want to allow VM to be powered on even if the total number of configured memory resources exceeds the actual resources that the cluster provides.

Maths bit: You can work out your availability constraints by taking the amount of ram provided by your smallest ESX host (I.E, the one with the least amount of physical memory) and then find your vm with the most amount of configured memory and divide the ESX memory by the vm ram which will give you your figure of the amount of guest vm’s each host can have, any more than that and your availability constraints have been violated!

Example:

6 ESX Hosts smallest has 24 GB of ram largest amount of guest ram is 2GB and host failure is set to 1.

24/2×5=60
So if one host fails the total amount of virtual machines that can be powered on with violating availability constraints is 60. If you need any more than that then you will need to allow the vm’s to power on even though they violate the constraints.
The next setting is the default cluster setting, within the settings is the vm restart priority which is by default set to medium This setting is cluster wide but can be overridden at individual vm level. The configurable options for the restart policy are high, medium low and disabled. Clusters set to high have their vm’s restarted first, medium next and low last and disabled.. well you get the idea.
The next option down is the host isolation response setting, I’ve blogged about this before so I wont go into too much detail but it basically means when a host loses its network connection to other hosts in the cluster. Network connectivity is checked regularly by a heartbeat (ping). It is possible in vmware to have a situation where the host has lost its network connection to the other hosts in the cluster but the vm’s on that server are perfectly happy and working away normally. In previous updates of esx the default behaviour was to power off the vm which would leave HA to restart the vm’s on another server, However from U2 onwards this changed to leave vm powered on because you will find 9 times out of 10 just the service console is having issues and the vm’s are still working away quite happily.
The next option is “virtual machine monitoring” this again is an experimental feature which allows virtualcenter to monitor the tools installed on the vm’s (by using heartbeats in a very similar way to HA). You an enable this option and use the slider to adjust the sensitivity. Virtual machine monitoring does know when a vm has been purposefully shutdown or powered off so it will not be constantly restarting machines you are trying to shutdown.
The only button on this page is the Advanced Options which you should only make changes to this once you know what you are doing.
The sub tab of the HA options is “Virtual Machine Options” this allows you too specify different restart priority and host isolation response behaviours for individual vm’s. So you can effectively prioritize/delay or disable the restarting of individual vm’s should you deem appropriate.

Vmware common myths

I think this is a post that i will keep updating as i think of things, but i thought i would start out with nice easy ones to get going with.

Something that quite often happens with a new esx farm is the admins want to tentively vm a ‘low risk’ server thinking that its not the end of the world if it goes skyward.
This normally translates as a server that does not do much and has been sat in the corner of the server room for years banging away doing its thing. Now of course when its virtualized its given a whole new set of hardware that is years away from what its used too. This gets admins and users very excited as whatever that server used to do is now been given a massive boost in performance.

Virtualization is not about speed its about consolidation. As admins start virtualizing other boxes the old server may very well go back to about the speed it was before.

 

 

More to follow

Ramping up

Well I’m now starting to think about ramping up my vmware studying due to the oncoming 1st attempt at the exam. I do feel a bit more relaxed about it than previous exams, probably because I administer esx/vc loads at work but of course that doesnt mean I can take it easy. I’ve rebuilt my ESX lab at home using the eval versions of esx and VC I downloaded a while back. The only thing I had to re-register was for another evaluation version of VMware Workstation, otherwise I just used the ISO’s I had previously downloaded.

Anyway As I am studying and doing test’s I shall put up various musings on my way.

On a side note because I do not have a great deal of linux knowledge I am having quite a few problems virtualizing exisiting linux boxes. I am bookmarking interesting links to do with virtualization (methods including rsync etc), but so far have only managed to virtualize one linux box without too much trouble. This is kinda spurring me on to learn loads more linux stuff.

ESX ports

Well as most exams like you to memorise numbers I thought I’d put together this list of ports that are used within ESX, all of the ports here can be found in the firewall config in the Security Profile Configuration page on the host/virtual center.

Incoming connections

CIM Secure Server 5989 TCP

Outgoing

Licence Server 27000 27010 TCP

CIM SLP 427 UDP TCP Incoming and outgoing

AAM 2050-2250,8042-8045 Incoming and outgoing

Virtual Center Agent 902 UDP

Iscsi Client 3260 TCP

NTP Client 123 UDP

SSH 22 TCP Incoming and outgoing

VCB 443,902 TCP

Alot of these ports I’m sure you’ve all seen before its just really the vmware specific ports that you need to concerntrate on as I’m sure like most other exams I’ve taken they will want to test you on them.