Linux Virtualization Tools

Using KVM, QEMU, and libvirt for managing virtual machines on Linux systems

Category
Linux
Level
advanced
Languages
en → en
Cards
53
Markdown
Linux Virtualization Tools (.md)

Flashcards (53)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1What file format is commonly used for VM images in QEMU?The QCOW2 (QEMU Copy On Write) format is commonly used for VM images in QEMU.
2What is the role of 'SELinux' in KVM virtualization?SELinux provides mandatory access control to enhance the security of virtual machines and the hypervisor.
3What is the difference between a snapshot and a backup in virtualization?A snapshot captures the current state of a VM at a specific point in time, while a backup is a copy of the VM's data for recovery purposes.
4What does KVM stand for in Linux virtualization?KVM stands for Kernel-based Virtual Machine.
5What is the significance of 'virtio-serial'?Virtio-serial is a paravirtualized serial port driver that enables communication between the host and guest.
6What is the purpose of 'virt-install'?Virt-install is a command-line tool used to create new virtual machines using libvirt.
7What is the command to list all storage pools using virsh?The command is 'virsh pool-list --all'.
8What is the purpose of 'virt-clone'?Virt-clone is a tool used to create a clone of an existing virtual machine.
9What command is used to start a virtual machine using QEMU?The command 'qemu-system-x86_64' is used to start a virtual machine for x86_64 architecture.
10What is the purpose of the 'virt-manager' tool?Virt-manager is a graphical interface for managing virtual machines through libvirt.
11What is the 'libvirt XML' format used for?Libvirt XML format is used to define the configuration of virtual machines, including hardware settings and resource allocation.
12What is the command to create a new virtual machine using virt-install?The command is 'virt-install --name <vm-name> --ram <size> --disk <disk-path> --vcpus <number> --os-type <type> --os-variant <variant> --network <network>'.
13What is the purpose of the 'virtiofs' feature?Virtiofs allows sharing files between the host and guest virtual machines efficiently, using a shared filesystem.
14What is the purpose of the 'virtio' driver?Virtio is a virtualization standard for network and disk device drivers to improve performance in virtual machines.
15What is the command to delete a virtual machine using virsh?The command is 'virsh undefine <vm-name>'.
16What is the difference between a Type 1 and Type 2 hypervisor?A Type 1 hypervisor runs directly on the hardware, while a Type 2 hypervisor runs on top of an operating system.
17What is the command to pause a virtual machine using virsh?The command is 'virsh suspend <vm-name>'.
18What is a VM image?A VM image is a file that contains the complete state of a virtual machine, including its operating system and applications.
19What are the benefits of using libvirt with KVM and QEMU?Libvirt simplifies the management of virtual machines, providing a consistent interface and tools for various virtualization technologies.
20What is the command to shut down a virtual machine using virsh?The command is 'virsh shutdown <vm-name>'.
21What is the purpose of 'virt-customize'?Virt-customize is used to modify VM images before they are deployed, allowing customization of the OS and applications.
22What is the purpose of the 'cloud-init' tool in virtualization?Cloud-init is used to automate the initial setup of cloud instances, including configuring network settings and user accounts.
23What is QEMU in the context of Linux virtualization?QEMU is an open-source emulator and virtualizer that allows you to run virtual machines on various architectures.
24What is the significance of 'CPU pinning' in virtualization?CPU pinning binds a virtual CPU to a specific physical CPU core, improving performance by reducing context switching.
25What is a bridge in the context of networking for VMs?A bridge allows virtual machines to connect to the same network as the host, enabling communication with other devices.
26What is the purpose of 'virt-what'?Virt-what is a script that detects if the system is running in a virtualized environment.
27What is the role of 'virt-xml'?Virt-xml is a tool used to view and edit the XML configuration of virtual machines managed by libvirt.
28What is 'live migration' in virtualization?Live migration is the process of moving a running virtual machine from one physical host to another without downtime.
29What is a 'virtual network' in the context of KVM?A virtual network is a software-defined network that allows virtual machines to communicate with each other and the host.
30What does the term 'overcommitment' refer to in virtualization?Overcommitment refers to allocating more virtual resources (like CPU or RAM) to VMs than the physical resources available on the host.
31What is the command to list all defined virtual machines using virsh?The command is 'virsh list --all'.
32How does QEMU work with KVM?QEMU provides the user interface and device emulation, while KVM provides the virtualization capabilities by leveraging the Linux kernel.
33What is the primary role of KVM in Linux?KVM allows the Linux kernel to function as a hypervisor, enabling the creation and management of virtual machines.
34What is the purpose of the 'virtio-net' driver?Virtio-net is a paravirtualized network driver that improves network performance for virtual machines.
35What is a virtual machine (VM)?A virtual machine is a software emulation of a physical computer that runs an operating system and applications as if it were a real machine.
36What is a hypervisor's role in resource management?A hypervisor manages the allocation of physical resources to virtual machines, ensuring isolation and efficient usage.
37How can you check the status of a virtual machine using virsh?You can check the status of a VM by using the command 'virsh domstate <vm-name>'.
38What is the role of 'virtio-scsi'?Virtio-scsi is a paravirtualized SCSI driver that provides better performance for SCSI devices in virtual machines.
39What is the purpose of 'virt-restore'?Virt-restore is used to restore a virtual machine from a backup.
40What is a 'virtual CPU'?A virtual CPU is an abstraction of a physical CPU that is allocated to a virtual machine.
41What is the difference between 'virt-snapshot' and 'virsh snapshot-create'?Virt-snapshot is a tool for creating snapshots, while 'virsh snapshot-create' is a command to create snapshots via the virsh interface.
42What is the purpose of the 'virt-sysprep' tool?Virt-sysprep is used to prepare a virtual machine for cloning by removing sensitive data and resetting system identifiers.
43Can KVM be classified as a Type 1 or Type 2 hypervisor?KVM is classified as a Type 1 hypervisor because it runs directly on the host's hardware.
44What is the command to view the CPU allocation of a virtual machine using virsh?The command is 'virsh cpu-usage <vm-name>'.
45What is libvirt?Libvirt is an open-source API, daemon, and management tool for managing platform virtualization.
46What is 'virtio-blk'?Virtio-blk is a paravirtualized block device driver that improves disk performance for virtual machines.
47What is the command to restart a virtual machine using virsh?The command is 'virsh reboot <vm-name>'.
48What is the purpose of the 'virsh' command?Virsh is a command-line interface for managing virtual machines through libvirt.
49What is the function of 'virt-df'?Virt-df is a tool that displays disk usage statistics for virtual machines managed by libvirt.
50What is the command to view the logs of a virtual machine using virsh?The command is 'virsh log <vm-name>'.
51What is the purpose of 'virt-df'?Virt-df is a tool that provides disk usage statistics for virtual machines managed by libvirt.
52What is a 'storage pool' in libvirt?A storage pool is a collection of storage resources that can be used to manage virtual machine disk images.
53What is the significance of 'virtio-gpu'?Virtio-gpu is a paravirtualized graphics driver that enhances graphics performance for virtual machines.