Archive for category VMware
VMWare VCP 5.0 MindMap (XMind) Study Aid
I’m currently in the throws of revising for my next VCP examination. Namely the VCP510. As you know, if your currently studying for the exam, the cut off for current VCP4s is the 29th February 2012. After that, you will have to complete the vSphere 5.0 ICM course prior to taking the VCP510 exam.
Anywho, I have been using a MindMap to help with my studies. I basically add notes/links to each section as I go to remind myself of the different content I need to remember and to link out to sites directly from each section of the blueprint as and when necessary.
The MindMap I have uploaded here is the barebones MindMap of the VCP510 Exam Blueprint v1.4 produced by VMware end of last year. Its yours for free, and I hope anyone that downloads it finds it useful in their respective studies.
Best of luck to anyone currently studying for the VCP5.
Here is the link to the MindMap in XMind format – VCP5
VCAP-DCA MindMap Study Guide – Uber Edt.
Over at virtualnoob Chadwick has created what can only be called an uber study guide to assist with the VCAP-DCA exam.
It’s size isn’t for the faint of heart, the offline version clocking on at over a gig, but apparently work is progressing on an online version of the guide.
Full respect to him for doing this for the community.
Here’s the link for those that are interested.
Merry Christmas to all.
How To: Syslog to Splunk from ESX/ESXi hosts using VMWare Management Appliance (vMA), Vilogger and Splunk Lightweight Forwarding
This is certainly not a topic that hasn’t been covered elsewhere on the internet. But, In this article I’d like to show you a slightly different take on the setup.
But first, a bit of history as to why I’ve decided to use the vMA + Splunk Light Forwarder.
Up until recently we have been pointing all our vSphere ESX and ESXi hosts directly at a Splunk installation. As this is a free installation we soon run over the 500mb/day quota. I very much wondered if there was a way to filter the syslogs prior to them hitting the Splunk instance so as to reduce the size if the resultant indexes on Splunk. Not to subvert any licensing, but just to be able to control what logs are going to the Splunk. By using the Splunk light forwarder on the vMA it is possible to select which files are forwarded to the main instance of Splunk.
I stumbled on the ‘vMA + Splunk Awesomeness’ article (links at bottom of article) and Andy was doing some jiggery pokery in the inputs.conf on the Splunk light forwarder that was exactly what I was looking for. More on this later.
So, with the help of the three sites mentioned at the bottom of this article I set about setting up a vMA, Vilogger and Splunk Light Forwarding.
INSTALLATION AND CONFIGURATION OF THE vMA
- Install the vMA appliance – I won’t be covering the install, so here is a link to the documentation at VMWare
- BEFORE powering up, set the hard disk size to 15GB
- Configure the correct time zone
- Enter;
’ls /usr/share/zoneinfo/’
sudo /sbin/chkconfig ntpd on
sudo cp /usr/share/zoneinfo/Europe/<YOUR ZONE> /etc/localtime
sudo /etc/rc.d/init.d/ntpd restart
- Resize the /var/log
sudo fdisk -lsudo fdisk /dev/sdan,p,3,enter,t,3,8e,w <- commands to be entered into fdisksudo fdisk -lsudo rebootsudo pvcreate /dev/sda3sudo vgextend VolGroup00 /dev/sda3sudo vgdisplay | grep -i freesudo lvextend -L+10G /dev/VolGroup00/varsudo resize2fs -p /dev/VolGroup00/vardf -h
- Reboot the vMA
reboot
- Log back into the vMA and get a root bash
sudo bash
- Add the ESX/i host(s) you want to monitor
vifp addserver <hostname or ip of ESX/i server>
- List servers to confirm
vifp listservers
- Enable an added ESX/i host in vilogger. Default values can be changed, check the help by running ‘vilogger enable help‘
vilogger enable –server <ESXi hostname or IP> –numrotation 10 –maxfilesize 10 –collectionperiod 10
- Finally, check that vilogd is up and running, and if so, restart it
/etc/init.d/vmware-vilogd status
- If it isn’t then use;
/etc/init.d/vmware-vilogd start
- Give it a few moments and then check to see that logs are coming in from the ESX/i hosts. To do this;
ls -lrt /var/log/vmware/<ESX/i hostname or IP>
- If at any point you want to change the vilogger policy
vilogger updatepolicy –server <ESX/i hostname or IP> –numrotation 20 –maxfilesize 10 –collectionperiod 10
- Download the latest Splunk here. Make sure you pick the Linux distribution (32 bit)
- Copy the file to the vMA, I used WinSCP as I was using my Windows 7 machine.
- Get yourself a root bash prompt
sudo bash
- Install the Splunk into the vMA
rpm -i splunk-XXXXXX-.rpm
- Start the Splunk installation
/opt/splunk/bin/splunk start
- Change the web port. This step isn’t necessary, but I had an issue with connecting to port 8000 from my Windows 7 machine.
/opt/splunk/bin/splunk set web-port 8080
/opt/splunk/bin/splunk restart
- Enable Splunk at boot
/opt/splunk/bin/splunk enable boot-start
- Change the default local Splunk admin password
/opt/splunk/bin/splunk edit user admin -password NEW_PASSWORD -roles admin -auth admin:changeme
- Enable the Splunk Light Forwarder
/opt/splunk/bin/splunk enable app SplunkLightForwarder
- Add the log directory on the vMA that we want to Splunk monitor and some other configuration on how we deal with the logs.
vi /opt/splunk/etc/system/local/inputs.conf
[default] host = vma.<fqdn> [monitor:///var/log/vmware/] blacklist = vima recursive = no host_regex = /var/log/vmware/(\S+\/) [monitor:///var/log/vmware/] whitelist = messages.log whitelist = vmkwarning.log #blacklist = \.(gz|bz2|z|zip|log.[0-9])$ recursive = yes disabled = false host_regex = /var/log/vmware/(\S+\/)
- The above config will blacklist the vMA machine from being logged. It will also only forward messages.log and vmkwarning.log to the main Splunk instance.
- Add the forward server (main Splunk instance)
/opt/splunk/bin/splunk add forward-server <Splunk-server-IP_or_FQDN>:9997 -auth admin:<password>
- Restart Splunk
/opt/splunk/bin/splunk restart
Logs are now flowing in from the added ESX/i hosts and will be forwarded to a Splunk instance listed in the forward server configuration. The last thing to do now is configure the main Splunk instance to receive the logs from the vMA
CONFIGURING THE SPLUNK RECEIVER
- Fire up a browser to your main Splunk installation (http://<Splunk hostname or IP>:8000) and login
- Go to the Manager (top right)
- Go to Forwarding and receiving in the Data panel
- Click Configure receiving
- Select New and add port 9997
- Click back to search in the top left corner
TROUBLESHOOTING TIPS
Coming soon!
LINKS
The SLOG - Simon Long’s excellent blog - Enabling Vilogger
ESX Virtualisation Mag - vMA + Splunk article by Andy Grant
Resizing the vMA - VMWare site
Splunk for Linux installation documentation - Splunk documentation
vMA FIREWALL
http://www.vladan.fr/how-to-configure-vma-as-a-destination-of-esxi-log-files/
http://splunk-base.splunk.com/answers/8917/configured-but-inactive-splunk-2-splunk-forwards
Boomerang from VMware Labs gets an update to 1.1.0
Today Boomerang from VMware Labs got an update;
Updates in Version 1.1.0
- Added a search box that allows you to enter a VM name.
- Added a “Recently Used” section for VMs that you have recently connected to or performed power operations on. The number of days that the list encompasses is configurable in the preferences dialog.
- Added a confirmation dialog when performing power operations.
- Added logic to automatically append DNX suffixes when entering an unqualified server name.
- Added support for high-DPI configurations.
- Fixed a few rare crashes.
- Added a better error message when attempting to add a free ESXi server (license check failure).
- Stop
- Pause
- Restart
- And remote console direct to it
VCAP-DCA v2 MindMap Available for Download
So after a good few late nights work, here is the updated VCAP-DCA mindmap with lots of added content. The content is taken from the Sean Crookston Study Guide (Now in the hands of Damian Karlson).
I hope you find it useful for your studies.
Here is the zipped file - VCAP-DCA.
The contents include an .xmind file for use with XMind Mindmapping software.
Have good week.
VCAP-DCA MindMap Update
This is for those interested in the VCAP-DCA MindMap I put up last month.
I have been furiously working on an updated version including much more detail from the Sean Crookston Study Guide. As soon as I’m happy with version 2.0 I will post it up.
VMWare VCAP-DCA Study Guide MindMap
I’m currently studying for my next VMWare certification, the VCAP-DCA. Sean Crookston over at www.seancrookston.com created a fantastic study guide (amongst other great resource items) and so I decided to create a MindMap of the study guide.
It was created in XMind (A freeware application for Windows/Linux/MacOS) and is also compatible with the excellent Thinking Space app for Android.
Here is the XMind file VCAP-DCA in a zip.
VMWare VCP Exam Passed
Today, after countless hours and weeks of revision I have passed the VMware VCP 410 exam.
I completed the required course (I chose to do the VCP FastTrack – 5 day) about 3 weeks ago and have been revising for about 2 weeks or so whilst using vSphere as part of my day job.
Like most, prior to taking the exam I had been looking around for mock exams. Mainly because I wanted a feel for the level of understanding that was required from the exam. VMware have a mock exam on their site which, to be honest, doesn’t give a very accurate representation of the actual exam. One or two questions maybe, but mostly nothing like what you’ll see on the day.
I had also been using Simon Long’s site for VCP practise exams and this was pretty close. And I urge any potential VCP’ers to go check out his site.
Of all the reading I had to do I found the following documents/sites to be most useful;
- VMware vSphere Book Bundle – A 14mb zip file containing 13 highly detailed documents covering almost all areas of vSphere
- VMware vSphere library (Online) – Great for quick searches across the whole document library
- vReference PDF reference cards – Fantastic cards chock full of useful information (plenty of configuration maximums on these in a well laid out context)
- VMware KB Digest
- B3RG vSphere Learning Guide (PDF) – Fantastic guide that breaks out the VMware ESX blueprint and fills in the details.
I will add some more soon…
Good luck to any visitors considering or revising for a VCP, I wish you all the best.