Tuesday, 15 September 2015

Change NSX Controller AdminPassword

How to modify the password of "admin" user of NSX Controller once it is up and running.
 
Make the SSH access to NSX Controller Appliance and Login with the admin user using current password.
 
 
 
at the prompt nsx controller # run the command ": user <username>" example: ": user admin"
 
 
now the prompt changes to nsx controller : user admin # run the command "set password" it will prompt us to type the new password. So enter your new password for the NSX Controller Cluster.
 
 
 

Sunday, 13 September 2015

NSX Management Plane

VMware NSX uses Management plane, Control plane and Data plane models, Components on one plane have minimal or no effect on other.
 
Management Plane: NSX Manager is the component we need to deploy manually and integrate it with vCenter and it can only be 1 to 1 correlation, NSX Manager registers with vCenter and inject a plugin into the vSphere Web Client for providing the User interface.  NSX Manager is the interface for NSX API (REST API)for 3rd party application integration, NSX manager like firewall and security software. NSX Manager handles all the management tasks.
 
NSX Manager includes OVA files to deploy:
1. NSX Edge gateways
2. NSX Controller Cluster
3. VIBs pushed to ESXi hosts for distributed switches.
 
NSX manager also creates certificates and stores them in database, and push these certificates to the NSX controller instances as they deployed, and for each ESXi hosts that join NSX domain, Hosts and NSX controller verifies the certificate, so that the control plane communication should be encrypted.
 
NSX Manager uses the message bus to talk to the host for deploying VIBs. NSX Controller and the host communicates through User World (UWA) daemons
Image is from VMware document.
NSX Manager backup and restore can be configured from the NSX Manager virtual appliance web interface. Backups can be scheduled on an hourly, daily or weekly basis. 
  
The backup file is saved to a remote FTP or SFTP location that NSX Manager can access. NSX Manager data includes configuration, events, and audit log tables. Configuration tables are included in every backup. 
 
Thanks for Reading  
 
 

Thursday, 10 September 2015

NSX Controller

NSX Controller serves as the central control point for all logical switches within a network and maintains information about all hosts, VXLANs and Distributed Logical Routers.

NSX Controllers are required if we are planning to deploy:
1. Distributed Logical Router
2. VXLAN using Unicast mode and Hybrid mode.

NSX Controller cluster contain Maximum or Minimum 3 controller node.

Their are few roles, which should be perform by these node.

1. API Provider: Used to handle HTTP web service requests from external clients (handles northbound REST API traffic) and initiates processing by other controller node task.
To configure the listen-ip we can use the following command.

set control-cluster role switch_manger listen-ip <IP address>

2. Persistence Server: stores data from the Network Virtualization Platform (NVP) API and vDS devices that must be persisted across all controller nodes in case of node failures or shutdowns.

3. Logical Manager: Monitors when end hosts arrive or leave vDS devices (such as host joining VXLAN VTEP,UTEP,MTEP) and configures the vDS forwarding states to implement logical connectivity and policies.

4. Switch Manager: Maintains management connections for one or more vDS devices.

5. Directory Server: manage VXLAN and the distributed logical routing directory of information.

run the following command to find which host is master node for each role: "Show control-cluster roles"


this result shows that a single controller cluster node is master for all the roles.

If master NSX controller instance for a role fails, the cluster elects a new master for that role from the available NSX controller instances.

NSX controller instances are on the control plane, so an NSX controller failure does not affect data plane traffic.

vRealize Orchestrator Secure Connection Failed


If we are working with vRealize Automation and using the integrated vRealize Orchestrator. And after starting the vRealize Orchestrator Configurator service, if you receive an error while connecting to vRealize Orchestrator configurator Page (https://vCAC.vmfootprints.Org:8283/vco-config), Secure Connection Failed. An error occurred during a connection to vCAC.vmfootprints.org:8283. SSL received a weak ephemeral Diffie-Hellman Key in Server Key Exchange handshake message.




This is because that the webserver we are trying to reach is vulnerable to recently published logjam vulnerability: http://arstechnica.com/security/2015/05/https-crippling-attack-threatens-tens-of-thousands-of-web-and-mail-servers/ please report that to webmaster of the site in question to fix that issue...
But if you want to ignore it and want to continue here is a workaround for Firefox 39 and above:

1.       Open a new tab in Firefox and enter “about:config” in the URL field and press enter

2.      Accept the “I’ll be careful, I promise!”


3.      In the search field at the top, enter "security.ssl3.dhe_rsa_aes"


4.      Double click each result (128 and 256) to toggle the Value to "false"

Now retry your site - it should work now. Remember to change these settings back when you're done.
 
Thanks for Reading

vRealize Orchestrator User Unlock


If we are working with vRealize Automation and using the integrated vRealize Orchestrator. We may type a wrong password too many time and end up with an account locked.
When the default account (user=vmware) is locked out we will receive the error.

 
You can reset/unlock your account tweaking passwd.properties file, depending where vRO is running on you will find this file at:
 Running on Windows vCenter Server: install_directory\VMware\Infrastructure\Orchestrator\configuration\conf\

Running standalone on Windows: install_directory\VMware\Orchestrator\configuration\conf\

Running on the vCenter appliance: /etc/vco/configuration/

Running on the vRealize Automation appliance: /etc/vco/configuration/

Let’s suppose we are working with vRA appliance:
Login through SSH on vRealize Automation Appliance and change to directory:
cd /etc/vco/configuration/


Make a copy of the file as for restore point
cp passwd.properties passwd.properties.bkp
Edit the file with vi editor

Add the following line to the passwd.properties file.

vmware=SHA512WithSalt\:GZ5wTW6Ni5x7\:wNCp8I8zHv7GQItrKDRjAgKsddjD4GUZ6nrOYhuEl3D
+x4BT5Xs1KL8f/R2T3K2nYPzMwVTW9E9mmbvESAU3ww\=\=


 Save the passwd.properties file.

If you are using the Orchestrator Appliance, you might need to set the ownership of the passwd.properties file by running the chown vco.vco passwd.properties command.

Restart the vCenter Orchestrator Configuration service.
service vco-configurator restart


 

Wednesday, 5 November 2014

vCAC IaaS database Fail to upgrade


While upgrading vCloud Automation Center (vCAC) 6.0 to vCAC 6.1 one of the requirement is to upgrade  the database of vCAC IaaS  using the command line.

DBUpgrade.exe –S  <FQDN of Database> -d <Database Instance> -E

Example: DBUpgrade.exe –S IaaS.vClass.local –d vCAC –E

It connects to the database successfully, but finished with an error message like:
 
 
 
Error executing script. Please see log file c:\Scripts\dbupgrade.log for more details.
When we open the log, we can’t get any helpful information in it.
 
 
 
 But from the error message and VMware KB I got a clue that I must need to have java version 1.7 or higher, so I verified that  java version 1.7 or higher is installed on my machine from which I am executing the DBUpgrade command, which was not so I download the latest version of java and install.









After the java is been installed we will also require to declare an Environment variable named JAVA_HOME and value c:\Progra~1\java\jre1.8.0_25























 
 
 
 Remember do not use c:\Program Files\Java\jre1.8.0_25 because we have space “Program Files” which fails the command DBUpgrade.exe to fail. validate that the environment variable is working.
 
 



 
 


Once the changes are done logoff once and login, so that the environment variable can be loaded. Check that the environment variable is working properly, and then run the command to upgrade the IaaS database.

Friday, 31 October 2014

vCloud Application Director: Darwin_User account Locked


If the darwin_user password is not working one reason can be that the account is been locked due to three failed login attempts, so in that case we will need to unlock the account.

We have to use VMRC (Virtual Machine Remote Console) because SSH is disable for the root account, login as root user.
 







To check the number of failed login attempts from the shell prompt.
faillog –u darwin_user









To unlock the locked account from the shell prompt
faillog  -u darwin_user –r








validate that the fail count is reset to zero.
faillog -u darwin_user








and if suppose you want to reset the password for the darwin_user
passwd darwin_user










type new password for the account and reconfirm it, now we can use the new password to login as darwin_user.



Thanks for reading........