Cloud Computing & Virtualization Lab Manual
1. Installation of VirtualBox / VMware Workstation
Objective: To install VirtualBox or VMware Workstation and set up various flavors of Linux or
Windows OS.
Requirements: Windows 7/8 OS, VirtualBox or VMware setup, ISO images of operating systems
Procedure:
1. Download VirtualBox or VMware Workstation from their official websites.
2. Install the virtualization software.
3. Download the ISO file of the desired OS (Ubuntu, Windows 10, etc.).
4. Open the virtualization software and create a new virtual machine.
5. Allocate memory and create a virtual hard disk.
6. Mount the ISO and install the OS.
7. Complete the OS installation steps inside the virtual machine.
2. Install C Compiler and Execute Programs in VM
Objective: To install a C compiler in a virtual machine and run simple C programs.
Requirements: Virtual machine (Ubuntu), GCC compiler
Procedure:
8. Open terminal in the virtual machine.
9. Run: sudo apt update
10. Install compiler: sudo apt install build-essential
11. Create a C file: nano hello.c
12. Write a simple program in C and save the file.
13. Compile: gcc hello.c -o hello
14. Run: ./hello
3. Install Google App Engine and Create Hello World App
Objective: To install GAE SDK and create a simple web application using Python or Java.
Requirements: Google Cloud SDK, Python/Java, GAE Launcher (optional)
Procedure:
15. Install Google Cloud SDK using the terminal.
16. Initialize SDK with: gcloud init
17. Create a folder and write the hello world application.
18. Create necessary files like app.yaml and main.py.
19. Run locally and test using browser.
20. Deploy the app using: gcloud app deploy
4. Launch Web Applications using GAE Launcher
Objective: To use GAE Launcher to run and deploy web applications.
Requirements: Google App Engine Launcher (or gcloud CLI)
Procedure:
21. Open GAE Launcher and add project directory.
22. Click 'Run' to launch locally.
23. Click 'Deploy' to publish online.
24. Alternatively use CLI: gcloud app deploy
5. Simulate Cloud Scenario in CloudSim
Objective: To simulate a cloud scenario and implement a custom scheduling algorithm in
CloudSim.
Requirements: CloudSim, Java, Eclipse/NetBeans
Procedure:
25. Download CloudSim and import in Eclipse.
26. Create a new class to define a custom scheduling algorithm.
27. Modify existing simulation to use new scheduler.
28. Run the simulation and analyze the output.
6. File Transfer Between Virtual Machines
Objective: To transfer files from one VM to another using shared folders or SCP.
Requirements: Two virtual machines, SSH, Shared Folder
Procedure:
29. For shared folders, enable the option in VM settings and mount the folder.
30. For SCP, ensure SSH server is running on destination VM.
31. Use: scp file.txt user@IP:/path/to/destination
7. Launch VM using TryStack/OpenStack
Objective: To launch and manage a virtual machine using OpenStack or its demo environments.
Requirements: OpenStack account or local DevStack setup
Procedure:
32. Login to OpenStack dashboard.
33. Navigate to Compute > Instances > Launch Instance.
34. Select Image, Flavor, Network, and Key Pair.
35. Launch the instance and connect using the public IP.
8. Install Hadoop Single Node Cluster and Run WordCount
Objective: To set up Hadoop in single node mode and run a word count application.
Requirements: Ubuntu OS, Java, Hadoop
Procedure:
36. Install Java: sudo apt install openjdk-11-jdk
37. Download and extract Hadoop.
38. Set environment variables for Hadoop.
39. Configure core-site.xml, hdfs-site.xml, mapred-site.xml, yarn-site.xml.
40. Format namenode and start HDFS/YARN daemons.
41. Upload input file to HDFS.
42. Run wordcount: hadoop jar ... wordcount /input /output
43. View output: hdfs dfs -cat /output/part-r-00000