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

How it works...

A lot happened in this recipe, so lets go through all the steps in more detail.

In step 1, we started the installation process for a new KVM instance using the virt-install utility. We specified the serial console to be enabled during the installation process with the --extra-args parameter. We also used the --location flag to tell libvirt the location of the installation files for the latest Debian distribution. We then specified the location and size of the image file that will contain the guest OS filesystem. Since this file did not exist, virt-install created it as a raw image, as shown in step 9.

With console access enabled for the installation, we were able to connect to the console in step 2 and complete the installation ...

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