After you install and configure a KVM on the host system, you can create guest operating systems. Every guest is defined by a set of resources and parameters stored in the XML format. When you want to create a new guest, creating such an XML file is quite cumbersome. There are two ways to create a guest:
This recipe will employ the latter as it is perfect for scripting, while
virt-manager is a GUI and not very well suited to automate things.
In this recipe, we will cover a generic approach to create a new virtual machine using the
bridge-eth0 network bridge and create a virtual disk on the
localfs-vm storage pool, which is formatted as QCOW2. The QCOW2 format is a popular virtual disk ...