0% found this document useful (0 votes)
27 views54 pages

CCS Output Merged

Uploaded by

Shreenath Gauda
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)
27 views54 pages

CCS Output Merged

Uploaded by

Shreenath Gauda
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/ 54

1) Hosted Virtualization on Oracle Virtual Box Hypervisor

Step 1: Download Oracle Virtual box from https://www.virtualbox.org/wiki/Downloads

Step 2: Install it in Windows, Once the installation has done open it.

Step 3:-:Create Virtual Machine by clicking on New


Step 4-: Specify RAM Size, HDD Size, and Network Configuration and Finish the wizard

Step 5-: To Select the media for installation Click on start and browse for iso file

Step 6:Complete the Installation and use it.


2) Hosted Virtualization on KVM Hypervisor

The Steps to Create and run Virtual machines in KVM are as follows

1. Check whether CPU has hardware virtualization support.

KVM only works if your CPU has hardware virtualization support – either Intel VT-x or AMD-
V. To determine whether your CPU includes these features, run the following command:
#sudo grep -c "svm\|vmx" /proc/cpuinfo

A 0 indicates that your CPU doesn’t support hardware virtualization, while a 1 or


more indicates that it does.

2. Install KVM and supporting packages.


Virt-Manager is a graphical application for managing your virtual machines.you can use the kvm
command directly, but libvirt and Virt-Manager simplify the process. #sudo apt-get install
qemu-kvm libvirt-bin bridge-utils virt-manager

3. Create User.
Only the root user and users in the libvirtd group have permission to use KVM virtual machines.
Run the following command to add your user account to the libvirtd group:
#sudo adduser tsec
#sudo adduser tsec libvirtd
After running this command, log out and log back in as tsec

4. Check whether everything is working correctly.


Run following command after logging back in as tsec and you should see an empty list of virtual
machines. This indicates that everything is working correctly.
#virsh -c qemu:///system list

5. Open Virtual Machine Manager application and Create Virtual Machine


#virt-manager
4. Create and run Virtual Machines
LAB 2 Creating and running virtual machines on Bare-Metal Hypervisor Xen Server

Step 1: Install Xen Server

Step i-: Insert Bootable Xen Server CD into CDROM and Step ii-: press F2 to see the advanced options,
Make first boot device as a CDROM from BIOS otherwise press Enter to start installation

Step iii -: Select Keyboard Layout Step iv -:Press Enter to load Device Drivers

Step v -:Press Enter to Accept End user license Agreement Step vi -:Select Appropriate disk on which you want
to install Xen server
Step vii -:Select Appropriate installation Media Step viii -:Select Additional Packages for installation

Step ix-: Specify Root password Step x -: Specify IP Address to a Xen Server

Step xi-:Select Time Zone Step xii-:Specify NTP Servers address or use manual
time entry then start installation

Once installation is done you will see the final screen shown below.

Xen Server Final Screenshot

Step 2:Connect Xen Server to Xen Center

Firstly, download the xen center a management utily from xen server by opening the xen severs IP
address as a URL on browser. Once Xen center is downloaded, install it.Open Xen center from start
menu of Windows.
Here’s how XenCenter looks like (see screenshot below) before any hosts, resource pools, and so on,
are added to it. To connect to the XenServer host you configured earlier, click Add a server.
Enter the IP address I asked you to take note of earlier. Also enter the password you assigned for your
root account. Click Add.

One of the first things you want to make sure as you’re adding a new XenServer to XenCenter is to save
and restore the server connection state on startup. Check the box that will do just that

After you click OK, you’ll be brought back to the main screen, where you’ll see your XenServer
already added to XenCenter.
Step-:3 Create Storage Repository and Installing VM

Now Before Creating VM we have to Create Storage Repository first which is nothing but shared
directory on Xen Center which holds all iso files and which is required to install Operating system on
Xen Server its steps are as follows.Right click on Xenserver icon on xen center and click on New SR.

Now Select Windows CIFS library


Specify Storage Repository Name

Now specify path of shared folder at client side which holds all iso files of os or VM which we are
going to install on Xen Server.

At the end Click on finish to create SR.


To check all iso files click on CIFS library and select storage this will show you all iso files.

Installation of UBUNTU Server on Xen Server

Step 1 -: Right click on Xenserver icon on xen center and select New VM

Now select an Operating System to be install here select Ubuntu Lucid Lynx and click on next
Select iso file of Ubuntu server 10.10 to be install

Now select hardware for vm i.e. no. of cpu’s and memory


The Xen orchestra provides web based functionality of Xen Center.it provides access to all the
VMs with their lifecycle management which are installed over Xen Server shown in figure 5.28

Xen Orchestra (XOA) Portal

The Windows XP image running on Xen Orchestra over Google chrome web browser is shown
in following screenshot.

Windows XP running on Xen orchestra (XOA)


LAB 3 To demonstrate installation and Configuration of Open stack Private cloud.

Step 1-: Update the ubuntu repository and install git package

Step 2 -: Download the latest git repository for openstack

Step 3-: Open Devstack directory and start installation by executing stack.sh shell script
$cd Devstack
$./stack.sh

Open up a browser, and put the Horizon Dashboard address in your address
bar. http://192.168.0.116/dashboard you should see a login page like this.
Create a Project and add a member to the Project.

Create Image and Flavor

To create a flavor login in dashboard using admin credentials, Go to Admin Tab –> Flav
Click on Next. Now, VMs will be getting internal IP from DHCP Server because we enable
DHCP option for internal network.

Now Create External Network. Click on “Create Network” again, Specify Network Name as
“external”
Click on Next. Specify subnet Name as “sub-external” & Network Address as “192.168.1.0/24”

D) Create Router for the Project


Now time to create a Router. To create router Go To Network Tab –> Routers –> Click on
‘+ Create Router’
Click on ‘Access & Security’ and Select the Security Group ‘fedora-rules’ & Key Pair ”myssh-
keys‘

Now Select Networking and add ‘Internal’ Network and the Click on Launch ….
Once the VM is launched , Associate a floating ip so that we can access the VM.

Click on ‘Associate Floating IP‘ to get public IP addresses

Click on Allocate IP.


Click on Associate
directory. We need to change the DocumentRoot setting in our configuration to point to the new
directory.

Now edit the Configuration file and add following lines so that it points to the
/var/www/owncloud directory:

$sudo nano <VirtualHost *:80>


/etc/apache2/sites-enabled/server_ ...
domain_or_IP.conf DocumentRoot /var/www/owncloud
...
</VirtualHost>
When you are finished, check the syntax of your Apache files to make sure there were no
detectable typos in your configuration

$sudo apache2ctl configtest

Output-: Syntax OK

Step 3 – Configuring the MySQL Database

Open mysql prompt, create database and execute following commands

Step 4-: Configure ownCloud

To access the ownCloud web interface, open a web browser and navigate to the servers IP
address as shown below
Own Cloud portal has two types of users like Admin user and local user. The admin user can
create users/groups, assigns storage quota, assigns privileges and can manage users and group
activities.
The local user is an restricted user who can perform local activities like upload or share files,
delete local shares or can create share etc.
The alternate way to use own cloud is to download the readymade virtual machine from website
https://bitnami.com/stack/owncloud/cloud which can be run directly on virtualization platform
like virtual box or VMware workstation.
Step1 : Login to AWS console and go to Elastic Beanstalk

Step 2: Click on Create Application

Step 3: Write Application information : Name, Tag,Platform etc.


Step 4: In Application Code: select sample application and then Click on button Create Application

ľhis will take a few minutes.

Step 5: Click on Environments -> Check the health of Environment wait till it becomes ‘OK
Step 6: Click the URL
Experiment No-6
Step-1: click on create bucket

Step-2: Give Bucket name & select region for storage

Step-3: Keep object ownership setting as ACLs Disabled as by-default


Step-4: Disable block all public access checkbox

Step-5: Select the checkbox for ľuíning off block all public access might íesult in this bucket and
the objects within becoming public
Step-13: Click on Permissions Tab
Step 15- after clicking on edit button paste the following code in bucket policy

"Version": "2012-10-17",

"Statement": [

"Sid": "PublicReadGetObject",

"Effect": "Allow",

"Principal": "*",

"Action": [

"s3:GetObject"

],

"Resource": [

"arn:aws:s3:::Bucket-Name/*"

Note-Make sure that you add your bucket name in the code above

Scroll down and click on Save Changes butto


Step-17: Now for delete files click on checkbox of your file and then click on Delete Button
Lab7: To study and Implement Platform as a Service using Google App Engine.
Lab8: To study and Implement Database as a Service on SQL/NOSQL databases like AWS RDS,
AZURE SQL/ MongoDB Lab/ Firebase.

Step1 : Login to aws console and search RDS

Step2: Click on to RDS and create database


Step 4: Select MySQL and MySQL Community edition

Step 5:In Templates select Free tier


Step 6: Mention database name (default is database1) and username and password

Step 7: Instance is t2.micro


Step 12: MySQL community download – Microsoft Windows

Step 13: Click on to – No thanks , just download


Step 14: Go to downloads of your machine and install it with default settings
Check your database is created and status is available
Aim: To Study and implement containerization using DOCKER.
Step 01: Open docker.com
Scroll down, Click on ‘Get started for free’ tab.

Step 02: Click on Docker Desktop, Download it.


Step 03: After downloading, Open ‘Docker Desktop Installer’ & start installation.
The following window should pop up.
Click on the link - https://aka.ms/wsl2kernel.
(Do not close this window).

Download the WSL2 Linux kernel update package for x64 machines.
Run the following Command:
wsl --set-default-version 2

Now, Click on Restart

Docker should now restart.


Click on Start.
The following window should pop up.
This means, Installation is now

complete.

Open Command Prompt, run the following commands:


1) To check the version of Docker:
docker --version
2) To install image of ubuntu
docker pull ubuntu

You might also like