0% found this document useful (0 votes)
17 views

gracyCCT_removed_removed

Uploaded by

Harsh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

gracyCCT_removed_removed

Uploaded by

Harsh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

A

Practical File
Submitted
For
Bachelor of Technology
In
Computer Science & Engineering
At

2023-24
CLOUD COMPUTING TECHNOLOGIES

Submitted To: Submitted By:


Adarsh Tiwari Gracy Singh
Assistant Professor B.Tech CSE Sec: B
ByteXL 21BTCSE0079
INDEX
S.No. Name of Practical Date Remarks

1. Generate a virtual Machine on your


Laptop.

2. Install Turbo C in guest OS and


execute C program.

3. Test ping command to test the


communication between the guest
OS and Host OS.

4. Create a form or interface in cloud


environment.

5. Study the process to Establish an


AWS account. Use the AWS
Management Console to launch an
EC2 instance and connect to it.

6. Create a Hello World Example with


Google App Engine in HTML.

7. Develop a Guestbook Application


using Google App Engine.
Practical 1
Generate a virtual Machine on your Laptop.
The general steps to create a virtual machine on your laptop:
1. Choose Virtualization Software: Decide which virtualization software you
want to use. Popular choices include VMware Workstation, VirtualBox,
and Hyper-V (for Windows), or KVM/QEMU (for Linux).
2. Download and Install Virtualization Software: Go to the website of the
chosen virtualization software and download the installer. Follow the
installation instructions provided by the software.
3. Download an Operating System ISO: You'll need an ISO file of the
operating system you want to install on the virtual machine. This could be
a Linux distribution like Ubuntu, Fedora, or a Windows installation ISO.
4. Create a New Virtual Machine: Open your virtualization software and
create a new virtual machine. You'll typically find an option like "New VM"
or "Create VM" in the software's interface. Follow the wizard to set up the
VM, specifying details like the operating system type and version, RAM,
CPU, disk size, etc.
5. Allocate Resources: Allocate the necessary resources to the virtual
machine, such as CPU cores, RAM, and disk space. Ensure that you allocate
resources according to the requirements of the operating system and any
applications you plan to run on the VM.
6. Mount the ISO: In the virtual machine settings, attach the ISO file of the
operating system you want to install to the virtual CD/DVD drive. This will
allow the VM to boot from the ISO file.
7. Install the Operating System: Start the virtual machine and follow the on-
screen instructions to install the operating system, just as you would on a
physical machine. This typically involves selecting the language, keyboard
layout, disk partitioning, etc.
8. Install Virtual Machine Tools (Optional): Many virtualization platforms
offer tools or drivers that enhance the performance and integration of the
virtual machine with the host system. Install these tools if available for
your virtualization software.
9. Configure Networking (Optional): Configure networking settings for the
virtual machine if you need it to access the internet or communicate with
other devices on your network.
10.Install Additional Software: Once the operating system is installed, you
can install any additional software or applications you need within the
virtual machine.
11.Customize VM Settings (Optional): You can further customize the virtual
machine settings as per your requirements, such as adjusting display
resolution, enabling shared folders, configuring USB device access, etc.
12.Save and Backup: Once your virtual machine is set up and configured to
your liking, consider creating a snapshot or backup of the VM. This will
allow you to revert to a previous state if anything goes wrong in the future.
Practical 2
Install Turbo C in guest OS and execute C program.
The steps to install Turbo C in a guest operating system (assuming it's a Windows
virtual machine) and execute a C program:
1. Download Turbo C: You can download Turbo C from various sources on
the internet. Look for a trusted source to download the setup file.
2. Transfer the Setup File to the Guest OS: If your virtualization software
supports file sharing between the host and guest OS, transfer the
downloaded Turbo C setup file to the guest OS. Alternatively, you can use
a USB drive or any other method to transfer the file.
3. Install Turbo C: Locate the setup file in the guest OS and run it. Follow the
installation instructions provided by the Turbo C installer. Typically, you'll
need to agree to the license agreement, choose the installation directory,
and complete the installation process.
4. Write a C Program: Open a text editor (such as Notepad) in the guest OS
and write a simple C program. For example, you can create a file named
hello.c with the following content:

Save the file in a directory of your choice.


5. Compile the C Program: Open the Turbo C IDE (Integrated Development
Environment) from the Start menu or desktop shortcut. In Turbo C, go to
File > Open and navigate to the directory where you saved your hello.c
file. Open the file in the Turbo C editor.
Practical 3
Test ping command to test the communication between the guest OS and Host
OS.
The communication between the guest OS and host OS using the ping command:
1. Find Host IP Address: First, you need to know the IP address of your host
operating system. You can usually find this by running the ipconfig
command in the Command Prompt (Windows) or ifconfig command in the
Terminal (Linux/macOS) on your host OS.
2. Find Guest IP Address: Similarly, you need to know the IP address of your
guest operating system. You can find this by running the same ipconfig or
ifconfig command within the guest OS.
3. Ping Host from Guest: In the guest OS, open a terminal or Command
Prompt window and use the ping command followed by the IP address of
your host OS. For example, if your host OS IP address is 192.168.1.2, you
would run:

This command will send ICMP echo requests to the host OS. If the
communication is successful, you'll see responses indicating the round-trip time
and packet loss (if any).
4. Ping Guest from Host: Similarly, you can test communication from the
host OS to the guest OS by opening a terminal or Command Prompt
window on the host OS and running the ping command followed by the IP
address of the guest OS.

Replace <guest_IP_address> with the actual IP address of the guest OS. If the
communication is successful, you'll see responses indicating the round-trip time
and packet loss.
Practical 4
Create a form or interface in cloud environment.
Creating a form or interface in a cloud environment can be accomplished using
various services provided by cloud providers like AWS, Azure, or Google Cloud
Platform. We can create a simple form using AWS services:
1. Amazon Web Services (AWS):
AWS offers several services that can be used to create forms or interfaces. One
common approach is to use AWS Lambda for serverless backend logic and
Amazon API Gateway to create RESTful APIs. For the frontend, you can use AWS
Amplify or host static files on Amazon S3.
Here's a basic overview of the steps involved:
a. Backend Setup:
• Create an AWS Lambda function to handle form submissions. This
function will process the data submitted from the form.
• Set up an API endpoint using Amazon API Gateway to trigger the
Lambda function when the form is submitted.
b. Frontend Setup:
• Create an HTML form with fields for user input. This can be hosted
on Amazon S3 or served via AWS Amplify.
• Use JavaScript to handle form submission. When the form is
submitted, send a POST request to the API endpoint created in API
Gateway.
c. Security and Permissions:
• Configure IAM roles and policies to ensure that your Lambda
function and API Gateway endpoint have the necessary permissions
to interact with other AWS services.
• Consider implementing authentication and authorization
mechanisms if needed to secure your form.
d. Monitoring and Logging:
• Set up logging and monitoring for your Lambda function and API
Gateway to track form submissions and diagnose any issues.
e. Testing and Deployment:
• Test your form thoroughly to ensure it functions as expected.
• Deploy your frontend and backend components to AWS.
2. Alternative Cloud Providers:
If you prefer using a different cloud provider, similar concepts can be applied
using their respective services. For example, on Microsoft Azure, you could use
Azure Functions for serverless backend logic, Azure API Management for API
creation, and Azure Storage for hosting static files. On Google Cloud Platform,
you could use Google Cloud Functions, Google Cloud Endpoints, and Google
Cloud Storage.
3. Third-Party Services:
Alternatively, you can use third-party services like Google Forms, Typeform, or
Wufoo to create forms without directly managing cloud infrastructure. These
services typically provide a user-friendly interface for designing forms and
handling submissions, with options for customization and integration with other
platforms.
Practical 5
Study the process to Establish an AWS account. Use the AWS Management
Console to launch an EC2 instance and connect to it.
Case Study : Amazon web Services
AWS (Amazon Web Services) is a comprehensive, evolving cloud computing
platform provided by Amazon. It includes a mixture of infrastructure-as-a-service
(IaaS), platform-as-a-service (PaaS) and packaged software-as-a-service (SaaS)
offerings. AWS offers tools such as compute power, database storage and
content delivery services.
Creating an EC2 Instance in AWS
1.Create an AWS account :
1. Open the Amazon Web Services home page
2. Choose Create an AWS account.
3. Enter your account information, and then choose Verify email address.
This will send a verification code to your specified email address.
4. Enter your verification code, and then choose Verify.
5. Enter a strong password for your root user, confirm it, and then choose
Continue.
6. Choose Business or Personal. Personal accounts and business accounts
have the same features and functions.
7. Enter your company or personal information.
8. Read and accept the AWS Customer Agreement. Be sure that you read
and understand the terms of the AWS Customer Agreement.
9. Choose Continue. At this point, you'll receive an email message to
confirm that your AWS account is ready to use. You can sign in to your new
account by using the email address and password you provided during
sign up. However, you can't use any AWS services until you finish activating
your account.
10. Enter the information about your payment method, and then choose
Verify and Continue. If you want to use a different billing address for your
AWS billing information, choose Use a new address.
3.Choose a name of your instance

4.Choose an Amazon Machine Image (AMI)


8.Add storage

9.Review and Launch


10. Connect to your instance
Practical 6
Create a Hello World Example with Google App Engine in HTML.
An example of a simple "Hello, World!" HTML page deployed on Google App
Engine:
1. Create HTML File:
Create a file named index.html with the following content:

Save this file in a directory on your local machine.


2. Deploy to Google App Engine:
Now, let's deploy this HTML file to Google App Engine:
• Make sure you have the Google Cloud SDK installed and configured
on your local machine. You can download it from here:
https://cloud.google.com/sdk/docs/install.
• Open a terminal or command prompt and navigate to the directory
where your index.html file is located.
• Run the following command to deploy your HTML file to Google App
Engine:

• Replace your-project-id with the ID of your Google Cloud project.


3. Access the Deployed Page:
Once the deployment is complete, you can access your deployed HTML page
using the following URL:

Replace your-project-id with the ID of your Google Cloud project.


You should see the "Hello, World!" message displayed in your web browser when
you visit the URL.
Practical 7
Develop a Guestbook Application using Google App Engine.
A basic example of a Guestbook Application using Google App Engine, written in
Python with a simple HTML front end:
1. Create the Guestbook Application Directory Structure:
Create a directory structure for your Guestbook Application:

2. Create the app.yaml Configuration File:


Create a file named app.yaml with the following content:
4. Create the index.html Template:
Create a file named index.html inside the templates directory with the following
HTML code:
5. Deploy the Application to Google App Engine:
Make sure you have the Google Cloud SDK installed and configured.
Open a terminal or command prompt, navigate to the guestbook-app directory,
and run the following command to deploy your application:

6. Access the Guestbook Application:


Once the deployment is complete, you can access your Guestbook Application
using the provided URL.

You might also like