Virtualization Flashcards

1
Q

What is the purposed of Virtualization?

A
  1. Enhance resource sharing by many users at a time
  2. Virtualization make replacing and upgrading hardware easy
    3.We can add new devices without rebooting.
    4.Down-time is reduced
    5.Adding new machines is very easy.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the modes of the operating system?

A

Kernel mode : CPU instructions are allowed to execute
User mode :
Only allows few instructions to be executed. apps ask the kernel to do the work if user application have to execute an instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the impact of virtualization on system calls and I/O?

A

System calls takes around 2300 cycles because the cpu issues fault message for every system call.
I/O is a major issue because it is not easily modified/upgraded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What the the types of virtualization?

A
  1. Type 1 - Bare metal virtualization: (bare metal )Hypervisor is on the top of the hardware (ring 0)
  2. Type 2 - Hosted virtualization: Hypervisor loaded on top of an OS just like an application program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when privilege instructions are executed in full virtualization?

A

They are trapped because they are executed in the less privileged ring. The hypervisor intercepts the traps and emulates the instructions on the fly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Cgroups and what is the main task?

A

control groups is a feature which limits application to a specific set of resources.
their main tasks are limit resources, isolate resource and audit the utility of resouces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is namespace?

A

it is a feature in the linux kernel which isolates processes from each others.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are containers?

A

Containers use the kernel features (cgroups and namespaces). container technology provides environment where the hardware is shared. It is a lightweight Vm. It can get a shell via SSH.
Container solutions allow multiple isolated linux system of same kind on single host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is docker?

A

Docker utilizes the container technology by porting containers and replicating containers across environments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the docker container states?

A

Created - restarting - running - paused - exited - dead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between docker and VM?

A
  1. there is always a guest os in every VM. With docker we only have host os which share among all containers which make them light and increase the boot time.
  2. Security-wise are VM better since they are stand-alone with their kernel and security features.
  3. Dockers performance is better since the Vm need to load the entire OS to start.
  4. Portability: since docker containers dont have seperate OS, they are easily portable meaning that putting them on a different OS wont be a problem. thats not the case with VMs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is VMWare Vsphere?

A

It virtualizes and aggregates the underlying physical hardware resources of datacenter. It promotes private cloud rather than public.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is VMWare Vmotion and SVmotion?

A

VMotion enables migration of virtual machines from one host memory to another without down time. Disk and files are stored in shared memory

SVmotion does the same but also moves storage information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the modes of virtualization on a hardware level?

A
  1. Full virtualization: Here guest OS works in ring 1 and Hypervisor in ring 0. Guest os is not modified here.
    2.para virtualization: same as full but the OS code is modified. Para avoid unnecessary trapping
    3.hardware assisted virtualization: Here privileged instructions are quickly identified and efficiently executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly