This role will install and configure KVM and all its dependencies.
The role can also be used to create and manage Libvirt networks, storage pools, storage volumes and domains.
Note: Currently, the removal of Libvirt objects has to be executed manually.
This role has to be executed as user 'root'.
Following tags are supported by this role:
- install
- networks
- storage_pools
- storage_volumes
- domains
Variable | Type | Required | Default | Comment |
---|---|---|---|---|
kvm_networks | list() | No | [] | Libvirt networks configuration |
kvm_storage_pools | list() | No | [] | Libvirt storage pools configuration |
kvm_storage_volumes | list() | No | [] | Libvirt storage volumes configuration |
kvm_domains | list() | No | [] | Libvirt domains configuration |
Note: Click on a variable to see more information on how to use it.
The 'virsh' command line tool can be used to manage and configure domains.
root # virsh
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh #
Cockpit is a browser-based administration tool for Linux which also provides a package for virtual machines.
https://github.com/cockpit-project/cockpit-machines
Note: This module also provides virtual machine console access.