Download as pdf or txt
Download as pdf or txt
You are on page 1of 135

LAB WORKBOOK

19CS3037S-CLOUD INFRASTRUCTURE AND SERVICES

Team CIS
K L UNIVERSITY | CLOUD INFRASTRUCTURE AND SERVICES– 19CS3037S
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

LAB WORKBOOK

STUDENT NAME
REG. NO
YEAR
SEMESTER
SECTION
FACULTY

1
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Organization of the STUDENT LAB WORKBOOK


The laboratory framework includes a creative element but shifts the time-intensive
aspects outside of the Two-Hourclosed laboratory period. Within this structure, each
laboratory includes three parts: Pre-lab, In-lab, and Post-lab.
a. Pre-lab
The Prelab exercise is a homework assignment that links the lecture with the
laboratory period - typically takes 2 hours to complete. The goal is to synthesize the
information they learn in lecture with material from their textbook to produce a
working piece of software. Prelab Students attending a two-hour closed laboratory
are expected to make a good-faith effort to complete the Prelab exercise before
coming to the lab. Their work need not be perfect, but their effort must be real
(roughly 80 percent correct).
b. In-lab
The In-lab section takes place during the actual laboratory period. The First hour of
the laboratory period can be used to resolve any problems the students might have
experienced in completing the Prelab exercises. The intent is to give constructive
feedback so that students leave the skill with working Prelab software - a significant
accomplishment on their part. During the second hour, students complete the In-lab
exercise to reinforce the concepts learned in the PreLab. Students leave the lab
having received feedback on their Prelab and In-lab work.
c. Post-lab
The last phase of each laboratory is a homework assignment that is done following
the laboratory period. In the Post-lab, students analyse the efficiency or utility of a
given system call. Each Post-lab exercise should take roughly 120 minutes to
complete.

2
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

2021-22 ODD SEMESTER LAB CONTINUOUS EVALUATION

In-LAB
Sl. Pre-LAB Post-LAB Viva Voce Total Faculty
Date Experiment Name
No (5M) LOGIC EXECUTION RESULT ANALYSIS (5M) (5M) (50M) Signature
(10M) (10M) (10M) (5M)

3
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

2021-22 ODD SEMESTER LAB CONTINUOUS EVALUATION

4
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK Name of The Experiment / TOPIC Page No.

1 Introduction to eucalyptus private 1-10


cloud(components overview)?
2 Installation of VMWARE in existing operating 17-29
system?
3 Implementing eucalyptus in VMWARE with 30-36
FASTSTART 3.4.2 ISO file?
4 Cloud in a Box - Install Eucalyptus using FastStart 37-52
3.1.2?
5 Installation of eucalyptus cloud in multi node? 53-60

6 Eucalyptus 3.2 User Console overview of the 61-72


features and functionality?
7 Install Eucalyptus 3 1 using FastStart - Part 1 - NC 73-84
Install?
8 Install Eucalyptus 3.1 using FastStart - Part 2 - 85-99
CLC Install?
9 Building a Private Cloud with Ubuntu Server 10.04 100-111
Enterprise Cloud (Eucalyptus)?
10 Design and Deploy a trusted eucalyptus cloud : 112-119
project?
11 Deploy Eucalyptus with Ansible: project? 120-130

12 Eucalyptus Cloud Installation (Cloud Controller , 131-135


Node Controller)?

5
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK - 1
Introduction to eucalyptus private cloud(components overview)?

Definition: Eucalyptus is a paid and open-source computer software for building Amazon Web
Services-compatible private and hybrid cloud computing environments, originally developed by the
company Eucalyptus Systems. Eucalyptus is an acronym for Elastic Utility Computing Architecture for
Linking Your Programs To Useful Systems.

Eucalyptus Architecture:

-cloud controller

-cluster controller

-node controller

-storage controller

-walrus

Eucalyptus Services :

-network isolation

-elastic IPs

-security groups

-metadata service

Eucalyptus Operation Modes:

-managed mode

-managed(no vlan)

-system mode

-static mode

6
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

7
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

8
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

9
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

10
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

11
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

12
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

13
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

14
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

15
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

16
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

17
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

18
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

19
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

20
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-2

Installation of VMWARE in existing operating system?

Preparing a Virtual Windows Machine


 A computer with VMware Player. You can use any host OS you like, and if you
prefer to use some other virtual machine software like VirtualBox or Xen, that fine
too. You can download VMware Player here:

https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_pla
yer/5_0
 The instructions below assume you are using Windows 7. You can use VMware on
the Mac and other operating systems, but the steps may be somewhat different.

 It also contains a machine named "Win XP Target" -- do not use that one.

Start Your Host Machine


 If you are working in S214, select a machine to be your primary machine for the
semester.
 You will want to keep using the same machine as much as possible, because your
virtual machines will be there.
 Power on your computer.
 Boot to the operating system named "Win 7-S214".
 Log on as Student with no password.

Making Your VM (Virtual Machines) Folder


 Click Start, Computer. Find the "VMs-S214" drive and double-click it to open it.
 In the VMs-S214 window, right-click the empty space and click New, Folder.
 Name the folder YOUR NAME VMs replacing YOUR NAME with your own name.

DO NOT SAVE VIRTUAL MACHINES ON THE DESKTOP OR IN THE


DOCUMENTS FOLDER in S214!
 This fills the C drive and makes the machines unusable.
 If you save VMs on the C: drive, they will be erased to keep the machines running.

Copying the Virtual Machine 7-zip File into Your VM Folder


 Insert the VMs DVD into your machine.
 Copy the "WinXPSP3.7z" file into the VMs-S214\YOURNAME folder.

21
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

 Right-click the file, and click 7-zip, "Extract Files...". Extract it to the VMs-
S214\YOURNAME folder.
 If you don't have 7-zip, you can get it here: http://www.7-zip.org/

Starting VMware Player


 VMware Player is installed in the machines in S214.
 Double-click the "VMware Player" icon on the desktop to start it.
 If you don't have VMware player, you can get it here:

https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
Opening your Virtual Machine
 In the VMware Player window, click "Open a Virtual Machine".
 Browse to the VMs-S214 drive amd open the folder with your name on it.
 Open the "WinXPSP3" folder and double-click the "Windows XP Professional.vmx"
file.
 In the VMware Player window, click the green "Play virtual machine" button.
 VMware Player will pop up several dialog boxes, asking whether this machine was
moved or copied, telling you details about the processor, etc. Just accept the default
choice for all those boxes.
 The virtual machine should log in automatically. If it does not, log in as Student with
no password.

You should see a Windows XP desktop in the VMware Player window

WRITE YOUR OBSERVATIONS:

22
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

23
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-3

EUCALYPTUS CLOUD IN BOX INSTALLATION PROCEDURE:

Need this software: Vmware workstation 14

Nedd this software : Faststart 3.4.2 iso

Virtualization is required : enable while boot the system


vt-d : enable

In Bios configuration

Vt-x enable click tick mark while installing faststart /eucalyptus

Click vm ware installaton

Click typical

Ipconfig in cmd promt :

Ip address: 10.45.11.96
Net mask :255.255.0.0
Default :10.45.10.1
Dns serverlist: 192.168.51.1 source of internet eg: klu portal

asia/kolkata

Range: 10.45.11.96-10.45.11.120 our system ipaddress

Write changes to disk ok

24
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

25
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

26
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

27
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

28
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

29
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

30
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

31
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

32
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

33
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

34
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

35
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

36
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Root password

123456

123456

37
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

38
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

39
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

40
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

41
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

42
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

43
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

http://10.45.11.96:8888/

User credentials:

Account: demo
Username: admin
Password:password

https://10.45.11.96:8443

Admin credentials:
Account: eucalyptus
Username: admin
Password: admin

44
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Password: 123456

Click eucalyptus user console:

45
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Click : I understand the risk

Enter

Account name: demo

Username: admin

Password: password

46
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Admin console:

Account: eucalyptus

47
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Username: admin

Password: admin

48
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

49
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

50
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

51
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

52
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

53
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-4

Cloud in a Box - Install Eucalyptus using FastStart 3.1.2?

54
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

55
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

56
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

57
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

58
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

59
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

60
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

61
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

62
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

63
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

64
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

65
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

66
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

67
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

68
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-5

installation of eucalyptus cloud in multi node?

Select the

69
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Select Skip

Select next

70
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Select install anyway

Give your host name

71
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

72
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

73
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Choose your zone

74
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Enter your new password

75
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

76
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

It will take a little bit of time

77
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

78
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

79
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

80
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

81
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

82
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Check the lines

83
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Add these

84
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

85
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

86
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

87
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-6

Eucalyptus 3.2 User Console overview of the features and functionality?

Eucalyptus features :

 Supports both Linux and Windows virtual machines (VMs).

 Application program interface- (API) compatible with Amazon EC2 platform.

 Compatible with Amazon Web Services (AWS) and Simple Storage Service
(S3).

 Works with multiple hypervisors including VMware, Xen and KVM.

 Can be installed and deployed from source code or DEB and RPM packages.

 Internal processes communications are secured through SOAP and WS-


Security.

 Multiple clusters can be virtualized as a single cloud.

 Administrative features such as user and group management and reports.


 Open Source
o You can download it and have the source code at your fingertips.
 Modular
o The Eucalyptus components have well-defined interfaces (via WSDL,
since they are web services) and thus can be easily swapped out for
custom components.
 Distributed
o Eucalyptus allows its components to be installed strategically close to
the needed/used resources. For example Walrus can be installed close
to the storage, while the Cluster Controller can be installed close to the
cluster it will manage.
 Designed to Perform
o Eucalyptus was designed from the ground up to be scalable and to
achieve optimal performance in diverse environments (designed to
overlay an existing infrastructure).
 Flexible

88
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

o Eucalyptus is flexible and can be installed on a very minimal setup. Yet


it can be installed on thousands of cores and terabytes of storage. And
it can do so as an overlay on top of an existing infrastructure.
 Compatible
o Eucalyptus is compatible with the most popular and widely used Cloud
API currently available: Amazon EC2 and S3.
 Hypervisor Agnostic
o Currently Eucalyptus fully supports KVM and Xen. Additionally, the
Enterprise Edition supports the proprietary VMware hypervisor.
 Hybrid Cloud
o The above characteristics makes Eucalyptus easy to deploy as an
hybrid cloud. An hybrid cloud combines resources drawn from multiple
clouds, typically one private and one public.

Eucalyptus Components:
1. Cloud controller (CLC)
2. Warlus
3. Storage controller
4. Cluster controller
5. VMBroker (optional)
6. Node controller
Cloud controller (CLC)
The Cluster Controller (CC) generally executes on a cluster front-¬‐end machine, or
any machine that has network connectivity to both the nodes running NCs and to the
machine running the CLC. CCs gather information about a set of VMs and schedules
VM execution on specific NCs. The CC also manages the virtual instance network
and participates in the enforcement of all nodes served by a single CC must be in
the same broadcast domain (Ethernet).
Functions:
 To receive requests from CLC to deploy instances
 To decide which NCs to use for deploying the instances on
 To control the virtual network available to the instances
 To collect information about the NCs registered with it and report it to the CLC
Node controller

 The Node Controller (NC) is executed on every node that is designated for
hosting VM instances.NCs control the execution, inspection, and termination

89
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

of VM instances on the host where it runs, fetches and cleans up local copies
of instance images (the kernel, the root file system, and the ramdisk image),
and queries and controls the system software on its node (host OS and the
hypervisor) in response to queries and control requests from the cluster
controller. The Node controller is also responsible for the management of the
virtual network endpoint.

Functions:
 Collection of data related to the resource availability and utilization
 on the node and reporting the data to CC
 Instance life cycle management
Storage Controller (SC)

 The Storage Controller (SC) provides functionality similar to the Amazon


Elastic Block Store (Amazon EBS). The SC is capable of interfacing with
various storage systems (NFS, iSCSI, SAN devices, etc.).

Walrus

 Walrus allows users to store persistent data, organized as buckets and


objects. You can use Walrus to create, delete, and list buckets, or to put, get,
and delete objects, or to set access control policies. Walrus is interface
compatible with Amazon’s Simple Storage Service (S3), providing a
mechanism for storing and accessing virtual machine images and user data.

VMware Broker

 VMware Broker (Broker or VB) is an optional Eucalyptus component, which is


available if you are a Eucalyptus Subscriber. VMware Broker enables
Eucalyptus to deploy virtual machines (VMs) on VMware infrastructure
elements. VMware Broker mediates all interactions between the CC and
VMware hypervisors (ESX/ESXi) either directly or through VMware vCenter.

WRITE YOUR OBSERVATIONS:

90
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

91
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

92
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-7

Install Eucalyptus 3 1 using FastStart - Part 1 - NC Install?

Lab -7
Pre lab:

1. What is Node Controller?

2. Write Pros and Cons on Node Controller.

93
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

3. What will happen if Node Controller fails in middle?

4. Differentiate between Hyper-V and Node controller.

94
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

In lab:

Prasad wants to install node controller but he don’t know how to install but he want to have 3-high
performance cpu with ram of 8 GB and hardisk split of 2 with IPV-4 configuration setting. And he
need some specific configuration in which the network connection should be the following:
1. IPV-4 address – 192.168.211.11
2. Network mask – 24
3. DNS server address – 8.8.8.8.8.8.4.4
4. The gateway and the ipv4 address should be same and it should be public to all users
help Prasad to install node controller.

95
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

96
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Post lab:

1. Earlier Prasad has Installed a node controller with his required configuration after logging
into the controller he has been facing with some problems. To overcome the problem, he
need to enable NTP and has to synchronize the clock. Help Prasad to over come this problem
.

97
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

2. Describe briefly about the node controller and where it is used.

98
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

99
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-8
Install Eucalyptus 3.1 using FastStart - Part 2 - CLC Install?

Lab-8

Pre lab:

1. What is CLC?

2. Write Pros and Cons on CLC.

3. What will happen if CLC fails in middle?

100
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

4. Differentiate between Hyper-V and Node controller and CLC.

In lab:

Prasad wants to install cloud controller but he don’t know how to install but he want to have 3-high
performance cpu with ram of 8 GB and hardisk split of 2 with IPV-4 configuration setting. And he
need some specific configuration in which the network connection should be the following:
1. IPV-4 address – 192.168.211.10
2. Network mask – 24
3. DNS server address – 8.8.8.8.8.8.4.4
4. The gateway – 192.168.211.2
help Prasad to install cloud controller.

101
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

102
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Post lab:

1. Earlier Prasad has Installed a cloud controller with his required configuration after logging
into the controller he has been facing with some problems. To overcome the problem, he
need to configure some settings so the cloud controller can run properly.(Hint: mark all the
configuration as same and the public IP address should be 192.168.211.100-192.168.211.125
and node IP: 192.168.211.11)

2. Describe briefly about the cloud controller and where it is used.

103
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

104
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

105
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

106
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-9

Building a Private Cloud with Ubuntu Server 10.04 Enterprise Cloud


(Eucalyptus)

Lab -9

Pre-lab:

1. What are the steps to Install Ubuntu Server 10.04 Enterprise Cloud?

2. What is a private cloud?

107
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

3. What are the parts in the front end and node of a cloud infrastructure?

In-lab:

1. Build a private cloud with ubuntu server 10.04 enterprise edition?

108
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

109
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

Post-lab:

1. How do you own a private cloud with eucalyptus?

2. Write the steps for installing the node controller and cloud controller?

110
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

111
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-10

Design and Deploy a trusted eucalyptus cloud : project?

112
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

113
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

114
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

115
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

116
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

117
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-11

creating your own VM on eucalyptus private cloud :project2021?

118
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

119
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

120
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

121
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

122
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

123
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-12
Deploy Eucalyptus with Ansible: project?

The host performing the installation must have the EPEL YUM repository available (for
Ansible):
yum install epel-release

and a Eucalyptus YUM repository, either the release repository:


yum install
https://downloads.eucalyptus.cloud/software/eucalyptus/5/rhel/7/x86_64/
eucalyptus-release-5-1.11.as.el7.noarch.rpm
or the master repository for the latest nightly build:or the master repository for the latest
nightly build:
yum install
https://downloads.eucalyptus.cloud/software/eucalyptus/master/rhel/7/x8
6_64/eucalyptus-release-5-1.15.as.el7.noarch.rpm

Create inventory: The Ansible inventory file describes both the hosts that will run your
Eucalyptus cloud and the options for your installation.
---
all:
hosts:
cloud.example.com:
node[01:10].example.com:

vars:
vpcmido_public_ip_range: "1.X.Y.128-1.X.Y.254"
vpcmido_public_ip_cidr: "1.X.Y.128/25"

children:
cloud:
hosts:
cloud.example.com:
zone:
hosts:
cloud.example.com:
node:
hosts:

124
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

node[01:10].example.com:

Customization
The DNS domain to be used should be set in the vars section:
cloud_system_dns_dnsdomain: "mycloud.example.com"

The NTP server to use with services in your deployment can also be specifed:
cloud_properties:
services.imaging.worker.ntp_server: "time.cloudflare.com"
services.loadbalancing.worker.ntp_server: "time.cloudflare.com"

To specify region and zone names for your deployment add the vars:

cloud_region_name: "us-euca-1"
cloud_zone_1_name: "us-euca-1a"
cloud_zone_2_name: "us-euca-1b"
cloud_zone_3_name: "us-euca-1c"

You can follow AWS naming conventions or can use your own naming scheme. To specify
which hosts belong to which zone update the hosts section:

hosts:
node01.example.com:
host_cluster_ipv4: "10.111.10.101"
host_public_ipv4: "1.X.Y.101"
host_zone_key: 1

To specify the port for web sevices use:

cloud_public_port: 443

If using port 443 for web services, the management console should be deployed as a
service to avoid a port conflict.

To enable a firewall on the public/cluster interfaces use:

cloud_firewalld_configure: yes
cloud_firewalld_cluster_cidr: "10.111.0.0/16"

125
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

cloud_firewalld_cluster_interface: "en2"
cloud_firewalld_public_interface: "en1"

Interfaces must be named consistently on all hosts.

The default install uses overlay for block storage, to use das you must have an LVM
volume group available on all storage (zone) hosts and set:

cloud_storage_dasdevice: "storage_vg"

To deploy the management console as service running on an instance in your Eucalyptus


cloud:

eucalyptus_console_cloud_deploy: yes

cloud_service_image_rpm: no

MIDONET NSDB:

For VPCMIDO deployments the MidoNet NSDB (Network State Database) should be deployed
on multiple hosts:

midonet-nsdb:

hosts:

midonet-nsdb[01:03].example.com:

USING CEPH:

To use Ceph for block and object storage configure the settings:

ceph_release: "nautilus"

ceph_osd_data_path: "storage_vg/storage_lv"

ceph_public_network: "10.111.0.0/16"

126
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

The hosts for ceph must be in the ceph group under children:

ceph:

hosts:

ceph[01:03].example.com:

USING MinIO

To deploy MinIO as the objectstorage provider you specify minio under children:

minio:

hosts:

minio.example.com:

ENABLING CERTBOT INTEGRATION:

To enable Let’s Encrypt for HTTPS via certbot set the following vars:

eucaconsole_certbot_configure: yes

eucalyptus_console_certbot_enable: yes

eucalyptus_services_certbot_enable: yes

PERFORM INSTALLATION:

To start a VPCMIDO installation

ansible-playbook --inventory inventory.yml /usr/share/eucalyptus-


ansible/playbook_vpcmido.yml

To start a EDGE installation

ansible-playbook --inventory inventory.yml /usr/share/eucalyptus-


ansible/playbook_edge.yml

127
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WRITE YOUR OBSERVATIONS:

128
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

129
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

WEEK-13

Eucalyptus Cloud Installation (Cloud Controller , Node Controller)

Have a glance on the entire video and keenly observe the step by step
process and install.

https://www.youtube.com/watch?v=k88dStjABX8&list=PLFifP_HeKxFmiF2MHVl9sPjmM
rNfQVIrJ&index=3

130
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

131
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

132
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

133
19CS3037SCLOUD INFRASTRUCTURE AND SERVICES -LAB

(For Evaluator’s use only)

Comment of the Evaluator (if Any) Evaluator’s Observation


Marks Secured: _______ out of ________

Full Name of the Evaluator:

Signature of the Evaluator Date of Evaluation:

134

You might also like