Tuesday, February 24, 2015

Vsphere VMA 6.0

How to Deploy the VMware Management Assistant 6.0

1. Download the VMA from the Beta Site and deploy it via OVF. Make sure to add the dns records for it ahead of time. The deployment will fail without the DNS records.









2. After the deployment and initial reboot, open up the console via the web client. Somehow (beta?), I had to input the network related information a second time. You can also connect to it using port 5480.




3. The VMA is still based on SUSE linux and it is configured with 1 vcpu, 600mbs of RAM and a virtual disk that is 3gbs in size like the previous version. SSH into the VMA and log in as vi-admin.


4. Configure fast-pass as usual using the vifp and vifptarget commands.


5. Test the VMA using any of your favorite commands. The vicfg and esxcfg commands are still there and they work without any extra effort.


Note: The esxcli commands will not work natively until the thumbprint for the esxi host is added.

The command to do that is /usr/lib/vmware-vcli/apps/general/credstore_admin.pl add -s server_name -t thumbprint.

Other options for this command to remember:

credstore_admin.pl clear                        <- clears all entries
credstore_admin.pl list -s server_name  <- displays current thumbprint for a host

Note:  Yes, there is a remove option :)

Friday, February 6, 2015

vSphere 6 Enhanced Linked Mode

Enhanced Linked Mode


Since the vSphere Client no longer can connect to the vCenter Server, vSphere 6 introduces a new Linked Mode mechanism to be used with the Web Client. In order to use this new feature, simply connect the second vcenter server to the first one during the installation.


In this example, two vCenter Servers were configured. The first one was named composer6.vmware.com and the second one was composer1.vmware.com. The first installation (composer6) was a generic installation where the vCenter and the new PSC were configured in the same machine.


The second vCenter was composer6. I chose to install only the vCenter software, not installing a new PSC. During the installation, I specified the where was the PSC (composer6) and later on, I selected the SSO location (composer6). 


Here is a screen capture during the installation of composer1.




By the time both installations ended, I launch the web client and connected to one of the vCenter Servers. Here is a screen capture showing both vCenter Servers being controlled by the same Web Client session.




It is important to mention how critical the only PSC/SSO implementation is in this case. One way to protect it is to implemented in an HA cluster.



How to Deploy the Windows vCenter Server 6.0 (Beta 6)

Here is an easy demo on how to install the vCenter Server software in 2008R2 64 bit. This installation was performed with a virtual machine with 8gbs of RAM (now a must).













How to Deploy the Vcenter Appliance in 6.0 (Beta 6)

The Vcenter Appliance in 6.0 has gone through changes. The new installation and configuration steps have changed. No more deploying via OVF, no port 5480 for configuration. Here are the steps. Make sure to update your DNS records prior to start.

Step 1: Download and burn the software. Open up the folder and install the Client Integration Plugin. Afterwards, start the setup of the appliance by selecting the index.html option. This option has been renamed in the GA release. It is now called vcsa-setup.



Step 2: Click on Install. The GA release also has a choice to Upgrade.


Step 3: Agree to the EULA and proceed.


Step 4: Specify the information of the esxi host that will host the appliance.


Step 5: Add the root password for the appliance.


Step 6: Configure the appliance with the embedded PSC.


Step 7: Configure the SSO credentials.


Step 8: Notice the choices for the size of the appliance. The default will use 2 vcpus and 8 gbs.


Step 9: Select the datastore to store the appliance.


Step 10: Decide which database to use. The embedded database or Oracle.


Step 11: Specify the attributes of the vCenter appliance.


Step 12: Click on Finish to start the installation. It will take a while.


Step 13: Open up the console of the appliance and log into as you would in an esxi host (F2). You will see the equivalent of the DCUI for the appliance.  Test it by pointing your browser to the IP (no more port 9443). Ex: https://newvcva.vmware.com/vsphere-client.


Note: The last capture belongs to another appliance previously created.

What is New in VSAN 6 (version 2.0)

New features in VSAN 6 (version 2.0)

Ever since the announcement of vSphere 6 this week, one of the coolest things I have noticed is the improvements of VSAN 2.0. One one hand, if you know how to configure VSANs in 5.5U1, you will have no problem configuring VSAN 6. On the other hand, there are significant differences below the hood.

Here is a list of some of the main differences:

1. Brand New File System for VSANs 2.0

The original VMFS-L (local) has been replaced with VSAN-FS/Virsto FS. Virsto is a company that was acquired by VMware a couple of years back.  Make sure to upgrade the file system itself (a manual process) if upgrading from 5.5 U1 to 6.

2. Fault/Failure Domains

Fault/Failure domains allow you to group multiple esxi hosts into a single domain, treating them as a unit. This is very useful if multiple servers are connected to a single rack and you fear that the loss of power to a rack could affect multiple esxi hosts. Fault domains can be created very easily with the Web Client. This does NOT mean you can create a metro cluster.






3. 100% All-Flash-based VSANs

This feature is finally supported. However, all SSD drives will be initially seen as SSD (and not capacity drives). You can use the esxcli command to indicate which drives will be used for capacity instead of caching. When usgin an All-Flash VSAN, the ssd drives NOT used for capacity are only used for write-buffering. The All-Flash VSAN comes at a higher price though

Steps:

1. Find the disks to mark as capacity disks with  esxcli storage core device list 

2. Mark them with esxcli vsan storage tag add -t capacityFlash -d device_name

3. Verify the previous step with the command vdq -q -d device_name. Look for the parameter
isCapacityFlash = 1

4. Improved performance, management and scalability.

VSANs 6 support 64 hosts instead of 32. Vmdks can now be 62tbs instead of 2tbs. VMware now supports 200 vms per host (instead of 100). You can now get 40k iops per host (with a hybrid vsan that is). More than twice as much with an all-flash vsan. Lastly, now you can have 9000 components per host instead of 3000. There is also support for directly-attached JBODs. Lastly, you can now see more information with the Web Client, including re-syncing progress.


5. New commands available

Log into the esxi host and type esxcli vsan. You will notice new commands (for example the ones for fault domains). The RVC also has a command to manually rebalance (vsan.proactive_rebalance). Rebalancing happens automatically if the drives go above 80% of space utilization. This command allows rebalancing at any time, which can be useful when adding new hosts with new disks.


Thursday, February 5, 2015

PowerCLI and Virtual SANs Fling Information



Managing your VSAN with PowerCLI

If you are interested in managing your VSAN using automation tools, go to labs.vmware.com and find and download the recent VSAN "fling". Flings are pet projects for VMware engineers. Lots of very useful ones, including this one. After downloading and installing this fling, run the following commands to get help on getting started.

Import-Module VMware.VimAutomation.Extensions

Get-Command -Module VMware.VimAutomation.Extensions



Here are a few examples that I was able to find in no time whatsoever:

Retrieve a disk with canonical name “mpx.vmhba2:C0:T1:L0″ on a specific host:

Get-VsanDisk -VMHost MyVMHost -CanonicalName “mpx.vmhba2:C0:T1:L0″

Retrieve disks that are part of a VSAN disk group that has a disk with
canonical name “mpx.vmhba2:C0:T2:L1″

$dg = Get-VsanDiskGroup -VMHost MyVMHost –CanonicalName “mpx.vmhba2:C0:T2:L1″
Get-VsanDisk -CanonicalName “mpx.vmhba3:C0:T2:L0″ -VsanDiskGroup $dg

Add a disk to a VSAN disk group

$dg = Get-VsanDiskGroup -VMHost MyVMHost –CanonicalName “mpx.vmhba2:C0:T2:L1″
$d = New-VsanDisk -VsanDiskGroup $dg -CanonicalName “mpx.vmhba3:C0:T2:L0″

Create a new VSAN disk group for a host.

New-VsanDiskGroup -VMHost MyVMHost -SolidStateCanonicalName
“mpx.vmhba2:C0:T1:L0″ -HardDiskCanonicalName “mpx.vmhba3:C0:T1:L0″

Remove a disk with canonical name “mpx.vmhba3:C0:T2:L0″ from a VSAN disk
group.

$dg = Get-VsanDiskGroup -VMHost MyVMHost –CanonicalName “mpx.vmhba2:C0:T2:L1″
Get-VsanDisk -VsanDiskGroup $dg -CanonicalName “mpx.vmhba3:C0:T2:L0″ | Remove-VsanDisk

Remove a disk group with canonical name “mpx.vmhba2:C0:T2:L1″ on host MyVMHost.

$dg = Get-VsanDiskGroup -VMHost MyVMHost –CanonicalName “mpx.vmhba2:C0:T2:L1″
Remove-VsanDiskGroup -VsanDiskGroup $dg

Tuesday, December 2, 2014

How to Install and Use VMware UMDS

What is VMware Update Manager Download Service?

UMDS is a piece of software that allows you to download patches from VMware repositories without needing to have the Update Manager Server connected to the internet. This can be useful (or a must) in secure environments.

Installation Steps;

Step 1; Prepare a Windows 2008 vm and start the installation. This software can't be installed on the same machine where VUM is to be installed. The software comes in the Vcenter Server cd. Double click on the VMware-UMDS executable.


Step 2: Start the installation of Vsphere Update Manager Download Service by agreeing to the EULA.


Step 3: Decide which database to use. In this case, the embedded database is used. Notice the 32-bit DSN reference if an external database is to be used.


Step 4: Specify if any proxy settings need to be added.


Step 5: Proceed with the question about the Destination Folder.


Step 6: Depending on how the vm was created, you may see this warning.


Step 7: Let the installation proceed. Click on Finish when done.


Step 8: Open up a terminal and navigate to the directory that contains the executable. Type the command with the -h option or without any options to see the available flags.


Step 9: Run the different commands to configure UMDS and then download the patches by using the vmware-umds -D command. For example, you can run vmware-umds -S --enable-host --disable-va to indicate to avoid patches for virtual appliances.