ghyde.libvirt
libvirt
Install and set up libvirt on Fedora.
This role lets users run virtual machines from their own user space. It also sets up Kernel Same-page Merging (KSM).
Requirements
Your computer needs to have enough hardware resources to run virtual machines. You might also need to turn on virtualization in your computer's BIOS.
Role Variables
| Name | Description | Type | Default |
|---|---|---|---|
| ksm_max_kernel_pages | Maximum number of kernel pages that can be allocated by KSM (0 means unlimited) | int | 0 |
| ksm_monitor_interval | How long ksmtuned waits between adjustments | seconds | 60 |
| ksm_npages_boost | Added to npages value when free memory is less than thres |
int | 300 |
| ksm_npages_decay | Subtracted from npages when free memory is greater than thres |
int | -50 |
| ksm_npages_min | Minimum limit for the npages value |
int | 64 |
| ksm_npages_max | Maximum limit for the npages value |
int | 1250 |
| ksm_sleep_msec | Milliseconds to wait between KSM scans for a 16GB server. Smaller servers wait more, bigger servers wait less. | milliseconds | 10 |
| ksm_thres_coef | RAM percentage used in the thres calculation |
int | 20 |
| ksm_thres_const | If the system is low on memory and thres is below this value, reset thres to this value |
int | 2048 |
| libvirt_pool_name | Default name for the virtual machine pool | string | default |
| libvirt_pool_dir | Path to the default pool directory | directory | "{{ ansible_user_dir }}/VirtualMachines" |
Example Playbook
- hosts: workstations
tasks:
- import_role:
name: libvirt
vars:
libvirt_pool_name: default
libvirt_pool_dir: "{{ ansible_user_dir }}/VirtualMachines"
License
Informazioni sul progetto
Install and configure libvirt on Fedora
Installa
ansible-galaxy install ghyde.libvirtLicenza
mit
Download
106
Proprietario
Just your average software engineering, Japanese speaking, Army training, computer gaming, Linux fanboy.
