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...

In step 1, we list all defined instances, regardless of their state. From the output, we can see that we currently have one instance that we defined in the earlier recipe.

In step 2, we started the virtual machine and ensured its status had changed to running.

If you completed the Running Virtual Machines with qemu-system-* recipe from Chapter 1, Getting Started with QEMU and KVM, you might note that the XML definition for this VM is very similar to all the command-line options we used to start the QEMU instance. We can see the similarities of how the new instance was started in step 3. The main difference is the larger number of parameters that libvirt passed to the QEMU executable.

Finally, in steps 4 and 5, we stopped the ...

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