A script library for high speed deployment of virtual machines using cloud images. Autokvm allows near pain free deployment of virtual machines on your network. Machines can be configures with static IP or DHCP from bridge interface. No setup or configuration should be required to get things working in your guests. Autokvm leverages libvirt for automation of QEMU/KVM.
Only RHEL based VMs are supported at this time.
These scripts were developed and tested on CentOS 8 and Fedora 30 and should be compliant with all RHEL8+ distributions.
- RHEL8+ Linux
- VT-x or AMD-V virtualization enabled in your system BIOS
- All scripts must be run with root privileges
- Clone the repository
- CD to the repositories base directory
- Run autokvm-install.sh
Example files can be found in /etc/autokvm.cfg.d/example following the install.
- network-config-sample.conf can be used in both cloud-vm-deploy.sh and network-bridge-add.sh
- vm-config-sample.conf can be used in cloud-vm-deploy.sh to provide the VM configuration parameters
Run the various scripts with -h flag as the first argument for the usage message.
By default, the guest networking will be configured via DHCP from the network on the bridge interface. If the network-config parameter is supplied, the guest will be deployed with a static IP as specified in the network-config file argument when running cloud-vm-deploy.sh. Valid parameters must be supplied as specified in the example network config file in order to be able to connect to the VM following the install.
The Default bridge interface generated by libvirt is virbr0 This interface provides a NAT network for accessing hosts from the hypervisor.
For hosts to be accessible from your LAN you should create a bridge for your systems Ethernet connection by using the included network-bridge-add.sh or other means. This will then be used in the BRIDGE_INTERFACE parameter of your vm-config file.
- Debian 10 image is not currently supported, associated issues with cloud-init