0% found this document useful (0 votes)
6 views36 pages

Cognitive Computing

The document outlines a series of experiments conducted by Nandini Singh as part of a Cloud Computing Lab course at Dr. Akhilesh Das Gupta Institute of Professional Studies. Each experiment includes aims, procedures, and results related to virtualization, data sharing, and cloud computing technologies. Key topics covered include installing virtual machines, creating VLANs, setting up a Hadoop cluster, and implementing cloud security controls.
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)
6 views36 pages

Cognitive Computing

The document outlines a series of experiments conducted by Nandini Singh as part of a Cloud Computing Lab course at Dr. Akhilesh Das Gupta Institute of Professional Studies. Each experiment includes aims, procedures, and results related to virtualization, data sharing, and cloud computing technologies. Key topics covered include installing virtual machines, creating VLANs, setting up a Hadoop cluster, and implementing cloud security controls.
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

DR.

AKHILESH DAS GUPTA INSTITUTE OF


PROFESSIONAL STUDIES
(FORMERLY DR. AKHILESH DAS GUPTA INSTITUTE OF TECHNOLOGY &
MANAGEMENT)

DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND DATA SCIENCE


CLOUD COMPUTING LAB FILE
(AIDS328P)

Submitted by: Nandini Singh Enrollment No: 03815611921

Submitted to: Ms. Meenu Section and Semester: T-13, 6th Se


INDEX
[Link]. Name of Experiment Page No. Date Signature
1 Install virtualbox/vmware workstation and 1
install a c compiler in the virtual machine
and execute a sample program.

2 Create type 2 virtualization in vmware. 4


Allocate memory and storage space as per
requirement. Install guest os on that vmware.

3 Adding a new virtual disk to a virtual 7


machine. Convert basic disc to dynamic disc
and vice versa
a. Shrink and extend virtual disk
b. Create, manage, configure and
schedule snapshots
c. Create spanned, mirrored and striped
volume
d. Create raid 5 volume

4 Sharing and data transfer between the virtual 9


machines.
5 Create type 2 virtualization on esxi 6.5 11
server.
6 Create a vlan in cisco packet tracer. 13
7 Create a vpn from one virtual machine to 15
another virtual and pass data secure way

8 Find procedure to set up the one node 18


hadoop cluster.

9 To simulate a cloud scenario using CloudSim 23


and run a scheduling algorithm that is not
present in CloudSim.

10 Data analytics in the cloud: Perform data 31


analytics and processing in a cloud
environment using services such as AWS
EMR, Google Cloud Dataproc, or Azure
Hdinsight.

11 Implement cloud security controls such as 33


encryption, access management, and network
security using cloud-native services.

NANDINI SIMGH| 03815611921


1

EXPERIMENT -1
AIM : Install virtualbox/vmware workstation and install a c compiler in the virtual machine
and execute a sample program.
Procedure :
1. Install VirtualBox or VMware Workstation:

• Download the appropriate installer for VirtualBox or VMware Workstation from their
respective official websites.
• Follow the installation instructions provided by the installer for your operating
system.
• Launch the virtualization software once the installation is complete.
2. Create a New Virtual Machine:
• Open Virtual Box or VMware Workstation.
• Click on "New" to create a new virtual machine.
• Follow the wizard to set up the virtual machine, specifying parameters such as
memory, storage, and operating system installation ISO.
3. Install an Operating System:
• Start the virtual machine.
• Follow the prompts to install an operating system within the virtual machine. For this
practical, you can choose a lightweight Linux distribution such as Ubuntu Server or
CentOS.

Procedure: To install a c compiler in the virtual machine and execute a sample program.
Step 1: Open the terminal on Ubuntu and install C compiler – “sudo apt install gcc”

NANDINI SINGH | 03815611921


2

Step 2: Once the installation finished open the editor

Step 3: Type a simple C program on editor and save it

Step 4: Compile and run the C program

NANDINI SINGH | 03815611921


3

Result: Thus a C compiler is installed in the virtual machine and C program was executed
and output was obtained successfully.

NANDINI SINGH | 03815611921


4

EXPERIMENT - 2
AIM : Create type 2 virtualization in vmware. Allocate memory and storage space as per
requirement. Install guest os on that vmware.
Procedure :
1. Install VMware Workstation:
• Download the VMware Workstation installer from the official website.
• Follow the installation instructions provided by the installer for your operating
system.
• Launch VMware Workstation once the installation is complete.
2. Create a New Virtual Machine:
• Open VMware Workstation.
• Click on "File" > "New Virtual Machine" to start the New Virtual Machine Wizar
• Choose "Typical" configuration and click "Next".
3. Select Guest Operating System:
• Choose the operating system you want to install as the guest OS. For example, if you
want to install Ubuntu, select "Linux" and then choose the Ubuntu version from the
dropdown menu.
• Click "Next".
4. Allocate Memory:
• Specify the amount of memory (RAM) to allocate to the virtual machine. Allocate
memory based on the requirements of the guest OS and the applications you plan to
run within it.
• Click "Next".
5. Allocate Disk Space:

• Choose whether to create a new virtual disk or use an existing one. For this practical,
let's create a new virtual disk.
• Specify the disk capacity. Allocate disk space based on the requirements of the guest
OS and the applications you plan to install.
• Choose whether to store the virtual disk as a single file or split into multiple files.
Click "Next".
6. Customize Hardware (Optional):

• You can customize hardware settings such as CPU cores, network adapter, display
resolution, et, according to your requirements.
• Once customization is complete, click "Finish" to create the virtual machine.
7. Install Guest Operating System:
• Start the virtual machine by clicking "Power on this virtual machine".

NANDINI SINGH | 03815611921


5

• Follow the prompts to install the guest operating system within the virtual machine.
Insert the installation media (e.g., ISO file) if require
• Complete the installation process by following the on-screen instructions provided by
the guest OS installer.

Result :

NANDINI SINGH | 03815611921


6

NANDINI SINGH | 03815611921


7

EXPERIMENT- 3
Aim: Adding a new virtual disk to a virtual machine. Convert basic disc to dynamic disc and
vice versa
e. Shrink and extend virtual disk
f. Create, manage, configure and schedule snapshots
g. Create spanned, mirrored and striped volume
h. Create raid 5 volume
Procedure:
1. Adding a New Virtual Disk:

• Open the virtual machine settings in your virtualization software (e.g., VMware
Workstation).
• Add a new virtual disk and specify its size and type (e.g., SCSI, SATA).
• Save the settings and start the virtual machine.
2. Converting Basic Disk to Dynamic Disk and Vice Versa:
• In Windows, open Disk Management.
• Right-click on the disk you want to convert and choose "Convert to Dynamic Disk" or
"Convert to Basic Disk" as appropriate.
• Follow the prompts to complete the conversion process.
3. Shrinking and Extending Virtual Disks:
• In your virtualization software, select the virtual machine and navigate to its settings.
• Choose the virtual disk you want to resize.
• Use the options to shrink or extend the disk size as needed.
4. Managing Snapshots:
• Take a snapshot of the virtual machine at its current state.
• Perform changes or updates to the virtual machine.
• If needed, revert to the snapshot to restore the virtual machine to its previous state.
5. Creating Different Volume Types:
• In Windows, open Disk Management.
• Right-click on "Disk Management" and choose the appropriate option to create a new
volume (spanned, mirrored, striped, RAID 5).
• Follow the wizard to configure the volume settings, including disk selection and
allocation size

NANDINI SINGH | 03815611921


8

Result:

NANDINI SINGH | 03815611921


9

EXPERIMENT- 4
Aim: Sharing and data transfer between the virtual machines.
Procedure:
1. Shared Folders:

• Many virtualization platforms offer the capability to create shared folders that can be
accessed by multiple virtual machines.
• In VMware Workstation, for example, you can set up shared folders by navigating to
VM settings > Options > Shared Folders.
• Enable shared folders and specify the host folder(s) that you want to share with the
virtual machine.
• Access the shared folder from within the virtual machine's operating system to
transfer files between the host and guest systems.
2. Network File Sharing:
• Set up network file sharing protocols such as SMB (Server Message Block) or NFS
(Network File System) to share files between virtual machines.
• Configure file sharing settings on the host system and within the virtual machines to
allow access to shared directories.
• Access shared files using file explorer or terminal commands from within the virtual
machines.
3. Direct Data Transfer:

• Use direct data transfer methods such as SCP (Secure Copy Protocol) or SFTP (SSH
File Transfer Protocol) to transfer files between virtual machines.
• Enable SSH (Secure Shell) on the virtual machines and use SCP or SFTP commands
to transfer files securely over the network.
• Authenticate using appropriate credentials (e.g., username and password) to establish
a secure connection for data transfer.
4. Shared Clipboard:

• Some virtualization software allows for shared clipboards between the host system
and virtual machines.
• Enable shared clipboard functionality in the virtualization software settings.
• Copytext or files on the host system and paste them directly into applications running
within the virtual machines, and vice vers
5. Shared Network:

• Ensure that all virtual machines are connected to the same virtual network within the
virtualization software.
• Assign IP addresses to each virtual machine within the same subnet to facilitate
network communication.
• Use standard networking protocols (e.g., TCP/IP) to transfer data between virtual
machines over the network.

NANDINI SINGH | 03815611921


10

Result:

NANDINI SINGH | 03815611921


11

EXPERIMENT- 5
Aim: Create type 2 virtualization on esxi 6.5 server.
Procedure:
1. Install VMware Workstation on macOS:
• Download the VMware Workstation for macOS installer from the VMware website.
• Double-click the installer file and follow the on-screen instructions to install VMware
Workstation on your macOS system.
2. Connect to Your ESXi Server:
• Launch VMware Workstation on your macOS.
• Click on File > New Virtual Machine.
• Select New Remote Server.
• Enter the IP address or hostname of your ESXi server.
• Enter your ESXi server username and password when prompted.
• Click Connect to establish a connection to your ESXi server.
3. Create a Virtual Machine on ESXi:
• Once connected to your ESXi server, click on Create a New Virtual Machine.
• Follow the wizard to create a new virtual machine. Specify the operating system,
virtual hardware configuration, and allocate resources like CPU cores, memory, and
storage.
• Customize any additional settings as needed.
4. Install Guest Operating System:
• After creating the virtual machine, power it on.
• Follow the installation procedure to install the guest operating system of your choice.
This involves attaching an ISO file containing the installation media to the virtual
machine and going through the installation process.
5. Configure Networking:
• Configure networking for your virtual machine to ensure it can communicate with
other systems on your network or the internet. You can choose between bridged,
NAT, or host-only networking modes depending on your requirements.
6. Manage Virtual Machines:

• You can now manage your virtual machines directly from VMware Workstation on
your macOS. This includes powering them on/off, taking snapshots, and configuring
virtual hardware settings.
7. Additional Considerations:

• Ensure that your macOS system meets the hardware requirements for running
VMware Workstation and hosting virtual machines.

NANDINI SINGH | 03815611921


12

• Keep your virtual machine files and configurations backed up regularly to prevent
data loss.
Result:

NANDINI SINGH | 03815611921


13

EXPERIMENT- 6
Aim: Create a vlan in cisco packet tracer.
Procedure:
1. Launch Cisco Packet Tracer:
• Open Cisco Packet Tracer on your computer.
2. Create a Network Topology:
• Drag and drop the devices you want to include in your network topology. Typically,
this includes switches, routers, and PCs.
3. Configure Switches:
• Select a switch in your topology and click on it to open its configuration.
• Enter the CLI (Command Line Interface) by clicking on the CLI ta
• Enter privileged EXEC mode by typing enable and pressing Enter.
• Enter global configuration mode by typing configure terminal and pressing Enter.
4. Create VLANs:

• To create a VLAN, use the command vlan followed by a VLAN number. For
example, vlan 10.
• Repeat this step to create additional VLANs as neede
5. Assign Ports to VLANs:

• Navigate to the interfaces you want to assign to VLANs. This could be individual
ports or port ranges.
• Enter interface configuration mode by typing interface and pressing Enter. For
example, interface GigabitEthernet0/1.
• Assign the interface to a VLAN using the command switchport access vlan . For
example, switchport access vlan 10.
6. Configure Trunk Ports (Optional):

• If you want to allow traffic from multiple VLANs to pass through a single switch port
(trunking), configure the port as a trunk port.
• Enter interface configuration mode for the desired port.
• Use the command switchport mode trunk to configure the port as a trunk port.
7. Verify VLAN Configuration:

• After configuring VLANs and assigning ports, verify the configuration using the show
vlan command to display the VLAN information and show interfaces switchport to
verify port assignments.
8. Test Connectivity:
• Connect devices to the switch ports assigned to VLANs and test connectivity between
devices within the same VLAN.

NANDINI SINGH | 03815611921


14

9. Save Configuration:

• Once you are satisfied with the VLAN configuration, save the configuration of the
switches to ensure that changes are preserve Use the write or copy running-config
startup-config comman

Result:

NANDINI SINGH | 03815611921


15

EXPERIMENT- 7
Aim: Create a vpn from one virtual machine to another virtual and pass data secure way.
Procedure:
Step 1:Open the ubuntu in VM

Step 2:Open the file manager and go to Other Locations

Step 3:Open the folder named “mnt”

Step 4:Now open the “hgfs” folder Initially the folder will be empty

Step 5:Now right click ubunu 64-bit(VM name) and select properties,then go to optios tab

Step 6:Select the shared folders,change the radio button to “Always enabled” and click Add

Step 7:Click Next

NANDINI SINGH | 03815611921


16

Step [Link] the folder/file that has to be shared to VM in Host Path

Step 9:Check Read Only and click Finish

Step 10:Now in the same location “Computer>mnt>hgfs” the folder that are shared from host is
visible

Step 11:

Step 12:The files can be accessed in Read Only Mode in the VM now Result: Thus file sharing
between is done between hostmachine and the virtual machine successfully.

NANDINI SINGH | 03815611921


17

NANDINI SINGH | 03815611921


18

EXPERIMENT- 8
Aim: Find procedure to set up the one node hadoop cluster.
Procedure:
Step 1: Verify the Java installed
javac -version
Step 2: Extract Hadoop at C:\Hadoop

Step 3: Setting up the HADOOP_HOME variable


Use windows environment variable setting for Hadoop Path setting.

Step 4: Set JAVA_HOME variable


Use windows environment variable setting for Hadoop Path setting.

Step 5: Set Hadoop and Java bin directory path

NANDINI SINGH | 03815611921


19

Step 6: Hadoop Configuration :


For Hadoop Configuration we need to modify Six files that are listed below-
1. [Link]
2. [Link]
3. [Link]
4. [Link]
5. [Link]
6. Create two folders datanode and namenode
Step 6.1: [Link] configuration
<configuration>
<property>
<name>[Link]</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
Step 6.2: [Link] configuration
<configuration>
<property>
<name>[Link]</name>
<value>yarn</value>
</property>

NANDINI SINGH | 03815611921


20

</configuration>
Step 6.3: [Link] configuration
<configuration>
<property>
<name>[Link]</name>
<value>1</value>
</property>
<property>
<name>[Link]</name>
<value>C:\hadoop-2.8.0\data\namenode</value>
</property>
<property>
<name>[Link]</name>
<value>C:\hadoop-2.8.0\data\datanode</value>
</property>
</configuration>
Step 6.4: [Link] configuration
<configuration>
<property>
<name>[Link]-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>[Link]</name>
<value>[Link]</value>
</property>
</configuration>
Step 6.5: [Link] configuration
Set "JAVA_HOME=C:\Java" (On C:\java this is path to file jdk.18.0)

NANDINI SINGH | 03815611921


21

Step 6.6: Create datanode and namenode folders


1. Create folder "data" under "C:\Hadoop-2.8.0"
2. Create folder "datanode" under "C:\Hadoop-2.8.0\data"
3. Create folder "namenode" under "C:\Hadoop-2.8.0\data"

Step 7: Format the namenode folder


Open command window (cmd) and typing command “hdfs namenode –format”

Step 8: Testing the setup


Open command window (cmd) and typing command “[Link]”

Step 8.1: Testing the setup:


Ensure that namenode, datanode, and Resource manager are running
Step 9: Open: [Link]

NANDINI SINGH | 03815611921


22

Step 10:
Open: [Link]

NANDINI SINGH | 03815611921


23

EXPERIMENT- 9
Aim: To simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not
present in CloudSim.
Procedure:
Step 1: Download CloudSim installable files from:
[Link] and unzip the downloa

Step 2: Open Netbeans and create a new project named “Clousim”

NANDINI SINGH | 03815611921


24

Step 3: Type the code and add the jar file to the libraries. The jar file will be in the extracted
cloudsim.

NANDINI SINGH | 03815611921


25

NANDINI SINGH | 03815611921


26

Step 4:Run the application

OUTPUT:

NANDINI SINGH | 03815611921


27

Step 5:Again create a new project and name it as “Cloudsim2”

NANDINI SINGH | 03815611921


28

Step 6:Type the code and include the jar file

NANDINI SINGH | 03815611921


29

Step 7:Run the application

OUTPUT:

NANDINI SINGH | 03815611921


30

Result: Thus the simulation a cloud scenario using CloudSim and run a scheduling algorithm
that is not present in CloudSim is done and the output is obtained successfully.

NANDINI SINGH | 03815611921


31

EXPERIMENT- 10
Aim: Data analytics in the cloud: Perform data analytics and processing in a cloud
environment using services such as AWS EMR, Google Cloud Dataproc, or Azure Hdinsight.
Procedure:
1. Selecting a Cloud Service:
• AWS EMR: Amazon’s service is designed for big data processing using popular
frameworks like Apache Hadoop and Spark. It’s highly scalable and integrates
seamlessly with other AWS services.
• Google Cloud Dataproc: This service is a fast, easy-to-use, managed cluster
platform for running Apache Hadoop and Spark jobs. Dataproc also allows you to
create clusters quickly, manage them easily, and save money by turning clusters off
when you don’t need them.
• Azure HDInsight: Microsoft’s service is a fully-managed cloud service that makes it
easier to process large amounts of data. It supports a broad range of scenarios like
ETL, Data Warehousing, Machine Learning, and IoT.

2. Setting Up the Cluster:


• Initialization: Start by initializing a cluster in your chosen service. You’ll need to
select the right size and number of nodes, which depends on the amount of data
you’re working with.
• Configuration: Configure your cluster with the necessary software stack. Most
services offer a variety of data processing frameworks like Hadoop, Spark, Hive, etc.

3. Data Storage and Management:


• Storage: Use the cloud storage service (like Amazon S3, Google Cloud Storage, or
Azure Blob Storage) to store your datasets.
• Data Ingestion: Import your data into the cloud storage. This can be done through
data transfer services or directly uploading through the cloud provider’s console.

4. Data Processing:
• Developing Jobs: Write your data processing jobs using the appropriate framework.
For instance, you can write Spark jobs in Scala, Python, or Java.
• Running Jobs: Submit these jobs to the cluster. The cloud service will manage the
distribution of tasks across the nodes.

5. Monitoring and Optimization:


• Monitoring Tools: Use the tools provided by the cloud service to monitor the health
and performance of your clusters and jobs.
• Optimization: Analyze the performance metrics to optimize your jobs for speed and
cost efficiency.

6. Security:
• Access Control: Set up IAM roles and policies to control access to your clusters and
data.
• Data Encryption: Ensure that data at rest and in transit is encrypted using the tools
provided by the cloud service.

7. Compliance and Governance:

NANDINI SINGH | 03815611921


32

• Compliance Standards: Make sure that your setup complies with industry standards
and regulations.
• Audit Logs: Use logging services to keep track of operations and changes in the
environment.

8. Cleanup:
• Decommissioning: Once your processing is complete, you can decommission the
cluster to stop incurring charges. Alternatively, you can downscale your cluster if you
expect further processing needs.

NANDINI SINGH | 03815611921


33

EXPERIMENT- 11
Aim: Implement cloud security controls such as encryption, access management, and
network security using cloud-native services.
Theory: Cloud security controls are essential for protecting data, applications, and
infrastructure in cloud environments. These controls typically encompass encryption, access
management, and network security.
• Encryption:
Encryption ensures that data is protected both at rest and in transit. At rest, encryption secures
data stored in cloud databases, storage services, and backups. In transit, encryption
safeguards data as it moves between users and cloud services, preventing interception and
unauthorized access.
• Access Management:
Access management involves controlling and monitoring who can access cloud resources and
what actions they can perform. Identity and Access Management (IAM) solutions are used to
manage user identities, roles, and permissions. By implementing the principle of least
privilege, organizations can ensure that users only have access to the resources necessary to
perform their tasks.
• Network Security:
Network security focuses on protecting cloud networks from unauthorized access, data
breaches, and other cyber threats. This involves segmenting the network using virtual private
clouds (VPCs) or virtual networks (VNets), implementing firewalls and security groups to
control traffic, and deploying distributed denial of service (DDoS) protection to mitigate
attacks.
Procedure :
1. Encryption:
• DataEncryption at Rest:
• Chooseacloud-native encryption service such as AWS Key Management Service
(KMS), Google Cloud Key Management Service (KMS), or Azure Key Vault.
• Enableencryption for storage services such as Amazon S3, Google Cloud Storage, or
Azure Blob Storage.
• Implement encryption for databases using features like Transparent Data Encryption
(TDE) for SQL databases.
• DataEncryption in Transit:
• UseTransport Layer Security (TLS) or Secure Sockets Layer (SSL) protocols to
encrypt data transmitted over the network.
• Implement HTTPSfor webapplications to encrypt data between clients and servers.
• ManageSSL/TLScertificates using cloud-native services like AWS Certificate
Manager or Google Cloud SSL Certificates.
2. Access Management:

NANDINI SINGH | 03815611921


34

• Identity and Access Management (IAM):


• Utilize cloud provider IAM services such as AWS IAM, Google Cloud IAM, or
Azure Active Directory (Azure AD) to manage user identities and access permissions.
• Implement role-based access control (RBAC) and assign permissions based on roles
and responsibilities.
• Enable multi-factor authentication (MFA) for user access to enhance security.
• Resource Policies:
• Implement resource-level access controls using policies.
• Use AWS IAM policies, Google Cloud IAM policies, or Azure Resource Manager
policies to control access to specific resources.
3. Network Security:
• Virtual Private Cloud (VPC) or Virtual Network (VNet):
• Segment the cloud network using VPCs (in AWS) or VNets (in Azure) to isolate
resources and control traffic flow.
• Configure network access control lists (NACLs) or security groups to restrict inbound
and outbound traffic at the subnet or instance level.
• Firewalls and Security Groups:
• Set up cloud provider firewalls or security groups to filter traffic based on IP
addresses, ports, and protocols.
• Limit access to only necessary ports and protocols to reduce the attack surface.
• DDoSProtection:
• EnableDDoSprotection services provided by cloud providers such as AWS Shield,
Google Cloud Armor, or Azure DDoS Protection to mitigate DDoS attacks.
4. Continuous Monitoring and Compliance:

• Implement logging and monitoring solutions provided by cloud providers to monitor


cloud infrastructure and detect security incidents.
• Enableauditing and logging for cloud services to track access and configuration
changes.
• Regularly review security configurations to ensure compliance with industry
standards and regulations.
Result:

NANDINI SINGH | 03815611921

You might also like