Académique Documents
Professionnel Documents
Culture Documents
2017-18
Prepared by:
Dr. Prakash S
Associate Prof., Department of CSE
Dr. AIT
INDEX
PART-A
S:No. TITLE PAGE
1 Create a web application to enter the students’ details like name, 1 – 3
USN, semester, section and CGPA to a database on Salesforce
cloudplatform.
2 Create a web application to implement an online cart for adding 4–6
items to a shopping cart and deleting it.
3 Create a web application to enter the faculty details like faculty ID, 7 – 10
faculty name, and salary to a database and calculate the income
tax to be paid by the faculty at the end of financial year.
4 Create a web application to book a flight from a source to 11 – 13
destination and store the status of flight, and departure timings on
database.
5 Create a Collaborative learning environment for a particular 14 – 18
learning topic using Google Apps. Google Drive, Google Docs and
Google Slides must be used for hosting e-books, important articles
and presentations respectively.
6 Develop Department events' registration app with an object 19- 21
containing event name , date/time , venue as parent relationship ,
another object containing student name, branch, event name ,
date/time , venue as child relationship.
7 Develop Blood donation registration app with an object which 22 – 24
records donors' name , age and blood group as parent relationship
and another object containing haemoglobin level, donated or not
details (if age>18) child relationship.
8 Develop Attendance maintenance app with an object to record 25 – 27
student details and attendance and a provide a link to college
websites' results webpage.
9 Create a web application with objects to maintain database of an 28 – 32
art gallery which contains objects like artists, arts , inventory and
provide a link to any of the art gallery website.
10 Create a web application with objects to record details about staff 33 – 36
, syllabus and activities of a department and provide a link to
college website from any of the objects.
Cloudsim
S:No. TITLE PAGE
1 Modelling and simulation Cloud computing environments, including 38– 50
Data Centers, Hosts and Cloudlets and perform VM provisioning
using Cloud Sim:
Virtualization
S:No. TITLE PAGE
1 Create and Deploy Virtual Machine on ESXI Server with an 52-90
Operating System onto it. Deploy web applications onto the VM to
read a text file or display your name on the web browser.
2 Creating a custom VPC and launch an EC2 Instance in your VPC. 106 – 116
1
Field Label: USN (Length 10), Data Type: Text, provide an example USN as Help Text, make it as Required Field and
Don’t allow Duplicate Values and make it as Case Insensitive.
Field Label: Section (Length 1), Data Type: Text, Make it as Required Field.
Field Label: Semester (Length 1, Decimal Place 0), Data Type: Number, Make it as Required Field.
Field Label: CGPA (Length 2, Decimal Places 2), Data Type: Number, Make it as Required Field.
2
18. Go to App Manager, select your application and select Students and click “New” to add some details to your Application.
3
Program 2:
Create a web application to implement an online cart for adding items to a shopping cart and
deleting it.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if you are currently
in Salesforce Classic by clicking your picture in the right top corner and then click on “Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
4
To create an Application:
5
6
Program 3:
Create a web application to enter the faculty details like faculty ID, faculty name, and salary to a database
and calculate the income tax to be paid by the faculty at the end of financial year
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if you are currently
in Salesforce Classic by clicking your picture in the right top corner and then click on “Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
7
To calculate Income Tax to be paid:
10. Go to “Buttons, Links and Actions” of Faculty Object and click “New Button or Link”
11. Name it as “Tax Calculation”
12. Select the radio button “Detail Page Link” as it is a website link.
13. Behavior: Display in new window
14. Content Source: URL
15. Field Type: Faculty
16. In the empty space provided, type
http://www.incometaxindia.gov.in/Pages/tools/income-tax-calculator-234ABC.aspx
it is a link which redirects to the income tax calculation website.
17. Link Encoding: Unicode (UTF-8)
18. Click Save.
19. Go to Page Layout, Click Faculty Layout.
20. Click Custom Links, Drag and drop the “Tax Calculation” link in the Custom Link area.
21. Click save.
8
To create an Application:
22. Go to “Setup” and type “App Manager” in Quick Find Box.
23. Click on “New Lightning App” to create a Lightning Application.
24. Name it as “Faculty Database”, give the description for your application.
25. Uploading Image and changing colors are optional, then click Next.
26. Navigation Style: Standard Navigation, click Next.
27. No need to add any Utility Bar, click Next.
28. Add the following Items: Faculties, Reports and Dashboards, click Next.
29. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and then click Save &
Finish.
30. Go to App Manager, select your application and select Faculties and click “New” to add some details to your Application.
31. Click the entry you added, go to details.
32. Press the “Tax Calculation” link to calculate income tax.
9
33. Click OK so that it will redirect you to the income tax calculator website.
34. Enter the required Details and press “Calculate”.
10
Program 4:
Create a web application to book a flight from a source to destination and store the status of
flight, and departure timings on database.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if you are currently
in Salesforce Classic by clicking your picture in the right top corner and then click on “Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
4. Name the object “Flight”
5. Allow Reports and Allow Search
6. Check the box in front of “Launch New Custom Tab Wizard after saving this custom object”
7. To create a Tab for the Object:
Select any Tab Style for the object “Flight”. Click Next, Next, leave the defaults and Save.
8. To add fields to the Object:
Go to “Fields & Relationships” option of Student object and Click “New”.
9. Add the following fields one after the other:
Field Label: Source, Data Type: Text Area, Make it as Required Field.
Field Label: Destination, Data Type: Text Area, Make it as Required Field.
Field Label: Departure Timing, Data Type: Date/Time, Make it as Required Field.
10. To add a rule to the departure timing so that it is greater than today’s date and the present time:
Go to Validation Rule of Flight Object and click “New”
Name it as “Date Time in Range”
Error Condition Formula: Departure_Timing__c<NOW()
Error Message: Date or time less than the current one
Error Location: Field – Departure Timing
Click Save.
11
Create one more object to provide status of the flight:
12
17. To create an Application:
18. Go to “Setup” and type “App Manager” in Quick Find Box.
19. Click on “New Lightning App” to create a Lightning Application.
20. Name it as “Flight Details”, give the description for your application.
21. Uploading Image and changing colors are optional, then click Next.
22. Navigation Style: Standard Navigation, click Next.
23. No need to add any Utility Bar, click Next.
24. Add the following Items: Flights, Statuses, Reports and Dashboards, click Next.
25. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and then click Save &
Finish.
26. Go to App Manager, select your application and select Flights and click “New” to add some details to your Application.
27. Make sure you will get an error message when you try to give the Departure Timing less than the current time and today’s
date.
13
Program 5
Create a Collaborative learning environment for a particular learning topic using
Google Apps. Google Drive, Google Docs and Google Slides must be used for hosting e-
books, important articles and presentations respectively
Creating an Environment
3. Right click on the folder created and tap “Share” then click on “Advanced”.
4. Under the “Who has Access” section click on “Change” of the first option.
5. Now check on the “On- Public on the web” option & set the Access to “Can
View Only” and click Save. This will make your folder to be accessible by
anyone on the internet to view its contents and download them.
14
6. Copy the link and post it or share it to anyone you like.
15
b. Google Docs: Named “Important Links” where you will add some important links to
the doc file. The file will keep saving hence you need to press save. Press
“Share” if you wish to share it.
c. Google Slide: Named “Welcome Viewer” make a few changes and add your
content and choose your theme.
16
d. You may also add many other items as necessary.
At any point in future if you wish to share this environment right click on the folder and click
https://drive.google.com/drive/folders/1HFMvQPBI5_9sjCC9dhrxFqLbDouWQ46g?usp=sharing
17
18
Program 6:
Develop Department events' registration app with an object containing event
name, date/time, venue as parent relationship, another object containing
student name, branch, event name, date/time, venue as child relationship.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if
you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on
“Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
4. Name the object “Event”
5. Allow Reports and Allow Search
6. Check the box in front of “Launch New Custom Tab Wizard after saving this custom object”
7. To create a Tab for the Object:
Select any Tab Style for the object “Event”. Click Next, Next, leave the defaults and Save.
8. To add fields to the Object:
Go to “Fields & Relationships” option of Student object and Click “New”.
9. Add the following fields one after the other:
Field Label: Event Time, Data Type: Date/Time, Make it as Required Field.
Field Label: Event Venue, Data Type: Text Area, Make it as Required Field.
10. To add a rule to the Event Date/Time so that it is greater than today’s date and the present time:
Go to Validation Rule of Flight Object and click “New”
Name it as “Date Time in Range”
Error Condition Formula: Event_Time__c<NOW()
Error Message: Date or time less than the current one
19
Error Location: Field – Event Time
Click Save.
20
17. To create an Application:
18. Go to “Setup” and type “App Manager” in Quick Find Box.
19. Click on “New Lightning App” to create a Lightning Application.
20. Name it as “Events’ Registrations”, give the description for your application.
21. Uploading Image and changing colors are optional, then click Next.
22. Navigation Style: Standard Navigation, click Next.
23. No need to add any Utility Bar, click Next.
24. Add the following Items: Events, Students, Reports and Dashboards, click Next.
25. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and
then click Save & Finish.
26. Go to App Manager, select your application and select Events and click “New” to add some details to your
Application.
27. Make sure you will get an error message when you try to give the Event Time less than the current time
and today’s date and also you can’t select events which are not there in the list.
21
Program 6:
Develop Blood donation registration app with an object which records donors' name,
age and blood group as parent relationship and another object containing hemoglobin
level, donated or not details (if age>18) child relationship.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if
you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on
“Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
4. Name the object “Donor”
5. Allow Reports and Allow Search
6. Check the box in front of “Launch New Custom Tab Wizard after saving this custom object”
7. To create a Tab for the Object:
Select any Tab Style for the object “Donor”. Click Next, Next, leave the defaults and Save.
8. To add fields to the Object:
Go to “Fields & Relationships” option of Student object and Click “New”.
9. Add the following fields one after the other:
Field Label: Age, Data Type: Picklist, Values: 18,18-40,40-50,50-60
Make it as Required Field and restrict values to the values in the picklist.
Field Label: Blood Group, Data Type: Picklist, Values: A+, A-, B+, B-, AB+, AB-, O+, O-
Make it as Required Field and restrict values to the values in the picklist.
22
10. Name the Object “Details”
11. Allow Reports and Allow Search
12. Check the box in front of “Launch New Custom Tab Wizard after saving this custom object”
13. Create a Tab for the Object
14. To add fields to the Object:
Go to “Fields & Relationships” option of Student object and Click “New”.
15. Add the following fields one after the other:
Field Label: Hemoglobin level, Data Type: Picklist
Field Label: Donor Name, Data Type: Look up Relationship, Related to: Donor.
Field Label: Blood Group, Data Type: Look up Relationship, Related to: Donor.
Field Label: Age, Data Type: Master-Detail Relationship, Related to: Donor.
Sharing Setting: Read-Only. Leave the defaults and Save.
Field Label: Donated, Data Type: Picklist, Values: Yes, No
Make it as a Required Field.
23
26. Make sure you will can’t donate when your age is less than 18 years and when your hemoglobin level is not
sufficient.
24
Program 7:
Develop Attendance maintenance app with an object to record student details and
attendance and a provide a link to college websites' results webpage.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if
you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on
“Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
25
To give a link to college website:
10. Go to “Buttons, Links and Actions” of Student Object and click “New Button or Link”
11. Name it as “Check Details”
12. Select the radio button “Detail Page Link” as it is a website link.
13. Behavior: Display in new window
14. Content Source: URL
15. Field Type:
16. In the empty space provided, type
http://118.102.235.104/webform/default.aspx?clientWidth=1366&clientHeight=613
Link Encoding: Unicode (UTF-8)
17. Click Save.
18. Go to Page Layout, Click Student Layout.
19. Click Custom Links, Drag and drop the “Check Details” link in the Custom Link area.
20. Click save.
26
To create an Application:
21. Go to “Setup” and type “App Manager” in Quick Find Box.
22. Click on “New Lightning App” to create a Lightning Application.
23. Name it as “Student Attendance Details”, give the description for your application.
24. Uploading Image and changing colors are optional, then click Next.
25. Navigation Style: Standard Navigation, click Next.
26. No need to add any Utility Bar, click Next.
27. Add the following Items: Students, Reports and Dashboards, click Next.
28. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and
then click Save & Finish.
29. Go to App Manager, select your application and select Faculties and click “New” to add some details to
your Application.
30. Click the entry you added, go to details.
31. Press the “Check Details” link to check the attendance and other details.
32. Click OK so that it will redirect you to the website.
27
Program 8:
Create a web application with objects to maintain database of an art gallery which
contains objects like artists, arts, and inventory and provide a link to any of the art
gallery website.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if
you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on
“Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
28
Create one more object to store Collection details:
29
Create one more object to store inventory details:
22. Go to “Buttons, Links and Actions” of Art Object and click “New Button or Link”
23. Name it as “Gallery”
24. Select the radio button “Detail Page Link” as it is a website link.
25. Behavior: Display in new window
26. Content Source: URL
27. Field Type: Gallery
28. In the empty space provided, type
29. http://www.aakritiartgallery.com/
Link Encoding: Unicode (UTF-8)
30. Click Save.
31. Go to Page Layout, Click Art Layout.
32. Click Custom Links, Drag and drop the “Gallery” link in the Custom Link area.
33. Click save.
30
To create an Application:
34. Go to “Setup” and type “App Manager” in Quick Find Box.
35. Click on “New Lightning App” to create a Lightning Application.
36. Name it as “Art Gallery Database”, give the description for your application.
37. Uploading Image and changing colors are optional, then click Next.
38. Navigation Style: Standard Navigation, click Next.
39. No need to add any Utility Bar, click Next.
40. Add the following Items: Artists, Arts, Inventories, Reports and Dashboards, click Next.
41. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and
then click Save & Finish.
42. Go to App Manager, select your application and select Faculties and click “New” to add some details to
your Application.
43. Click the entry you added, go to details.
44. Press the “Gallery” link to check the details.
45. Click OK so that it will redirect you to the website.
31
32
Program 9:
Create a web application with objects to record details about staff, syllabus and
activities of a department and provide a link to college website from any of the
objects.
1. Launch your Salesforce Trailhead Playground by opening any module and Switch to Lightning Experience if
you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on
“Switch to Lightning Experience”
2. Then go to Setup gear icon and click “Setup”.
3. Click on “Object Manager” and click “Create > Custom Object” to create new Custom Object.
33
Field Label: Branch, Data Type: Text, Make it as a required field.
22. Go to “Buttons, Links and Actions” of Art Object and click “New Button or Link”
34
23. Name it as “College”
24. Select the radio button “Detail Page Link” as it is a website link.
25. Behavior: Display in new window
26. Content Source: URL
27. Field Type: College
28. In the empty space provided, type
29. http://www.dr-ait.org/
Link Encoding: Unicode (UTF-8)
30. Click Save.
31. Go to Page Layout, Click Activities Layout.
32. Click Custom Links, Drag and drop the “College” link in the Custom Link area.
33. Click save.
To create an Application:
34. Go to “Setup” and type “App Manager” in Quick Find Box.
35. Click on “New Lightning App” to create a Lightning Application.
36. Name it as “Department Details”, give the description for your application.
37. Uploading Image and changing colors are optional, then click Next.
38. Navigation Style: Standard Navigation, click Next.
39. No need to add any Utility Bar, click Next.
40. Add the following
41. Items: Staff, Syllabuses, Activities, Reports and Dashboards, click Next.
42. Assign it to System Administrator Profile by selecting System Administrator and pressing right arrow and
then click Save & Finish.
35
43. Go to App Manager, select your application and select Faculties and click “New” to add some details to
your Application.
44. Click the entry you added, go to details.
45. Press the “College” link to check the details.
46. Click OK so that it will redirect you to the website.
36
CLOUDSIM
37
Case Study:
Modeling and simulation Cloud computing environments, including Data Centers,
Hosts and Cloudlets and perform VM provisioning using CloudSim: Design a host
with two CPU cores, which receives request for hosting two VMs, such that each one
requires two cores and plans to host four tasks units. More specifically, tasks t1, t2, t3
and t4 to be hosted in VM1, while t5, t6, t7, and t8 to be hosted in VM2. Implement
space-shared allocation policy and time-shared allocation policy. Compare the results.
Steps:
The Above Problem Requires the Following
1) Eclipse IDE
2) Cloudsim Package
Note : In Case Eclipse IDE (any version is Installed) and configure it with Cloudsim Package
Step1:
Open the Eclipse IDE Create New Java Project
Give Name As “CloudsimDemo” and Click Next
38
Goto Library and Click Add external Jars And
39
Click Finish
Step2:
Create New Class Called “First” And Write the Following Java Code
This Java Code Consist For Creating DataCeenter , Data Center Broker , VMs, Cloudlets
The Space Shared Policy Is Used
First.java
importjava.io.File;
importjava.io.FileNotFoundException;
importjava.io.FileOutputStream;
importjava.io.IOException;
importjava.text.DecimalFormat;
importjava.util.ArrayList;
importjava.util.Calendar;
importjava.util.LinkedList;
importjava.util.List;
importjava.util.Random;
importorg.cloudbus.cloudsim.Cloudlet;
importorg.cloudbus.cloudsim.CloudletSchedulerTimeShared;
importorg.cloudbus.cloudsim.Datacenter;
importorg.cloudbus.cloudsim.DatacenterBroker;
importorg.cloudbus.cloudsim.DatacenterCharacteristics;
importorg.cloudbus.cloudsim.Host;
importorg.cloudbus.cloudsim.Log;
importorg.cloudbus.cloudsim.Pe;
importorg.cloudbus.cloudsim.Storage;
importorg.cloudbus.cloudsim.UtilizationModel;
importorg.cloudbus.cloudsim.UtilizationModelFull;
40
importorg.cloudbus.cloudsim.Vm;
importorg.cloudbus.cloudsim.VmAllocationPolicySimple;
importorg.cloudbus.cloudsim.VmSchedulerTimeShared;
importorg.cloudbus.cloudsim.core.CloudSim;
importorg.cloudbus.cloudsim.provisioners.BwProvisionerSimple;
importorg.cloudbus.cloudsim.provisioners.PeProvisionerSimple;
importorg.cloudbus.cloudsim.provisioners.RamProvisionerSimple;
//VM Parameters
long size = 10000; //image size (MB)
int ram = 512; //vm memory (MB)
intmips = 250;
long bw = 1000;
intpesNumber = 1; //number of cpus
String vmm = "Xen"; //VMM name
//create VMs
Vm[] vm = new Vm[vms];
for(inti=0;i<vms;i++){
vm[i] = new Vm(idShift + i, userId, mips, pesNumber, ram, bw, size, vmm, new
CloudletSchedulerSpaceShared());
list.add(vm[i]);
}
41
return list;
}
//cloudlet parameters
long length = 40000;
long fileSize = 300;
long outputSize = 300;
intpesNumber = 1;
UtilizationModelutilizationModel = new UtilizationModelFull();
for(inti=0;i<cloudlets;i++){
cloudlet[i] = new Cloudlet(idShift + i, length, pesNumber, fileSize, outputSize,
utilizationModel, utilizationModel, utilizationModel);
// setting the owner of these Cloudlets
cloudlet[i].setUserId(userId);
list.add(cloudlet[i]);
}
return list;
}
42
/**
* Creates main() to run this example
*/
public static void main(String[] args) {
Log.printLine("Starting Clouddemo...");
try {
// First step: Initialize the CloudSim package. It should be called
// before creating any entities.
intnum_user = 2; // number of users
Calendar calendar = Calendar.getInstance();
booleantrace_flag = false; // mean trace events
//Fourth step: Create VMs and Cloudlets and send them to broker
vmlist = createVM(brokerId, 2, 0); //creating 2 vms
cloudletList = createCloudlet(brokerId, 8, 0); // creating 8 cloudlets
43
broker.submitVmList(vmlist);
broker.submitCloudletList(cloudletList);
CloudSim.stopSimulation();
printCloudletList(newList);
Log.printLine("Clouddemo finished!");
}
catch (Exception e)
{
e.printStackTrace();
Log.printLine("The simulation has been terminated due to an unexpected error");
}
}
44
// create a list to store these PEs before creating
// a Machine.
List<Pe> peList1 = new ArrayList<Pe>();
intmips = 1000;
//4. Create Hosts with its id and list of PEs and add them to the list of machines
inthostId=0;
int ram = 16384; //host memory (MB)
long storage = 1000000; //host storage
intbw = 10000;
hostList.add(
new Host(
hostId,
new RamProvisionerSimple(ram),
new BwProvisionerSimple(bw),
storage,
peList1,
new VmSchedulerSpaceShared(peList1)
)
);
45
// properties of a data center: architecture, OS, list of
// Machines, allocation policy: time- or space-shared, time zone
// and its price (G$/Pe time unit).
String arch = "x86"; // system architecture
String os = "Linux"; // operating system
String vmm = "Xen";
double time_zone = 10.0; // time zone this resource located
double cost = 3.0; // the cost of using processing in this resource
double costPerMem = 0.05; // the cost of using memory in this resource
double costPerStorage = 0.1; // the cost of using storage in this resource
double costPerBw = 0.1; // the cost of using bw in this resource
LinkedList<Storage>storageList = new LinkedList<Storage>(); //we are not adding
SAN devices by now
return datacenter;
}
//to the specific rules of the simulated scenario
46
private static DatacenterBrokercreateBroker(String name){
/**
* Prints the Cloudlet objects
* @paramlist list of Cloudlets
*/
private static void printCloudletList(List<Cloudlet> list) {
int size = list.size();
Cloudlet cloudlet;
Step3:
Change the Run Configuration
Go to Common , In the Standard Input and Output Section
Check File Checkbox And Add the file Path Using The FileSystem
Let The Path Be “C:\Users\Prakash\Desktop\output/file.xls” And Click Run
48
Step4:
Open The Output File And Convert Text To Columns
Plot The Graph Time Versus Cloudlets
Change the Time shared policy to Space shared And obtain the graph
Compare The Results Of The Timeshared And Space Shared
49
50
VIRTULIZATION: CASE STUDY
VMWARE
51
Case Study:
Problem Description:
Case Study of ESXi Bare Metal Hypervisor: Create and deploy a Virtual Machine on
ESXi Server with an operating system onto it. Deploy a web application onto the VM
to read a text file and display it on the web browser.
The above case study has been done with ESXi Bare Metal Hypervisor 6.0 and VMware vSphere Client 6.0. In this
scenario the ESXi Server runs on a separate computer with certain configured network parameters to connect to
the ESXi host Server, from some other computer running VMware vSphere Client.
All the steps involved in creation and deployment of a typical VM according to the problem description is shown
below with appropriate screenshots for each and every steps performed.
Step 1: Make sure that the ESXi Server in configured and is online.
Step 2: Run VMware vSphere Client Software on your computer. Enter the ESXi host Server credentials and click
login button.
52
Successful login results in a window similar to the below screenshot. The pallet in the left shows the IP address of
the host ESXi Server.
53
Clicking on the plus (+) button on the left of server IP address shows the already deployed VMs.
54
Step 3: Right click on the host server IP address or click the Create a new Virtual machine option in Basic Tasks
section.
Step 4: In the Create New Virtual Machine Window select Configurationas Custom and select Next.
55
Step 5: Type a Virtual Machine name in Name field and Click Next.
56
Step 7: Select a Virtual Machine Version for your VM and click Next.
Step 8: Select Guest Operating System Type and Version and click NEXT.
57
Step 10: Keep everything default here and click Next.
58
Step 11: Keep everything default here and click Next.
60
Step 16: Check Edit the virtual machine setting before completion check box and click Continue.
61
Step 17: Select the Datastore ISO File option option and click Browse button.
62
Step 19: Double click on ubantu servers in the Name list.
Step 20: Select compatible .iso file (ubuntu-16.04.3-server-i386.iso is used for this document) and click Finish.
63
Step 21: In the parent window check the Connect at power on check box. This connects the datastore .iso file for
operating system installation.
64
Step 23: Click the Getting Started Tab. Virtual machine settings can be accessed by clicking on the Edit Virtual
machine settings option in Basic Tasks section.
Step 24: Click on the Power on the virtual machine option in Basic Tasks section. This will boot the VM created for
the very first time. This first boot will require installation of the operating system.
65
Step 25: Click on the Console Tab. Console tab shows the running Operating System.
66
For this documentation Ubuntu Server 16.04.3 is used. Next set of instruction steps will guide you through the
operating system installation. Ubuntu Server is basically a command based operating system which can be
efficiently used using the keyboard. During the installation we require several special keys of the keyboard.
Note: Other key functions are displayed at the bottom of the screen.
Next steps will help you select the option require to be chosen when the installation need user customization.
Step 26: Select English language on language selection list and hit Enter key.
Step 27: Highlight Install Ubuntu Server option among installation options and hit Enter key.
67
Step 28: Select English as installation process language and hit Enter key.
Step 29: Select India as your country in Select your location menu and hit Enter key.
68
Step 30: Select No option in Configure the Keyboard section to use the default keyboard setup and hit Enter key.
Step 31: Select English (US) as the origin of the keyboard and hit Enter key.
69
Step 32: Select English (US) as the Keyboard layout and hit Enter key.
Step 33: Select Continue to configure the network in the Configure the network box.
70
Step 34: On the next screen select Configure network manually.
Step 35: On the next screen type in the IP address for your VM, don’t type conflicting IP address here. To check if
the IP address is available or not you can use the ping command in a terminal. Each VM must have a unique IP
address.
71
Step 36: On the next screen type in the subnet mask and click continue. [Your VM will not be accessible from
outside if ESXi host server and the your VM happens to be in differed subnet.]
Step 37: This screen requires the IP address of up to 3 name servers. Select continue without any input on this
screen for now.
72
Step 38: Type in the host name for your computer and click continue.
73
Step 40: On the set up users and password box set provide the user name for your VM
Step 41: On the next screen type in a password and continue. We require this password to login to the VM.
74
Step 42: On this screen re-type your password to verify.
75
Step 44: In partition disks space screen select Guided - use entire disk and set up LVM
Step 45: Select the default highlighted option on the next screen by hitting the Enter key.
76
Step 46: For write the changes to disks and configure LVM select YES.
Step 47: On the next screen leave the default value as it is and continue.
77
Step 48: For write changes to disks select Yes.
78
Step 50: On this screen select No automatic updates.
Step 51: On this screen just continue will HTTP proxy information as blank.
79
Step 52: On Software selection screen select LAMP server and standard system utilities for installation and
continue. [Use space key to select the software names]
Step 53: Next screen asks for MySQL root password. Type in a password and continue.
80
Step 54: Here Re-verify your MySQL password.
Step 55: On Install the GRUB boot loader on the hard disk screen select Yes.
81
Step 56: To finish with the installation finally select Continue.
Step 57: Go to Getting started Tab, Select Edit Virtual machine settings in the Basic Tasks section.
82
Step 57: Select CD/DVD drive 1 (edited) option.
83
Step 59: Again return to the console Tab. Your operating system should boot asking user login
and password. Enter user name and password that was set in earlier steps.
Now that the VM is up with ubuntu server and LAMP server installed you need to deploy a web app to the server.
84
Step 60: go to /var/www/html folder where you will deploy a html program as per requirement.
Step 61: Once in the above directory type in the command “sudo vim <prgm_name>.html” to create
<prgm_name>.html and open it in vim editor.
85
Step 62: To save your program press Esc key then “:wq” (without quotes) and hit Enter key.
86
Step 63: check the presence of file in the directory using the dircommand.
Step 64: Open any browser on your host operating system (windows) and type in the address your program on the
LAMP server hosted on your VM as http://ipaddress/prgm_name.htmle.g
http://192.168.173.251/first.html
Step 65: You should get something like the below screenshot. Select a text file to view.
87
Output: You get the content of the file displayed on the browser window as the output.
Step 67: To safely shutdown your ubuntu vm use the command sudopoweroff
88
HTML program:
first.html
<html>
<head>
<script>
varopenFile = function(event) {
reader.onload = function(){
89
node.innerText = text;
console.log(reader.result.substring(0, 200));
};
reader.readAsText(input.files[0]);
};
</script>
</head>
<body>
<div id='output'>
...
</div></body></html>
MINI PROJECT
BUILD CONFERENCE MANAGEMENT APP ON SALESFORCE PLATFORM.
Completion certificate
90
91
AWS
(Amazon Web Services )
92
1. Create a RDS and launch in your custom VPC
Network.
This document explains how to create a RDS and launch that in your own VPC network.
(Note: Assume that you already created a VPC and Launch an Instance into that VPC.
This process explained in the document “Create a VPC and Launch a server”).
(Note: Before creating a RDS you need to create a private subnet for your VPC
network.)
93
Step 2 : Click “subnets” on the left panel.
Step 3 : Now you can see there is one subnet group (Public Subnet) created in your VPC
(Your VPC id/10.0.0.0/16). Now Click on “Create Subnet” button.
94
95
Step 4 : Give a Name to the subnet and select you own vpc from the “VPC drop down”.
Select an “availability zone” (Which is not used by “Public Subnet” of your VPC). Give
CIDR block range. Click on “Yes, Create” button.
Step 5 : Now you can see the subnet is created in your VPC.
96
Step 6 : Click on “Services”. Click on “RDS” service.
97
(Note: Before creating the subnet groups you need to note down your VPC ID and
subnets for that VPC).
98
Step 9 : Give a name to the “Subnet”. Select your own “VPC ID”. Select the
“Availability Zone” and “subnet”. Click on “Add” button.
Step 10 : Now select another “Availability Zone” and “Subnet”. Click on “Yes, Create”
button.
(Note: Before clicking on “Yes, Create” check that two subnets are added or not)
99
100
Step 11 : Now you can see that “DB subnet group “ is created.
Step 12 : Click on “RDS Dashboard” on the left panel. Click on “Get Started” button.
101
Step 13 : Select your desired “Database Engine” from the list and click on “Select”
button.
Step 14 : If you want Multi-AZ Deployement, select the “first radio button” otherwise
select the “second radio button”. Click on “Next” button.
102
Step 15 : Select your desired DB instance from the “DB Instance Class” drop down.
Select Multi-AZ option from the drop down. Select the storage type from the drop down
and give your desired storage space range. Enter the Details (DB instace Identifier,
Master user name, password and confirm password). Click on “Next” button.
103
Step 16 : Select your own vpc id from the “VPC Dropdown”. Select the “public
accessibility” from the dropdown. Select your desired Availability Zone from the
dropdown. Give a name to your Database and check the database port is and mention the
“Backup retention period” as per your needs and if you want a Time frame for your
backup, configure the time frame from “Backup Window” Dropdown. Click on “Launch
DB Instance” button.
104
Step 17 : Click on “Close” button
Step 18 : Now you can see one db instance is created. ( It will take 5-10min to create the
database instance). You will have the DB name, VPC ID, End Point (which is used to
connect to the DB Instace from your EC2 instance) and etc…
Note : To connect to the Database from your Ec2 Instance, You need the following. a).
Step 1 : Login to your AWS Management Console. Go to “Services” and click on VPC
service.
106
Step 2 : Click on “Start VPC Wizard” button.
Step 3 : Select “VPC with single public subnet” and click on “Select” button.
107
Step 4 : Give a name to the VPC and click on “Create VPC” button.
108
Step 6 : You can see that your VPC is created and it’s available.
109
Step 8 : Click on “Launch Instance” button.
Step 9 : Choose your desired AMI(Windows or Linux) and click on “select” Button.
110
Step 10 : Choose your Instance type and click on “Configure instance details” button.
Step 11 : Select your own VPC in the “Network” drop down box and click on “Add
Storage” button.
111
112
Step 12 : Click on “Tag Instance” button.
(Note: If you want to add another volume use the “Add New Volume” button)
Step 13 : Give a Name for the Instance. Click on “Configure Security Groups” button.
113
Step 14 : Select “Create new security group” and give a name for your security group
add the rules using the “Add Rule” button. Then click on “Review and Launch” button.
Step 15 : If your volume type is “Magnetic” you will get a message screen select “Second
Option” and click “Next”.
114
Step 16 : Click on “Launch” button.
Step 17 : Select “Create new key pair” from the drop down box and give a name for the
key pair. Click on “Download keypair”. Then click on “Launch Instance” button.
115
Step 18 : click on “View Instance” button.
Step 19 : Now you can see that one instance is running in your Region.
116
3. Creating IAM users and applying policies.
This document explains how to create an IAM user and applying user policies in AWS Management
Console.
Step 1: Open the AWS Management Console. Click on Services button and click on IAM (Identity and
Access Management).
Step 2: On the left panel Click on User. Click on Create New User button.
117
118
Step 3: Enter username in the text box and Click on Create button.
119
120
Step 4: Click on Download Credentials button. Then Click on Close.
121
Step 6: Click on Attach User Policy button.
Step 7: Click on Select Policy Template radio button. Choose the Policy and Click on Select
button. Click on Apply Policy button.
122
123
Step 8: Now you can see your policy. To create password for the user, Click on Manage Password
button.
124
Step 9: Select the 2nd radio button and enter your password in Password field and Click on Apply
button.
Step 10: Now Click on the Dashboard on the left pane. Using the shown Link and Username,
Password you can login to you AWS Account.
125
Step 11: To delete the user, Select the user and Click on User Actions then Click on Delete User
button. Then Click on Yes, Delete button.
126
127
4. CUSTOM VPC & Subnet Creation.
Login to AWS Console with the respective Credentials.
Select Region
128
Give VPC Details
129
Create Subnet(PUBLIC)
130
Create Internet gateway
131
Attach IGW to VPC
132
Create Public Route Table
133
Public Route Table Appearance post defining Routes
134
Successful Public Subnet Association message
135
Associate Private Route Table with Subnet
136
Troubleshoot Option for DNS Host Name
137
5. Logging to the EC2 Windows Instance
3.To get your password, Choose the location of pem file and click on
“Decrypt Password” tab.
138
4. Click on “Get Password” to get your password.
139
6.Run downloaded rdf file and login using generated password
140
7.Click Yes to continue
141
8.Wait until completion of connection
142
6. Login to EC2 Instance:
Give your Public IP under Hostname
143
Give the Custom Username corresponding to the AMI's & then
became root.
144
INDUSTRY
CERTIFICATIONS
TO BE COMPLETED
SALES FORCE
SUPER BADGE
RANGER
VMWARE
Virtualization for Beginners
HOL-1810-01-SDC- Introduction to
Vsphere
145
SALESFORCE RANGER:
146
SALESFORCE SUPER BADGE:
147
VMWARE BEGINNER:
148