O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

In this recipe, we used the virsh command with various subcommands in one liners. This is particularly useful if we need to run the commands from a script. The virsh command also provides an interactive terminal, which saves some typing, and provides contextual help. To start the virtualization-interactive terminal, run the following code:

root@kvm:~# virshWelcome to virsh, the virtualization interactive terminal.Type: 'help' for help with commands 'quit' to quitvirsh #

Typing help will list all available subcommands with a short description. To obtain more information for a particular subcommand type:

virsh # help vcpucount NAME   vcpucount - domain vcpu counts SYNOPSIS vcpucount <domain> [--maximum] [--active] [--live] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required