Translate

Total Pageviews

My YouTube Channel

Thursday 30 October 2014

Configure virtual machines templates and the Application Director appliance to deploy applications - Part 20

1. Install the Required Software in the CentOS Virtual Machine and Create a Snapshot
You access the VMware vSphere® Web Client, open a console, and install the software that you
must have to use a CentOS virtual machine with VMware vCloud® Application Director™. You
create a snapshot of this machine.
Open the vSphere Web Client.
https://vspherewebclientFQDN:9443/vsphere-client
Username = vs-admin@vclass.local
Password = as assigned
In the vSphere Web Client, select vCenter > VMs and Templates. > Expand Training. > Right-click centos01 and select Power On. > Monitor the Recent Tasks pane until the virtual machine powers on. > Right-click centos01 and select Open Console.
Log in with the
user name = root 
Password =as assigned
Download the JRE packages.
wget JRE_package_download_URL

Create an /opt/vmware-jredirectory.
mkdir /opt/vmware-jre
Extract the JRE package.
unzip jre-1.7.0_45-lin32.zip –d /opt/vmware-jre
Verify the installation.
/opt/vmware-jre/bin/java –version
 Download the VMware vCloud® Automation Center™ guest agent.
wget –-no-check-certificate vCloud_Automation_Center_guest_agent_download_URL
 Extract the guest agent.
unzip LinuxGuestAgentPkgs.zip

Install the guest agent.
rpm –iv ~/LinuxGuestAgentPkgs/rhel6-x86/gugent-6.0.0-2026.i386.rpm
Download the vCloud Application director agent bootstrap program.
wget Application_Director_guest_agent_URL
 Install the vCloud Application Director agent bootstrap program.
rpm –iv vmware-appdirector-agent-service-vcac_6.0.0.0-0_i386.rpm
 Register the vCloud Automation Center guest agent to vCloud Automation Center.
/opt/vmware-appdirector/agent-bootstrap/vcac-register.sh –r 443 –s IaaS_server_FQDN

Shut down the machine.
init 0

Close the console window. > In the vSphere Web Client window, right-click centos01. > Click Take Snapshot. > Name the snapshot Appd. > Click OK.
  
2. Refresh the Compute Resources Inventory
You refresh the compute resources inventory so that the new snapshot is available in vCloud
Automation Center.
On your server desktop, double-click the Google Chrome browser icon.
Login with fabric-admin
https://vCACFQDN/shell-ui-app
Username = fabric-admin@vclass.local
Password = as assigned
Click the Infrastructure tab. > Select Compute Resources > Compute Resources. > Point to, but do not click, Cluster01and select Data Collection from the context menu. > Click Request Now for Inventory, State, and Performance. > Click Refresh at the bottom of the screen every 10 seconds to update the status. > Wait until the Status changes from N/A to Succeeded for Inventory, State, and Performance. > Log out.


 3. Create a Blueprint with the New CentOS Machine
By creating a blueprint of the CentOS machine, you can create logical templates in Application
Director. You create a blueprint from the CentOS snapshot. You assign it the properties necessary
for use and publish it.
Login with tenant-admin
https://vCACFQDN/shell-ui-app
Username = tenant-admin@vclass.local
Password = as assigned
Click the Infrastructure tab. > Select Blueprints > Blueprints. > On the right side of the window, select New Blueprint> Virtual> vSphere (vCenter). > In the Nametext box, type CentOS_63_AppD. > In the Description text box, type Master Blueprint for CentOS 6.3 for use in Application Director deployments. Leave the Blueprint Options as the defaults. Only Shared blueprint should be selected. > In the Reservation Policy drop-down menu, select Mid Range Compute. > Leave the default for Machine Prefix. > In the Maximum per user text box, type 10. > In the Archive (days) text box, type 1. > In the Cost (Daily) text box, type 0.5. > Click the Build Information tab. > From the Action drop-down menu, select Linked Clone. > Click the browse button next to Clone from and select centos01
Click Next. > Select Appd from the snapshot list and click Finish. > Click OK. > In the Customization spec text box, type centos32. In the Machine Resource panel, type the values in the table. > Click the Properties tab. > On the right side of the of the Custom properties pane, click New Property. > In the Name text box, type VMware.VirtualCenter.OperatingSystem. >In the Value text box, type rhel6Guest(lowercase L). > Click the green check mark. > Click OK. > Point to, but do not click, the CentOS_63_AppD blueprint and select Publish from the context menu. > Click OK. Verify in the Published column that the blueprint is published.







 4. Create a Default Business Group
You must have a default group to connect Application Director to vCloud Automation Center. You
create a business group and assign to it default machine prefixes. You assign the business group to a group manager. You also configure support management emails for the group.
Login with tenant-admin
https://vCACFQDN/shell-ui-app
Username = tenant-admin@vclass.local
Password = as assigned
Click the Infrastructure tab. >Click Groups. > Click Business Groups. > Click New Business Group. The New Business Group creation page appears. Name the new business group Default. > Click the browse button next to Machine Prefix. The Select Machine Prefix dialog box appears. > Select QA > Click OK. > Leave Active Directory Container blank. > In the Group Manager Role text box, type tenant. > From the drop-down menu that lists matching users and groups, select Tenant Administrators (Tenant Administrators@vclass.local). >  In the Send Manager emails to text box, type tenant-admin@vclass.local. > In the Support role text box, type support-user@vclass.local. > Click OK.The Default business group is created.

 5. Create a Reservation
You create a reservation for the future deployed applications. You assign compute resources to the
reservation and configure the reservation settings for it to work with the deployments.
Login with fabric-admin 
https://vCACFQDN/shell-ui-app
Username = fabric-admin@vclass.local
Password = as assigned
Click the Infrastructure tab. > Select Reservations > Reservations. > Select New Reservation > Virtual > vSphere (vCenter). The New Reservation page appears. > From the Compute Resources drop-down menu, select Cluster01 (vCenter). > Leave the name as Cluster01-Res-2. > Leave the tenant as vSphere.local. > From the Business group drop-down menu, select Default. > From the Reservation Policy drop-down menu, select Mid Range Compute. In the Priority text box, type 1.
Click the Resources tab. > For Memory, type 2 under This Reservation. > For Storage, select Shared02. > Under This Reservation Reserved, type 10. > In the Priority drop-down menu, type 10. > Click the green check mark to accept these values. > Click the Network tab. > Select the Production check box. > Click OK. The reservation is complete.




6. Configure the Application Director Appliance
To use Application Director with vCloud Automation Center, you must register the Application
Director appliance with the vCloud Automation Center server. You access the console to the
Application Director appliance. You register the Application Director appliance to the vCloud
Automation Center server and you synchronize business groups between the Application Director
server and the vCloud Automation Center server.
Minimize all open windows.
Double-click PuTTY on the desktop. > Click Run if necessary. > Type Application_Director_server_FQDN under Host Name. > Click Open. > Click Yes if a security alert window opens. Log in as darwin_user with the password as assigned > To change from darwin_user to root, type su and press Enter. > Type the password as assigned. > Update the license.
java -jar /home/darwin/tools/darwin-license.jar > Type the license provided. > Start the roo CLI.
java –jar /home/darwin/tools/darwin-cli.jar > Log in to AppD as darwin-user. login --serverUrl darwin_user_login_URL --username admin > Type the password and press Enter. > Register the vCloud Automation Center server.
register-vcac-server --componentRegistryUrl vCloud_Automation_Center_URL --ssoAdministratorUsername  Administrator@vsphere.local --ssoAdministratorPassword
vmware1! --tenant vsphere.local A message informs you that the vCloud Automation Center server registered successfully. > Synchronize the business groups of vCloud Automation Center to Application Director. sync-business-groups -y
AppD finds the student organization ID group and asks if you would like to add it. > Type y to add the student organization ID group. > Type exit and press Enter. > Type exit and press Enter. > Type exit and press Enter. The PuTTY window closes.



7. Enable Application Director Roles for a User
You add the Application Director roles to the tenant-admin user.
You should perform this task independently.
Login with tenant-admin
https://vCACFQDN/shell-ui-app
Username = tenant-admin@vclass.local
Password = as assigned
Click the Administration tab. > Click Users. > In the upper-right corner, type tenant-admin in the Search box and press Enter. > Click tenant-admin@vclass.local under User Name. The Edit user page appears. On the right side of the window under Add roles to this user, select all the check boxes that begin with “application”:
• Application Architect
• Application Catalog Administrator
• Application Cloud Administrator
• Application Publisher and Deployer
•Application System Administrator
Click Update. > Click Logout.
The tenant-admin user has all the roles necessary to complete all Application Director tasks.


No comments:

Post a Comment