Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
openSUSE Leap 15.3

Virtualization Guide

This guide describes virtualization technology in general. It introduces libvirt—the unified interface to virtualization—and provides detailed information on specific hypervisors.

Publication Date: June 22, 2021
Available documentation
Improving the documentation
Documentation conventions
I Introduction
1 Virtualization technology
1.1 Overview
1.2 Virtualization benefits
1.3 Virtualization modes
1.4 I/O virtualization
2 Virtualization scenarios
2.1 Server consolidation
2.2 Isolation
2.3 Disaster recovery
2.4 Dynamic load balancing
3 Introduction to Xen virtualization
3.1 Basic components
3.2 Xen virtualization architecture
4 Introduction to KVM virtualization
4.1 Basic components
4.2 KVM virtualization architecture
5 Virtualization tools
5.1 Virtualization console tools
5.2 Virtualization GUI tools
6 Installation of virtualization components
6.1 Specifying a system role
6.2 Running the yast2-vm module
6.3 Patterns
6.4 Installing UEFI support
6.5 Enable nested virtualization in KVM
II Managing virtual machines with libvirt
7 Starting and stopping libvirtd
8 Preparing the VM Host Server
8.1 Configuring networks
8.2 Configuring a storage pool
9 Guest installation
9.1 GUI-based guest installation
9.2 Installing from the command line with virt-install
9.3 Advanced guest installation scenarios
10 Basic VM Guest management
10.1 Listing VM Guests
10.2 Accessing the VM Guest via console
10.3 Changing a VM Guest's state: start, stop, pause
10.4 Saving and restoring the state of a VM Guest
10.5 Creating and managing snapshots
10.6 Deleting a VM Guest
10.7 Migrating VM Guests
10.8 Monitoring
11 Connecting and authorizing
11.1 Authentication
11.2 Connecting to a VM Host Server
11.3 Configuring remote connections
12 Advanced storage topics
12.1 Locking disk files and block devices with virtlockd
12.2 Online resizing of guest block devices
12.3 Sharing directories between host and guests (file system pass-through)
12.4 Using RADOS block devices with libvirt
13 Configuring virtual machines with Virtual Machine Manager
13.1 Machine setup
13.2 Storage
13.3 Controllers
13.4 Networking
13.5 Input devices
13.6 Video
13.7 USB redirectors
13.8 Miscellaneous
13.9 Adding a CD/DVD-ROM device with Virtual Machine Manager
13.10 Adding a floppy device with Virtual Machine Manager
13.11 Ejecting and changing floppy or CD/DVD-ROM media with Virtual Machine Manager
13.12 Assigning a host PCI device to a VM Guest
13.13 Assigning a host USB device to a VM Guest
14 Configuring virtual machines with virsh
14.1 Editing the VM configuration
14.2 Changing the machine type
14.3 Configuring hypervisor features
14.4 Configuring CPU allocation
14.5 Changing boot options
14.6 Configuring memory allocation
14.7 Adding a PCI device
14.8 Adding a USB device
14.9 Adding SR-IOV devices
14.10 Listing attached devices
14.11 Configuring storage devices
14.12 Configuring controller devices
14.13 Configuring video devices
14.14 Configuring network devices
14.15 Using macvtap to share VM Host Server network interfaces
14.16 Disabling a memory balloon device
14.17 Configuring multiple monitors (dual head)
14.18 Crypto adapter pass-through to KVM guests on IBM Z
15 Managing virtual machines with Vagrant
15.1 Introduction to Vagrant
15.2 Vagrant boxes for SUSE Linux Enterprise
15.3 Further reading
16 Xen to KVM migration guide
16.1 Migration to KVM using virt-v2v
16.2 Xen to KVM manual migration
16.3 More information
III Hypervisor-independent features
17 Disk cache modes
17.1 Disk interface cache modes
17.2 Description of cache modes
17.3 Data integrity implications of cache modes
17.4 Performance implications of cache modes
17.5 Effect of cache modes on live migration
18 VM Guest clock settings
18.1 KVM: using kvm_clock
18.2 Xen virtual machine clock settings
19 libguestfs
19.1 VM Guest manipulation overview
19.2 Package installation
19.3 Guestfs tools
19.4 Troubleshooting
19.5 More information
20 QEMU guest agent
20.1 Running QEMU GA commands
20.2 virsh commands that require QEMU GA
20.3 Enhancing libvirt commands
20.4 More information
21 Software TPM emulator
21.1 Introduction
21.2 Prerequisites
21.3 Installation
21.4 Using swtpm with QEMU
21.5 Using swtpm with libvirt
21.6 TPM measurement with OVMF firmware
21.7 Resources
IV Managing virtual machines with Xen
22 Setting up a virtual machine host
22.1 Best practices and suggestions
22.2 Managing Dom0 memory
22.3 Network card in fully virtualized guests
22.4 Starting the virtual machine host
22.5 PCI Pass-Through
22.6 USB pass-through
23 Virtual networking
23.1 Network devices for guest systems
23.2 Host-based routing in Xen
23.3 Creating a masqueraded network setup
23.4 Special configurations
24 Managing a virtualization environment
24.1 XL—Xen management tool
24.2 Automatic start of guest domains
24.3 Event actions
24.4 Time Stamp Counter
24.5 Saving virtual machines
24.6 Restoring virtual machines
24.7 Virtual machine states
25 Block devices in Xen
25.1 Mapping physical storage to virtual disks
25.2 Mapping network storage to virtual disk
25.3 File-backed virtual disks and loopback devices
25.4 Resizing block devices
25.5 Scripts for managing advanced storage scenarios
26 Virtualization: configuration options and settings
26.1 Virtual CD readers
26.2 Remote access methods
26.3 VNC viewer
26.4 Virtual keyboards
26.5 Dedicating CPU resources
26.6 HVM features
26.7 Virtual CPU scheduling
27 Administrative tasks
27.1 The boot loader program
27.2 Sparse image files and disk space
27.3 Migrating Xen VM Guest systems
27.4 Monitoring Xen
27.5 Providing host information for VM Guest systems
28 XenStore: configuration database shared between domains
28.1 Introduction
28.2 File system interface
29 Xen as a high-availability virtualization host
29.1 Xen HA with remote storage
29.2 Xen HA with local storage
29.3 Xen HA and private bridges
30 Xen: converting a paravirtual (PV) guest into a fully virtual (FV/HVM) guest
V Managing virtual machines with QEMU
31 QEMU overview
32 Setting up a KVM VM Host Server
32.1 CPU support for virtualization
32.2 Required software
32.3 KVM host-specific features
33 Guest installation
33.1 Basic installation with qemu-system-ARCH
33.2 Managing disk images with qemu-img
34 Running virtual machines with qemu-system-ARCH
34.1 Basic qemu-system-ARCH invocation
34.2 General qemu-system-ARCH options
34.3 Using devices in QEMU
34.4 Networking in QEMU
34.5 Viewing a VM Guest with VNC
35 Virtual machine administration using QEMU monitor
35.1 Accessing monitor console
35.2 Getting information about the guest system
35.3 Changing VNC password
35.4 Managing devices
35.5 Controlling keyboard and mouse
35.6 Changing available memory
35.7 Dumping virtual machine memory
35.8 Managing virtual machine snapshots
35.9 Suspending and resuming virtual machine execution
35.10 Live migration
35.11 QMP - QEMU machine protocol
A Configuring GPU Pass-Through for NVIDIA cards
A.1 Introduction
A.2 Prerequisites
A.3 Configuring the host
A.4 Configuring the guest
B GNU licenses
B.1 GNU free documentation license

Copyright © 2006– 2021 SUSE LLC and contributors. All rights reserved.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright notice and license. A copy of the license version 1.2 is included in the section entitled GNU Free Documentation License.

For SUSE trademarks, see https://www.suse.com/company/legal/. All other third-party trademarks are the property of their respective owners. Trademark symbols (®, ™ etc.) denote trademarks of SUSE and its affiliates. Asterisks (*) denote third-party trademarks.

All information found in this book has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither SUSE LLC, its affiliates, the authors nor the translators shall be held liable for possible errors or the consequences thereof.

Print this page