Sunday, March 15, 2015

How to enable ssh on the vcenter appliance

SSH is disabled by default on the vcenter appliance in vSphere 6. These are the steps to enable it.

1. Open the console of the appliance using in this case the vsphere client.


2. Press F2 and log in as root.


3. Notice the choices and select Troubleshooting Mode Options.


4. Notice the two options. Select Enable SSH.


5. Press Enter to enable it.


6. Test ssh by using putty for example.


7. Done.


Vmotion across vCenter Servers illustrated

Vmotion Enhancements

Vmotion across vCenter Servers

1. In order to perform this task, two or more vcenter servers have to be connected to the same PSC//SSO instance. This was performed with the Linux appliances (vc01 and vc02) connected to an external Platform Services Controller (called PSC). This was performed with one virtual switch on each host and a standard vMotion port group with a standard vMotion vmkernel port on each host.


2. Power on a vm (xp1) and right click on it. Select Migrate. Notice the option selected.


3. Select the other vCenter Server (vc01 in this case) and another host (esxi01)


4. Select a datastore. This was performed from local storage to local storage.


5. Select a port group on the other host. Notice the warning at the bottom.


6. Notice the next screen, make your decision and proceed.


7. Click on Finish and wait.


8.  Notice the bottom of the screen (Recent Tasks). Success !!!


Friday, March 13, 2015

vCenter Appliance 6 Commands

 1. SSH into the vcenter server and log in as root.


 2. Type the help pi list command to see the changes in the architecture of the appliance


3. Access the traditional bash shell.


4. Find the existing commands.


5. Execute the vami_config_net command.


6. Learn to use other commands; here are a few examples.


7. Don't execute the vpxd -b command. This will wipe out the database. Do it if necessary only.



Wednesday, March 11, 2015

Fault Tolerance with More than 1 vCPU


New Changes to Fault Tolerance


Fault Tolerance in vSphere 5x and before

Fault Tolerance in previous versions had a critical limitation that most people knew about. That limitation was the 1 vcpu limit, meaning that you could not turn a multi-smp virtual machine into a fault tolerant one. Another critical limitation was no thin provision. There were others but those two were the most significant ones.

Fault Tolerance in vSphere 6

Fault Tolerance allows vms with up to 4 vcpus to be used with Fault Tolerance. In this case, a vm with 2 vcpus was used for FT. 

NOTE: This will only work if you use the Web Client. The vSphere Client will not allow you to do this.


Just like in previous versions, a vmkernel port needs to be created for FT. n this case, the vmotion vmkernel port was also used for FT (not a best practice by any means). Use a dedicated card if available (for the 1GB nics).


Just like before, an HA Cluster is needed. Create the cluster, right-click on the VM and make it fault tolerant. 


The system will ask you where to place the second set of files (this is new indeed) and where to run the secondary copy. 



Power on the virtual machine and verify that it is protected. 


The architecture of FT in vSphere 6 is very different. By the time you are done, this vm has two folders full of files (instead of one) and there are two copies of the -flat.vmdk (instead of one)


Tuesday, February 24, 2015

vSphere 6 NFSv4.1 Support

vSphere 6 and NFSv4.1

It's about time!!! The NFS protocol has been supported in vSphere since 3X but despite the fact that Sun Microsystems introduced NFSv4 in 2005 (with Solaris 10), vSphere has been stuck in version 3 until now. As you can see in the following capture, NFSv4.1 is now supported in vSphere 6.

Note: The nfs server running 4.1 was Ubuntu Linux in this case.



Why does this matter? 

Several reasons. Increased security for once using Kerberos Adding the esxi servers to Active Directory and specifying Kerberos credentials ahead of time are a must. Kerberos credentials are now supported as you can see in the following capture. Improved locking mechanisms and better error recovery



Other reasons?  

Multi-pathing is now supported by using session trunking using multiple remote ips. The result is improved performance because of parallel access and load balancing.

Limitations?

Nfsv4.1 is not compatible with Storage DRS, SIOC, SRM and vvols (virtual volumes) yet.

New Commands:

Try esxcli storage nfs41 without any arguments or esxcfg-nas -h


Examples:

Display nfs v4.1 file systems

esxcli storage nfs41 list

Unmount a datastore called NFS1

esxcli storage nfs41 remove -v NFS1

Mount a shared directory (/NFS1) from a server (10.1.1.100) and name the datastore NFS1

esxcli storage nfs41 add -H 10.1.1.100 -a AUTH_SYS -s /NFS1 -v NFS1


Here are additional captures:












Vsphere 6 Content Libraries

What are Content Libraries?

Content Libraries are a new feature of Vsphere 6 that allow you to centrally manage vm templates, vapps and .iso images. They can be local to your environment or synchronized across multiple environments (including vcenters and vcloud director) as well. By default, the libraries are synchronized every day. The maximum number of libraries is 10 with 256 library items (total).

*** Updated with GA captures on 3/25 ***

Steps to create a Content Library:

1. Log into the vcenter server as the administrator using the Web Client.


2. Click on the Content Libraries Icon and create a new library.


3. Decide what kind of library you want to create. In this case, this is a local library. This library could also be publish so other environments can subscribe to it and download contents if needed.
Authentication could be used; the default user is "vcsp". Notice the second capture.



4. Select the datastore to hold the library.


5. Notice the library has been created.


6. Select your library and read the Getting Started page for it to get a better understanding of the capabilities of the library.


7. In Vsphere 6, you can right click on a VM and clone to template in a Library. The system creates the .ovf file and the .vmdks. (OVA not supported on this version).


8. Name the template to create and select the library that was just created.


9. As shown below, the content library is a new directory in one of your datastores. After the creation of the template, the content library contains an entry for that template with the .ovf file.


10. Lastly, you can right click on the library and import items.