0% found this document useful (0 votes)
63 views3 pages

Virtualization and Cloud Computing Basics

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)
63 views3 pages

Virtualization and Cloud Computing Basics

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

Viva Questions

EXPERIMENT 1:Install VirtualBox/VMware with Linux/Windows OS

1. What is the purpose of using VirtualBox or VMware?


Answer: They allow us to run multiple operating systems on a single physical machine using
virtualization.
2. What is the difference between host OS and guest OS?
Answer: Host OS is the main operating system installed on the computer; guest OS runs inside
the virtual machine.
3. What are the minimum requirements for installing a VM?
Answer: Sufficient RAM (4–8 GB), CPU with virtualization support, and adequate disk space.
4. What are the advantages of virtualization?
Answer: Better resource utilization, isolation, easy testing, portability, and cost savings.
5. What is a snapshot in VirtualBox?
Answer: A snapshot captures the current state of the VM, allowing us to restore it later.

EXPERIMENT 2: Install C Compiler in VM and Execute Programs


1. Why install a compiler inside the VM?
Answer: To ensure platform independence and maintain an isolated development environment.
2. Difference between a compiler and interpreter?
Answer: Compiler converts the whole program to machine code at once; interpreter executes
line-by-line.
3. What is GCC?
Answer: GCC (GNU Compiler Collection) is a widely used open-source compiler for C, C++,
etc.
4. How do you compile a C program in Linux?
Answer: Use: gcc program.c -o outputname and run: ./outputname.
5. What error occurs if <stdio.h> is missing?
Answer: Errors related to printf and scanf undefined references.

EXPERIMENT 3: Install Google App Engine & Hello World App


1. What is Google App Engine?
Answer: A Platform-as-a-Service (PaaS) offering to deploy scalable web applications.
2. What languages does GAE support?
Answer: Python, Java, Go, PHP, [Link], and more.
3. Purpose of [Link]?
Answer: It defines application configuration such as runtime, handlers, and version.
4. Difference between Standard and Flexible Environment?
Answer: Standard uses sandbox + predefined runtimes; Flexible uses Docker containers + full
customization.
5. Basic structure of Hello World app?
Answer: A main script (Python/Java) that returns "Hello World" as HTTP response +
configuration file.

EXPERIMENT 4: Launch Web Applications Using GAE Launcher


1. What is GAE Launcher used for?
Answer: To run, debug, and deploy GAE applications through a GUI.
2. What is application deployment?
Answer: Uploading and hosting an application on cloud servers.
3. Difference between local run and deploy?
Answer: Local run executes on local machine; deploy runs it on Google Cloud.
4. Why is the port number important?
Answer: It identifies the communication endpoint for the web application.
5. Why are logs important?
Answer: Logs help track errors, requests, and application behavior.

EXPERIMENT 5: Simulate Cloud Scenario Using CloudSim


1. What is CloudSim?
Answer: A simulation toolkit used to model cloud environments and test scheduling algorithms.
2. What is a datacenter in CloudSim?
Answer: A resource provider representing servers, hosts, and storage.
3. What is a scheduling algorithm?
Answer: A method that decides how tasks are assigned to virtual machines.
4. Why implement custom scheduling algorithms?
Answer: To improve efficiency, reduce time, and optimize resource usage beyond built-in
methods.
5. CloudSim vs real cloud?
Answer: CloudSim simulates cloud behavior without real hardware, while real cloud uses
physical infrastructure.

EXPERIMENT 6: Transfer Files Between Virtual Machines


1. How can files be transferred between VMs?
Answer: Using SCP, SSH, Shared Folders, FTP servers, or network file sharing.
2. What is SCP?
Answer: Secure Copy Protocol used to transfer files via SSH securely.
3. NAT vs Bridged mode?
Answer: NAT shares host IP; bridged mode assigns VMs a separate IP on the network.
4. Why is SSH needed?
Answer: SSH provides secure remote login and encrypted data transfer.
5. What is a shared folder?
Answer: A folder accessible from both the host and guest OS for easy file sharing.

EXPERIMENT 7: Install Hadoop Single Node Cluster & Wordcount


1. What is Hadoop?
Answer: A distributed framework for storing and processing large data using commodity
hardware.
2. Components of Hadoop?
Answer: HDFS for storage and MapReduce/YARN for processing.
3. What is HDFS?
Answer: Hadoop Distributed File System that stores data across multiple nodes.
4. Purpose of WordCount program?
Answer: A sample MapReduce application used to count word frequencies.
5. Role of NameNode and DataNode?
Answer: NameNode manages metadata; DataNodes store actual data blocks.

EXPERIMENT 8: Create & Execute First Container Using Docker


1. What is Docker?
Answer: A containerization platform that packages apps with their dependencies.
2. Difference between image and container?
Answer: Image is a template; container is a running instance of an image.
3. How to create a container?
Answer: docker run imagename or using Dockerfile + docker build.
4. What is a Dockerfile?
Answer: A script containing instructions to build a custom Docker image.
5. Why are containers important?
Answer: Lightweight, portable, fast deployment, and easy scaling.

EXPERIMENT 9: Run a Container from Docker Hub


1. What is Docker Hub?
Answer: A cloud-based registry that stores and distributes Docker images.
2. How do you pull an image?
Answer: docker pull imagename.
3. Purpose of docker run?
Answer: To create and start a container from an image.
4. Meaning of latest tag?
Answer: It represents the default or most recent version of an image.
5. Why is Docker Hub important?
Answer: Provides ready-made images, supports CI/CD, and speeds up cloud deployments.

You might also like