Modifying VM images using libguestfs tools
As our focus in this book shifts more toward scaling things out, we have to end this part of the book by introducing a stack of commands that will come in handy as we start to build bigger environments. For bigger environments, we really need various automation, customization, and orchestration tools that we will start discussing in our next chapter. But first, we have to focus on various customization utilities that we already have at our disposal. These command-line utilities will be really helpful for many different types of operations, varying from
guestfish (for accessing and modifying VM files) to
virt-p2v (physical-to-virtual (P2V) conversion) and
virt-sysprep (to sysprep a VM before templating and cloning). So, let's approach the subject of these utilities in an engineering fashion—step by step.