< KVM < libguestfs-tools
virt-customize
command available since 2014[1] included in libguestfs-tools
which allows to customize virtual machines.
Examples
- Edit grup Kernel command line [2]
virt-customize -a rhel7.img \ --edit '/etc/default/grub: s/^GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="nosmt /' \ --run-command 'grub2-mkconfig -o /boot/grub2/grub.cfg'
virt-customize -a guest1.img \ --hostname guest1 --timezone Europe/London \ --install gcc
See also
virt-install
virt-clone
virt-builder
virt-customize
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.