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 to do it...

The following steps outline the process of inspecting and editing the XML definition of a KVM instance:

  1. Ensure that you have a running KVM instance with libvirt, if not, follow the steps in the previous recipe:
root@kvm:~# virsh list Id Name State---------------------------------------------------- 11 kvm1 runningroot@kvm:~#





 

 

  1. Dump the instance configuration file to standard output (stdout). For more information on stdout refer to folllowing link:

https://en.wikipedia.org/wiki/Standard_streams

root@kvm:~# virsh dumpxml kvm1<domain type='kvm' id='11'> <name>kvm1</name> <uuid>9eb9a2e9-abb2-54c5-5cb3-dc86728e70fc</uuid> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>1</vcpu> ...

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