Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

Wednesday, April 5, 2017

vSphere Data Protection End-of-Life (VDP EOL) & Goodbye 3rd Party Switches

Well, needing massive changes, VMware's vSphere Data Protection Appliance, even with the addition of the features from VDP Advanced, has proven no match for the plethora of backup Solutions currently on the market.

As a result they have announced the following:

vSphere Data Protection: End of Life


VMware is discontinuing VMware vSphere Data Protection (VDP), a general purpose backup product included with vSphere. VMware vSphere 6.5 is the last release which includes the VDP product.


All existing VDP installations with active Support and Subscription (SnS) will continue to be supported until their End of General Support (EOGS) date. Learn more.

Additionally, they have made this announcement about 3rd Party vSwitches:

Notify Customers: Update on vSphere 3rd Party vSwitch Support


VMware is discontinuing the third party virtual switch (vSwitch) program.

VMware will continue to support the 3rd party virtual switch APIs, and the enablement of a partner's use of these APIs up to the vSphere 6.5 Update 1 and prior vSphere versions, as long as an active support and subscription services contract exists.

All vSphere releases and vSphere 6.5 Update 1 will no longer have third party vSwitch APIs and third party vSwitches will no longer work. View these FAQs to learn more and encourage your customers to migrate to vSphere Distributed Switch using our free tool.

Wednesday, March 1, 2017

Restart VCSA 6.5 Install at Stage 2

Problem: For whatever reason, your install of, migration to or upgrade to VCSA 6.5 stops after completing Stage 1


While teaching class today, I had a student ask if they could restart their VCSA 6.5 installation after Stage 1.  I wasn't sure, so I did some research.

It turns out you can restart at Stage 2. 

All you need to do is access the new VCSA VM created in Stage 1 with:
 https://<VCSA_IP_or_FQDN>:5480
which will redirect to:
 https://<VCSA_IP_or_FQDN:5480/#/installer?locale=en

You will then be presented with the following screen.  Simply click on the appropriate choice to continue...


One reason a Stage 2 pre-upgrade check error may occur is if your source vCenter manages the cluster where you're deploying the new vCenter Server Appliance 6.5, you should specify an ESXi host on the following screen: 

Wednesday, July 8, 2015

Moving the VMware vCenter Server 4.x/5.x/6.0.x SQL database



A simple necessary task that isn’t so simple.  So the scenario plays out like this.  Customer is running vCenter, Update Manager and SRM databases on a SQL server that is running Windows 2003 with SQL 2005 – not extremely uncommon.  With the impending end of Windows 2003 looming we decide to migrate to Windows 2008 R2 and SQL 2008 R2.  

For the most part we followed KB 7960893 from VMware.

Now this KB will get you close, which is nice.  And what does close mean.  It means that we had databases up and running on the SQL server.  It means that we had ODBC connections that were connected and tested OK.  And then….It means that we couldn’t get the service to start – WTF.

So let’s look at the process and the final resolution.  First off it’s a pretty common task and I was doing this for a customer in their DR site, but it is something that everyone will run into at some time. 

Several steps in the process.

1.       Backup the databases on the old SQL server.  Simple enough go into SQL management studio right click the database and back it up.  Stop all of the VMware services on vCenter and SRM first.
2.       Copy the databases over to the new server – Really easy.
3.       Restore the databases to the new SQL server.
4.       Yeah this next step is a little harder.  Permissions.  We had to set the proper permissions.  The customer wanted to use a different service account and instead of having separate accounts for vCenter, UM, and SRM they wanted to use one account for all of them.  Not a huge deal, so whatever, let’s make it happen.  We used a local account in SQL with SQL server authentication.  We then granted dbo permissions to the vCenter, UM, and SRM databases.  You also have to give it dbo for the msdb database.  OK, all of this sounds pretty straightforward so far.
5.       Edit the vcdb.properties file to change the server name – Really easy.
6.       I didn’t update the SQL server agents just yet, because I didn’t care about performance statistics.
7.       Go to ODBC and ODBC32 on the vCenter server and change them to point to the new server and the correct database using the proper username and password.  Then test it.  BOOM, everything worked.  Start the vCenter and UM services up.  And…It failed.  WTF.

Troubleshooting Time

8.       So to do a little troubleshooting I looked in event viewer, got a whole bunch of nothing. 
9.       So what next?  I decided to start the vCenter service using the executable in standalone mode.  Open an administrative command prompt and the run vcdb –s.  Hmmm.  Interesting error.  Login failure and it was related to a DSN, which is telling me SQL login failure.  But the ODBC connections all tested positive.
10.   So I did a registry search and each of the 3 databases all have a section with a DB entry in it.  In that section I looked in there, and it still had the old entry for the name in there.  In the picture it is entry 2.  So I changed it.  DANG IT, the service still wouldn’t start.
11.   Well the line right below the username in the registry is the password hash for the old username, in the picture it is entry 3.  To change that password hash you have to go back to that administrative command prompt and run the vcdb –p command and then enter the new password twice.  And now.  BOOM the service starts.  WOO HOO.


12.   So now let’s start the Update Manager service.  It fails.  WTF.

13.   This was pretty easy.  I ran the Update Manager Utility and change the database in there and it started up fine after that.  Update Manager Utility is mentioned in KB 2011327, and it is located under Program Files (x86), because it is still a 32bit program, also have to update the ODBC32 as well.  So start the service and it worked.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2011327






14.   OK so now 2 of the 3 databases are connected and running.  Go to the SRM server and start that service up.  DANG IT, no go.  On to troubleshoot that.

15.   Went through several troubleshooting steps, and actually worked with VMware technical support, but since nothing was really set up in SRM we just did a full uninstall/reinstall.  It wasn’t pretty and if there had been any data on there I would have definitely taken the time to get it working, but…I didn’t so this was the easy way out.

So in a nutshell, it wasn’t as easy as I thought it would be.  But it is done, consulting is never quite as easy as it seems, but I still enjoy it.

Tuesday, April 16, 2013

Why Choose Certified Virtualization Expert (CVE) Over VMware Certified Professional (VCP)?

Written by:
Andrew Jones, MCSE, MCT, VCP 3/4/5, VCAP4-DCA, CVE 3/4/5


As an instructor for VMTraining Inc., some of the most common questions I get asked on the first day of class (other than “When’s lunch?”) are how does CVE compare to VCP? And which is more valuable?

The short answer is both have their own merits. VCP is directly from the software vendor, VMware®, while CVE is offered by a third-party, VMTraining, Inc.

To help illustrate some of the big differences and similarities, I’ve prepared the table below for your viewing pleasure:

VMware VCP VMTraining CVE
Requires course completion for award of certification? Yes Yes
Bootcamp-style course available? No Yes
On-Site Testing? Yes Yes
Other virualization technologies discussed? (Hyper-V, XenServer…) Yes Yes
Exam study guides provided? No (Not officially) Yes (Authorized and prepared by VMTraining)
Exam type? Closed book/notes/internet, multiple choice, multiple select, and true/false Closed book/notes/internet, multiple choice, multiple select, and true/false
Retake policy? Pay for re-take 1 no-cost retake, if needed, provided certain criteria are met

As you can see in the table, three of the biggest differences are VMTraining’s Bootcamp course, which covers in one week of training what VMware’s courses cover in as many as five weeks, in addition VMTraining provides not only the printed course material, but also a PDF study guide to help focus the students’ course of study, and perhaps most important, especially for those prone to pre-test jitters, VMTraining allows a no-cost retake if the student meets certain criteria, among the criteria is the instructor’s assessment of the student’s level of participation in the course.

In addition, VMTraining’s instructors aren’t paid by, nor do they receive any other types of compensation, from VMware. You know, when taking a VMTraining class, that when the instructors point to VMware as a superior product, they’re speaking candidly, not just looking to keep their job. (A big problem I’ve had with some vendor-provided training is just that: even if a competitor’s product is better in some ways, I’ve had instructors swear up and down that their employer’s product was better in every single way.)

I am prior active duty Air Force and spent my final 2 years as a Network Warfare instructor. I have friends from my active duty days who now work at VMware. To hear them talk, the upper echelons at VMware are, for lack of better words, scared of this CVE certification and the Bootcamp course. They are scared because it offers so much more, on a shorter timetable, and at a dramatically lower price, than their own VCP.

Now, I’m not going to sugarcoat it, the Bootcamp has the name for a reason: it is NOT easy. The training condenses as vast amount of information and hands-on labs into just 50 hours over a 5-day period. This is very much training by fire, to use an analogy from my days as a military trainer.

Which brings me to my next, and final, topic. The instructors. The instructors at VMTraining are, in my own not-so-humble opinion, some of the best in the business. Everyone from prior military instructors like myself, to former Microsoft Trainers, to those still active in the design and consulting world. What makes VMTraining unique is the information sharing among the instructors and the rapid development of courseware. Often times, the slides presented in a class already don’t match the books, printed just a week earlier, because new features and/or capabilities have been added. This ensures the information presented to students in class is the most up-to-date as possible.

There are a great many ways the CVE differs from VCP. I invite you to take the time to consider both (www.VMTraining.net and mylearn.VMware.com) and make the decision to best suit your own business needs. Lastly, if you should decide CVE is the direction you and you organization wish to take, tell them Andrew sent you.

Tuesday, March 26, 2013

VMTraining exceeds student expectations again!


VMTraining has again exceeded the limits of any normal training company! We have upgraded our datacenter to give students an even better experience than they are already used to. This upgrade was primarily focused on storage. We have setup every student server with 10GigE to the storage device! Did you hear that, 10GigE! You will not likely find another vendor in the market that is providing this level of hardware for a quality student experience. We have also added a state of the art Nimble SAN to keep up with our ever growing demand for real world, quality training. This SAN is one of the best in the market place today. 

Wednesday, March 20, 2013

3rd Party Tool Update: RVTools


RVTools is one of the best free tools on the market for finding and viewing information regarding your vSphere infrastructure and Rob de Veij has continued to improve upon this already useful tool. Rob recently released version 3.5, below is a short list of the changes. If you are not familiar with this tool you should check it out, it is very useful. There are many things I like to view with RVTools including the vHealth tab which can warn you of full hard drives or even zombie vmdk’s. Enjoy, send a thanks to Rob for his continued great work! You can download RVTools here: http://www.robware.net/

The recent updates include:

  • On vInfo tabpage new field: Resource pool
  • On vInfo tabpage new field: Consolidation needed.
  • On vCPU tabpage new field: Number of cores per socket
  • New tabpage with resource pool information
  • On vNetwork tabpage new column: Switch name
  • On vNetwork tabpage new column: Starts Connected
  • On vTools tabpage new column: required version
  • On vHost tabpage new columns: custom fields
  • On vDisk tabpage new columns: raw disk information
  • Improved error handling for SSO login problems
  •  Bug fix: Invalid snapshot size fixed
  •  Bug fix: All datetime fields now use the local time zone
  •  Bug fix: data not refreshed after changing filter 

Wednesday, March 6, 2013

Webinar Announcement – Is vSphere® the Best Hypervisor out there?


Who will have bragging rights? vSphere® or Hyper-V?
VMTraining is launching a new webinar series sure to get some input from the many experts across the industry. Register today for the first of a series of three webinars pitting vSphere® and Hyper-V head to head! Who will come out on top?


In the ever expanding world of virtualization many companies claim the top spot! How can we be sure we are making a good business decision in the virtualization choice we are making? Some say Hyper-V some say Red Hat but we are saying vSphere®! Actually this month we will argue the point for vSphere® and in our next webinar we will attempt to prove that Hyper-V owns that top spot. This series will be fun and provide some great technical components that will help you understand the real difference between vSphere® and Hyper-V. We will also have a 3rd webinar in the series that will pit the presenters head to head on a no holds barred discussion of vSphere® vs. Hyper-V. Join in the excitement as we tackle this controversial issue.

Tuesday, March 5, 2013

vSphere® 5.1 UltimateBootcamp

vSphere® 5.1 UltimateBootcamp 
Prior to the release of vSphere® 5.1 the VMTraining team began work to update the course to include all the latest technologies that were released in August by VMware™. Even though these updates were considered minor the changes to what we as administrators have seen may be considered major! There are new additions that cannot be performed through the standard vSphere® Client! That was a sad day for me, now I am forced to use the vSphere® client and the new web client. Regardless our dedicated team has put together some great content and labs in the newly updated vSphere® 5.1 Ultimate Bootcamp. They have included the Single Sign-On Service and Inventory service we all need to deal with during an install. These components have both pros and cons, which have been addressed by our technical team! They have also added the improvements made to the storage interaction. And of course they have added labs using the vSphere® Web Client! Check out the new outline and feel free to ask our experts questions on the VMTraining Forum!

Thursday, February 21, 2013

Why vSphere® is the best Hypervisor out there!

Written by Duane Anderson, Vice President EMEA Operations, VMTraining

Recently there has been much discussion around which hypervisor companies would continue to use moving forward. With Microsoft’s improvements to Hyper-V they are sure to be a huge player in the market, but does that mean that everyone should jump ship and move?

I say not a chance. vSphere® is still the leader in the market. Yes, you can spend less money initially when using Hyper-V, but is that the only aspect to the long term costs of our datacenter? I still believe that vSphere® is the way forward. One reason for this is the way that VMware as a company has consistently included vendors when creating API’s and communication paths to the vendor hardware we all have to use in order to support our datacenter.  

As an example I will discuss the improvements made to storage in vSphere® 4.1, 5.0 and 5.1. in v4.1; VMware added the vStorage API’s for array integration, which allowed for much better communication with storage devices and much needed improvements in the speed of daily operations. The Full Copy and Block Zeroing API’s alone gave some great performance improvements but my personal favorite was the hardware assisted locking. I have fortunately never had a client with the problem I am going to discuss but I have had a number of students who have experienced this exact issue. 

In an iSCSI SAN a lock on a VM can fail, when a host is isolated High Availability will do what it is trained to do and try to start the VMs on another host. If the locks fail on a VM that is already running on an isolated host the VM can be destroyed! Your only hope is the backups that you have tested and proven to function just fine, correct! With this new API the lock is now managed by the SAN, and to date I am not aware of any locks failing with this new API in use. Granted you must have an Enterprise or Enterprise plus license in order for this to function but it is a great addition - just ask a former student who lost over 200 VM’s to this exact issue. He spent a week rebuilding what was lost. In v5 they added API’s for NAS and the Thin provision primitive, which will reclaim dead space on a LUN from deleted or Storage vMotioned VMs. It also provides out of space information with overcommitting.  

This is just one set of features among many that set vSphere® apart from others! When analyzing price you have to consider all factors involved and the long term operational expense of vSphere® is less than that of Hyper-V!

Wednesday, October 3, 2012

VMware vSphere Security and Metasploit Exploitation Framework

The following article was written by Duane Anderson (danderson@vmtraining.net). He is a consultant, trainer and courseware developer for VMTraining, specializing in cloud and virtualization technologies.

This article can also be found in PenTest Magazine's October 2012 issue.

VMware vSphere is another layer in your overall environment to attack, in this article you will learn some of the threats, how to mitigate them and how to attack that virtual layer.

Monday, August 13, 2012

VMware on NetApp NFS

This information was taken from a NetApp white paper by Bikash Roy Choudhury – TR-3839. I am just pulling out snippets that I thought were very interesting. Not all of it is specific to NetApp, but most of my consulting work is on NetApp.
  1. Deduplication - A VMware datastore has a high level of data duplication. This is because it contains many instances of the same guest operating systems, application software, and so on. NetApp deduplication technology can eliminate this duplicated data, dramatically reducing the amount of storage required by your VMware environment. Space savings range from 50% to 90%, with 70% being typical.
  2. Strongly consider using CAT6 cables rather than CAT5/5e. GbE will work on Cat5 cable and retransmissions will recover from any errors that occur, but they have a more significant impact on IP storage networks.
  3. NFS NETWORKS AND STORAGE PERFORMANCE - There are three primary measures of storage performance: bandwidth (MBps), throughput in I/O operations per second (IOPS), and latency (ms). Throughput and bandwidth are related in the sense that the throughput measured in Mbps equals to IOPs multiplied by the I/O size. The I/O size is the size of the I/O operation from the host perspective.IOPS are usually determined by the back-end storage configuration. If the workload is cached, then it‘s determined by the cache response; most often, it‘s determined by the spindle configuration for the storage object. In the case of NFS datastores, the storage object is the file system. On a NetApp storage system, the IOPS achieved are primarily determined by the number of disk drives in an aggregate. You should also know that each NFS datastore mounted by ESX (including vSphere) uses just one TCP session to an NFS datastore carrying both NFS control information and NFS data. Because of this, the upper limit throughput achievable from a single ESX host for a single datastore—regardless of link aggregation—is a single link. If you use 1GbE, this means that a reasonable expectation is a unidirectional workload of ~80–100MB/sec (GbE is full duplex, so this can be 160MB/sec bidirectionally with a mixed workload). Higher total throughput on an ESX server can be achieved by leveraging multiple datastores. You can scale up the total throughput to multiple datastores using link aggregation and routing mechanisms.
    The performance described above is sufficient for many use cases. Based on these numbers, NFS is appropriate for various VMware scenarios:
    • A shared datastore supporting many VMs with an aggregate throughput requirement within the guidelines above (a large number of IOPS, but generally not large-block I/O)
    • A single busy VM as long as its I/O load can be served by a single GbE link
    With small-block I/O (8K), a GbE connection delivers 12,500 IOPS—roughly the performance of 70 15K spindles. On the other hand, a SharePoint VM tends to use I/O sizes of 256K or larger. Using 256K I/O sizes yields just 390 IOPS, which would likely be a problem. Under such circumstances, 10GbE may be the best performance option. If you use 10GbE—though a single TCP session will be used per datastore—much more throughput is available for demanding workloads. If 10GbE isn‘t an option, you can use NFS for some VMs over 1GbE and FC or iSCSI for others depending on the application throughput and latency requirements.
  4. Partition Alignment - For NFS, there is no VMFS layer involved, so only the alignment of the guest VM file system within the VMDK to the NetApp storage array is required.The correct alignment for a new VM can be set using either diskpart to format a partition with the correct offset or by using fdisk from the ESX service console. In practice to avoid further creating of improperly aligned VMs, you must create templates that are properly aligned so new virtual machines built using those templates are properly aligned. NetApp has created a tool: mbralign, to check and correct the alignment of existing virtual machines.
  5. THIN PROVISIONING - As mentioned above, the ability to take best advantage of thin provisioning is a major benefit of using NetApp NFS. VMware thin provisions the VMDK files on NFS datastores by default, but there are two types of thin-provisioned virtual disk files available:
    • “Thick” type thin-provisioned virtual disk.This type of virtual disk file is created by default on NFS datastores during the virtual machine creation process. It has the following properties:
      • Creates a flat .VMDK file; does not occupy actual disk blocks (thin provisioned) until there is a physical write from the guest OS
      • Guaranteed disk space reservation
      • Cannot oversubscribe the disk space on the NFS datastore
    • “Thin” type thin-provisioned virtual disk.You must create this type of virtual disk file using the vmkfstools command. It‘s properties are:
      • Creates a flat .VMDK file; does not occupy actual disk blocks (thin provisioned) until there is a physical write from the guest OS
      • No guaranteed disk space reservation
      • Can oversubscribe the disk space on the NFS datastore
    You can run the following command against an NFS datastore to show its actual disk space utilization:
    • # vdf -h /vmfs/volumes/<NFS Datastore Name>
    Using the “thin” type of virtual disk you have the option to oversubscribe the storage capacity of a datastore, allocating more space than a datastore actually contains on the assumption that VMs will not all use the capacity allocated to them. This can be a very attractive option; however, it has a few limitations that you must know about before you implement it.
    Should an oversubscribed datastore encounter an out-of-space condition, all of the running VMs will become unavailable. The VMs simply “pause” waiting for space, but applications running inside of VMs may fail if the out-of-space condition isn’t addressed in a short period of time. For example, Oracle databases will remain active for 180 seconds; after that time has elapsed the database will fail.
  6. High Availability and Disaster Recovery - NetApp recommends the following ESX failover timeout settings for NFS. We recommend increasing the default values to avoid VMs being disconnected during a failover event. NetApp VSC can configure these settings automatically. The settings that NetApp recommends (across all ESX hosts) are:
    • NFS.HeartbeatFrequency (NFS.HeartbeatDelta in vSphere) = 12
    • NFS.HeartbeatTimeout = 5(default)
    • NFS.HeartbeatMaxFailures = 10. When the number of NFS datastores are increased, we also recommend increasing the heap values: Net.TcpipHeapSize =>’30′ to Net.TcpipHeapMax => ‘120′
      1. Back up your Windows registry.
      2. Select Start>Run, type regedit.exe, and click OK.
      3. In the left‐panel hierarchy view, double-click HKEY_LOCAL_MACHINE, then System, then CurrentControlSet, then Services, and then Disk.
      4. Select the TimeOutValue and set the data value to 190 (decimal).
    Every “HeartbeatFrequency” (or 12 seconds) the ESX server checks to see that the NFS datastore is reachable. Those heartbeats expire after “HeartbeatTimeout”(or 5 seconds), after which another heartbeat is sent. If “HeartbeatMaxFailures”(or 10 heartbeats) fail in a row, the datastore is marked as unavailable and the VMs crash.
    This means that the NFS datastore can be unavailable for a maximum of 125 seconds before being marked unavailable, which covers the large majority of NetApp failover events.
    During this time period, a guest sees a non-responsive SCSI disk on the vSCSI adapter. The disk timeout is how long the guest OS will wait when the disk is non-responsive. Use the following procedure to set operating system timeouts for Windows servers to match the 190-second maximum set for the datastore:
    1. Back up your Windows registry.
    2. Select Start>Run, type regedit.exe, and click OK.
    3. In the left‐panel hierarchy view, double-click HKEY_LOCAL_MACHINE, then System, then CurrentControlSet, then Services, and then Disk.
    4. Select the TimeOutValue and set the data value to 190 (decimal).

Tuesday, July 31, 2012

HA Works the Way it Should and All VMs Die

I was working at a customer site doing some VMware and Microsoft work. I came in around 1pm and couldn’t get to anything. We couldn’t ping any VM’s. I could however ping the ESXi hosts. I used the vSphere client to connect to each host individually and saw that all VMs were turned off. At the time I had no clue why they were off. The only thing I saw on one of the hosts was that we had lost network redundancy on one of the hosts.

I asked one of the guys if they did anything on the hosts and they said no. I talked to another guy and he had someone else reboot the switch. A little background, all of the ESXi hosts are connected to the same switch (bad) and didn’t separate NICs. When the switch was unplugged all of the hosts determined that they were in Host isolation mode and the way HA was set up was that they were supposed to shut down the VMs.

The purpose of this is so that if one host does get isolated then the VMs will shut down and get restarted on a different host. However since all hosts believed they were isolated they all shut down their respective VMs and sat there doing nothing with all VMs shut off. What would have prevented this would have been to have 2 switches and one NIC connected to each switch. I didn’t design this network, and know it is not best practice to do this, but it was interesting to see this happen. We were doing maintenance on the weekend, so it was no big deal, but imagine the repurcussions is you only have one switch and it fails during the day and all VMs go down. Not good.