This script assists with virtual server deployment using virt-install to define and start a guest (domain) on a Linux KVM host. It requires the path to a file containing guest configuration information. Results are written to the system log (typically /var/log/messages or /var/log/syslog).
Install the required Linux KVM packages and start the required services.
dnf -y install libvirt libvirt-client virt-install
systemctl enable --now libvirtdPENDING.
To install this script on your Linux KVM system, you must first register the One Zero One repository.
rpm -Uvh https://repositories.onezeroone.dev/el/10/noarch/onezeroone-release-latest.el10.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ONEZEROONE
dnf repolist
dnf -y install ozo-virt-installrpm -Uvh https://repositories.onezeroone.dev/el/9/noarch/onezeroone-release-latest.el9.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ONEZEROONE
dnf repolist
dnf -y install ozo-virt-installPENDING.
Using /etc/ozo-virt-install.conf.d/ozo-virt-install-guest-example.conf as a template, create a configuration file that represents your desired VM.
ozo-virt-install
<String>
ozo-virt-install.sh /etc/ozo-virt-install.conf.d/ozo-virt-install-guest-example.confPlease visit One Zero One to learn more about my other work.