Skip to the content ForoHackers
Log inJoin

Virtualization: start here

Virtualization
#3383 · · Quote · Report

Virtualization lets one physical machine behave like several, each with its own operating system, memory and devices. A layer of software, helped by processor features, shares the hardware and keeps the guests apart. It underlies cloud computing, safe testing labs and consolidation of servers, and it is the easiest way to experiment without risking your own system.

Key concepts

  • Hypervisor: the software that creates and runs virtual machines; it sits on the hardware or inside a host system.
  • Hardware support: processor extensions let guest code run directly while the hypervisor traps privileged operations.
  • Virtual devices: emulated disks and network cards, or paravirtual ones that cooperate with the guest for speed.
  • Memory and CPU sharing: guests get virtual processors and memory the hypervisor maps and may overcommit.
  • Snapshots and images: a machine's disk and state can be saved, cloned and rolled back.

Vocabulary

  • Guest and host: the virtualised system and the one that runs it.
  • Type 1 and type 2: a hypervisor directly on hardware, or one running as a program on an operating system.
  • Paravirtualization: a guest that knows it is virtual and calls the hypervisor for help.
  • Nested virtualization: a virtual machine that itself runs virtual machines.

What to study, in order

  1. Create a virtual machine, install a system in it and take a snapshot before breaking something.
  2. Configure virtual networks: bridged, NAT and an isolated internal one.
  3. Understand how a processor traps privileged instructions, from a computer architecture text.
  4. Script the creation of machines from a template, so a lab can be rebuilt in minutes.
  5. Compare an emulator, a hypervisor and a container on the same task.

Related tags

#containers #cloud #kernels #computer-architecture #homelab

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply