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

Experiment 4

Uploaded by

prasadraskar5775
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Experiment 4

Uploaded by

prasadraskar5775
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

BHARATI VIDYAPEETH’S

COLLEGE OF ENGINNERING, LAVALE, PUNE-412115


DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATION
Subject: Cloud Computing
Experiment No: Title: Class: B.E

Date Of performance:
Date of Submission: Signature:-

Experiment 4

Aim : Find a procedure to transfer the files from one virtual machine to another virtual
Machine

Theory : Virtual machines: virtual computers within computers

● A virtual machine, commonly shortened to just VM, is no different than any other
physical computer like a laptop, smart phone, or server. It has a CPU, memory, disks
to store your files, and can connect to the internet if needed. While the parts that make
up your computer (called hardware) are physical and tangible, VMs are often thought
of as virtual computers or software-defined computers within physical servers,
existing only as code.

Virtualization :

● Virtualization is the process of creating a software-based, or "virtual" version of a


computer, with dedicated amounts of CPU, memory, and storage that are "borrowed"
from a physical host computer—such as your personal computer— and/or a remote
server—such as a server in a cloud provider's datacenter. A virtual machine is a
computer file, typically called an image, that behaves like an actual computer. It can
run in a window as a separate computing environment, often to run a different
operating system—or even to function as the user's entire computer experience—as is
common on many people's work computers. The virtual machine is partitioned from
the rest of the system, meaning that the software inside a VM can't interfere with the
host computer's primary operating system.

Advantages of Virtual machines :


● Because of their flexibility and portability, virtual machines provide many benefits,
such as:
● Cost savings—running multiple virtual environments from one piece of infrastructure
means that you can drastically reduce your physical infrastructure footprint. This
boosts your bottom line—decreasing the need to maintain nearly as many servers and
saving on maintenance costs and electricity.
● Agility and speed—Spinning up a VM is relatively easy and quick and is much
simpler than provisioning an entire new environment for your developers.
Virtualization makes the process of running dev-test scenarios a lot quicker.
● Lowered downtime—VMs are so portable and easy to move from one hypervisor to
another on a different machine—this means that they are a great solution for backup,
in the event the host goes down unexpectedly.
● Scalability—VMs allow you to more easily scale your apps by adding more physical
or virtual servers to distribute the workload across multiple VMs. As a result you can
increase the availability and performance of your apps.
● Security benefits— Because virtual machines run in multiple operating systems, using
a guest operating system on a VM allows you to run apps of questionable security and
protects your host operating system. VMs also allow for better security forensics, and
are often used to safely study computer viruses, isolating the viruses to avoid risking
their host computer.

Procedure :

● Download and install Oracle's Virtual Box. (Reboot needed after installation)
● Download Ubuntu VDK Image.
● Launch Virtualbox and create a new VM.
● Click on new and mention the Name and the machine folder along with the Type and
Version of the Machine to be created.
● Assign memory size for our VM (1024 MB sufficient for now).
● Select the option Use an existing virtual hard disk file and locate the downloaded
VMDK image below and create VM.
● Now we have to create a NAT Network so go to File -> Preferences -> Network ->
Add a New NAT Network (Click on +)
● Right click and edit the Network name and CIDR if needed. Example :
● Name - My VMbox Network
● CIDR - 172.168.2.0/24 and save the changes.
● Repeat the process of launching the VM for 2 instances.
● Now go to the setting, go to the network setting and change the adapter to NAT
Network and and select the NAT Network you made ( in our case : My VMbox
Network ) and click ok.
● Launch the VM now.
● Install the net-tools to know the IP's of the instance.
● $ sudo apt install net-tools
● $ sudo apt update
● To know the IP address
● $ ifconfig
● Now the IP will be in the range of 172.168.2.*
● * - any number in the range of 1 to 254 (total 256 addresses)
● Now create a file and write something into it.
● $ touch tranfer.txt
● $ nano transfer.txt
● -> hey, How are you?
● ctrl + X and save
● Some Commands for Linux Based Distros:
● ls - list all the files and directories
● cat - show the content inside a file
● scp - it will help us to copy files from one vm to other
● cd - change directory
● mkdir - make a new directory
● touch - it makes a new file
● nano - nano is a editor inside linux os
● If your file is on the VM with IP 172.168.2.4 and the second VM's IP is 172.168.2.5.
● Tranfer the file using SCP
● $ scp tranfer.txt [email protected]:/home/vagrant
● Put in the password of the 2nd VM and done.
● Check for the file in the Second VM under the /home/vagrant directory.
● Done..!!!

Conclusion :

You might also like