Types of virtualisation

The techniques for running one system inside another (emulation, full virtualisation, paravirtualisation, hardware assistance, OS level), what each one requires and what can be virtualised.

  • 26 cards
  • 5 topics
  • Free

The outline, topic by topic

Each topic is weighted the way the exam weighs it.

  1. Concepts
  2. Questions
  3. Sort and link
  4. Scenarios
  5. Understand

A few cards from the deck

  • Virtualisation: what is it?

    Show the answer

    A technique that presents software with a simulated version of a resource (machine, storage, network) and lets several such versions share the same real resource.

    A server, a desktop, an application, storage or a network can be virtualised: the principle is the same, a layer sits between the real resource and its users.

  • What does paravirtualisation require of the guest system?

    • A modified kernel that calls the hypervisor instead of the hardware
    • A processor with VT-x or AMD-V extensions, without which the guest does not boot
    • The same kernel version as the host, which it uses directly
    • An emulator that translates every guest instruction into host instructions
    Show the answer

    A modified kernel that calls the hypervisor instead of the hardware

    The guest kernel knows it is virtualised. Hardware assistance is not required (its historical advantage), the host kernel is only shared in OS-level virtualisation, and instruction-by-instruction translation is what emulation does.

  • On an Intel processor, hardware assistance is called …; on an AMD processor, it is called ….

    Show the answer

    On an Intel processor, hardware assistance is called VT-x; on an AMD processor, it is called AMD-V.

    On Linux, the flags line of /proc/cpuinfo contains vmx for Intel and svm for AMD when the extension is available.

  • Emulation: what is it?

    Show the answer

    A technique where software reproduces a processor instruction by instruction, including an architecture different from the host's.

    It can run ARM code on an x86 PC, but every guest instruction costs several host instructions: it is the slowest technique.

  • VirtualBox returns VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED) when starting a 64-bit VM. What should you do?

    • Reinstall the guest additions in the virtual machine's system
    • Give the virtual machine more RAM in its settings
    • Switch the virtual machine's network card to bridged mode
    • Enable the processor's virtualisation extensions in the BIOS or UEFI
    Show the answer

    Enable the processor's virtualisation extensions in the BIOS or UEFI

    The message comes from the host: VT-x is turned off in the firmware, so the hypervisor has no reserved execution mode. Nothing set inside the VM (additions, memory, network) changes that.