0% found this document useful (0 votes)
8 views6 pages

Unit 3 Cyber Security

This document outlines the step-by-step process for setting up a cloud architecture and implementation on an Ubuntu system. It includes instructions for configuring network settings, installing necessary packages, setting up a MySQL database, and configuring NFS for storage. The final steps guide the user to access the CloudStack management interface using a web browser with default credentials.

Uploaded by

bharad waj
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)
8 views6 pages

Unit 3 Cyber Security

This document outlines the step-by-step process for setting up a cloud architecture and implementation on an Ubuntu system. It includes instructions for configuring network settings, installing necessary packages, setting up a MySQL database, and configuring NFS for storage. The final steps guide the user to access the CloudStack management interface using a web browser with default credentials.

Uploaded by

bharad waj
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/ 6

INT362: CLOUD ARCHITECTURE & IMPLEMENTATION - I

Step 1: sudo apt-get update


Step 2: sudo apt update
Step 3: ip a
Step 4: ip r
Step 5: sudo nano /etc/netplan/01-network-manager-all.yaml (open the file)
Step 6: Perform the following steps:
Step 6.1: (Delete the content from the file of 01-network-manager-all.yaml)
Step 6.2: (Open the following link: https://www.freecodecamp.org/news/setting-a-static-
ip-in-ubuntu-linux-ip-address-tutorial/)
Step 6.3: From the link copy the data as it is, that is present before step no 4 in the link

Step 6.4: Paste The above-copied data into the 01-network-manger-all.yaml file.
Step 6.5: After performing step 6.4, press ctrl+s (to save the file), ctrl+x (to exit it from
the file)
Step 7: sudo netplan apply
Step 8: sudo systemctl restart NetworkManager
Step 9: hostname --fqdn (this time the output shall be “ubuntu”)
Step 10: sudo nano /etc/hosts
Step 10.1: In this file in the third line (which is empty) type IP address then give space
(then type) apache.cloud.u1 (then space) then type cloud.
Step 10.2: Now save the file (ctrl+s) and exit from the file (ctrl+x)
Step 11: sudo hostnamectl set-hostname cloud
Step 12: hostname --fqdn (this time the output shall be “apache.cloud.u1”)
Step 13: sudo apt install bridge-utils
Step 14: sudo brctl addbr cloudbr0
Step 15: sudo brctl addif cloudbr0 ens33 (Please mention your interface name in place of
ens33)
Step 16: sudo nano /etc/netplan/01-network-manager-all.yaml
Step 16.1: Open the following link:
https://www.inf.ufpr.br/jwvflauzino/vines/installation-guide/ubuntu-18.04-all-in-one.html
Step 16.2: From the Website, please copy the data provided and paste in the file of 01-
network-manager-all.yaml

Step 16.3: Now make changes concerning interface name, Gateway, and IP address
Step 16.4: After making the changes, save the file (Ctrl+S), and exit the file (Ctrl+X)
Step 17: sudo netplan apply
Step 18: sudo systemctl restart NetworkManager
Step 19: sudo apt install ntp
Step 20: sudo systemctl enable ntp
Step 21: sudo systemctl start ntp
Step 22: sudo apt install chrony
Step 23: sudo apt install openjdk-11-jdk
Step 24: sudo nano /etc/apt/sources.list.d/cloudstack.list
Step 24.1: Open the following link in Browser:
https://docs.cloudstack.apache.org/en/latest/installguide/management-server/
Step 24.2: Copy the following link: deb https://download.cloudstack.org/ubuntu focal
4.18 and paste in the nano file opened i.e, cloudstack.list
Step 24.3: Save the file (Ctrl+S) and exit the file (Ctrl+x)
Step 25: wget -O - https://download.cloudstack.org/release.asc |sudo tee
/etc/apt/trusted.gpg.d/cloudstack.asc
Step 26: sudo apt update
Step 27: sudo apt-get update
Step 28: sudo apt install cloudstack-management
Step 29: sudo apt install mysql-server
Step 30: sudo nano /etc/mysql/my.cnf
Step 30.1: Add the following line in the file at the bottom

Step 30.2: Ctrl +s [Save] and Ctrl +x [Exit]


Step 31: sudo systemctl restart mysql
Step 32: sudo mysql_secure_installation
Step 32.1: Ensure to provide “Y” for all the places where it is asking for.
Step 32.2: For password strength please select “0”
Step 33: sudo mysql
Step 34: Perform the following steps:
Step 34.1: CREATE DATABASE `cloud`;
Step 34.2: CREATE DATABASE `cloud_usage`;
Step 34.3: CREATE USER cloud@'localhost' identified by '123@Msql';
Step 34.4: CREATE USER cloud@'%' identified by '1234@Sql';
Step 34.5: GRANT ALL ON cloud.* to cloud@`localhost`;
Step 34.6: GRANT ALL ON cloud.* to cloud@`%`;
Step 34.7: GRANT ALL ON cloud_usage.* to cloud@`localhost`;
Step 34.8: GRANT ALL ON cloud_usage.* to cloud@`%`;
Step 34.9: GRANT process ON *.* TO cloud@`localhost`;
Step 34.10: GRANT process ON *.* TO cloud@`%`;
Step 35: sudo cloudstack-setup-databases cloud:password@localhost --deploy-as=root
Step 36: sudo cloudstack-setup-management
Step 37: sudo ufw allow mysql
Step 38: sudo mkdir -p /export/primary
Step 39: sudo mkdir -p /export/secondary
Step 40: sudo nano /etc/exports
Step 40.1: Paste the line: /export *(rw,async,no_root_squash,no_subtree_check)
Step 41: sudo apt install nfs-kernel-server
Step 42: sudo exportfs -a
Step 43: service nfs-kernel-server restart
Step 44: sudo mkdir -p /mnt/primary /mnt/secondary
Step 45: sudo chmod 777 /etc/fstab
Step 46: sudo echo "192.168.145.132:/export/primary /mnt/primary nfs
rsize=8192,wsize=8192,timeo=14,intr,vers=3,noauto 0 2" >> /etc/fstab
Step 47: sudo echo "192.168.145.132:/export/secondary /mnt/secondary nfs
rsize=8192,wsize=8192,timeo=14,intr,vers=3,noauto 0 2" >> /etc/fstab
Step 48: sudo mount /mnt/primary
Step 49: sudo mount /mnt/secondary
Step 50: Open the Browser and type the url: http://192.168.145.132:8080/
The following page shall open:
Provide the default Credentials
Username: admin
Password: password
The following page will open

You might also like