KVM Virtualization Cookbook
上QQ阅读APP看书,第一时间看更新

Inspecting and editing KVM configs

In this recipe, we are going to use the virsh tool to inspect and edit the configuration for an existing virtual machine. As we saw earlier, once we define and start a KVM instance, libvirt creates the XML definition file in the /etc/libvirt/qemu/ directory. We can dump the guest configuration to disk, for inspection, or to back it up. With the virsh command we can also perform updates to the configuration in place, as we will see later in this recipe.