-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from bodsch/feature/qemu-configuration
Feature/qemu configuration
- Loading branch information
Showing
23 changed files
with
862 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#jinja2: trim_blocks: True, lstrip_blocks: True | ||
# {{ ansible_managed }} | ||
|
||
{% include('qemu.d/default.j2') %} | ||
{% include('qemu.d/vnc.j2') %} | ||
{% include('qemu.d/spice.j2') %} | ||
{% include('qemu.d/chardev.j2') %} | ||
{% include('qemu.d/vxhs.j2') %} | ||
{% include('qemu.d/nbd.j2') %} | ||
{% include('qemu.d/migrate.j2') %} | ||
{% include('qemu.d/backup.j2') %} | ||
{% include('qemu.d/nographics.j2') %} | ||
{% include('qemu.d/remote.j2') %} | ||
{% include('qemu.d/security.j2') %} | ||
{% include('qemu.d/cgroup.j2') %} | ||
{%- include('qemu.d/default.j2') %} | ||
{%- include('qemu.d/auto.j2') %} | ||
{%- include('qemu.d/backup.j2') %} | ||
{%- include('qemu.d/cgroup.j2') %} | ||
{%- include('qemu.d/chardev.j2') %} | ||
{%- include('qemu.d/image_format.j2') %} | ||
{%- include('qemu.d/migrate.j2') %} | ||
{%- include('qemu.d/migration.j2') %} | ||
{%- include('qemu.d/nbd.j2') %} | ||
{%- include('qemu.d/nographics.j2') %} | ||
{%- include('qemu.d/remote.j2') %} | ||
{%- include('qemu.d/security.j2') %} | ||
{%- include('qemu.d/spice.j2') %} | ||
{%- include('qemu.d/system.j2') %} | ||
{%- include('qemu.d/vnc.j2') %} | ||
{%- include('qemu.d/vxhs.j2') %} | ||
{%- include('qemu.d/misc.j2') %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
{% if libvirt_qemu.auto is defined and | ||
libvirt_qemu.auto | count > 0 %} | ||
{% if libvirt_qemu.auto.dump_path is defined and | ||
libvirt_qemu.auto.dump_path | string | length > 0 %} | ||
auto_dump_path = "{{ libvirt_qemu.auto.dump_path }}" | ||
{% endif %} | ||
{% if libvirt_qemu.auto.dump_bypass_cache is defined and | ||
libvirt_qemu.auto.dump_bypass_cache | string | length > 0 %} | ||
auto_dump_bypass_cache = {{ libvirt_qemu.auto.dump_bypass_cache | bool | ternary('1', '0') }} | ||
{% endif %} | ||
{% if libvirt_qemu.auto.start_bypass_cache is defined and | ||
libvirt_qemu.auto.start_bypass_cache | string | length > 0 %} | ||
auto_start_bypass_cache = {{ libvirt_qemu.auto.start_bypass_cache | bool | ternary('1', '0') }} | ||
{% endif %} | ||
{% endif %} | ||
{# | ||
# When a domain is configured to be auto-dumped when libvirtd receives a | ||
# watchdog event from qemu guest, libvirtd will save dump files in directory | ||
# specified by auto_dump_path. Default value is /var/lib/libvirt/qemu/dump | ||
# | ||
#auto_dump_path = "/var/lib/libvirt/qemu/dump" | ||
# When a domain is configured to be auto-dumped, enabling this flag | ||
# has the same effect as using the VIR_DUMP_BYPASS_CACHE flag with the | ||
# virDomainCoreDump API. That is, the system will avoid using the | ||
# file system cache while writing the dump file, but may cause | ||
# slower operation. | ||
# | ||
#auto_dump_bypass_cache = 0 | ||
# When a domain is configured to be auto-started, enabling this flag | ||
# has the same effect as using the VIR_DOMAIN_START_BYPASS_CACHE flag | ||
# with the virDomainCreateWithFlags API. That is, the system will | ||
# avoid using the file system cache when restoring any managed state | ||
# file, but may cause slower operation. | ||
# | ||
#auto_start_bypass_cache = 0 | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
# For debugging and testing purposes it's sometimes useful to be able to disable | ||
# libvirt behaviour based on the capabilities of the qemu process. This option | ||
# allows to do so. DO _NOT_ use in production and beaware that the behaviour | ||
# may change across versions. | ||
# | ||
#capability_filters = [ "capname" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
{% if libvirt_qemu.image_format is defined and | ||
libvirt_qemu.image_format | count > 0 %} | ||
{# "raw", "lzop", "gzip", "bzip2", or "xz" #} | ||
{% set _attr = ["raw", "lzop", "gzip", "bzip2", "xz"] %} | ||
{% if libvirt_qemu.image_format.save_image_format is defined and | ||
libvirt_qemu.image_format.save_image_format | string | length > 0 and | ||
libvirt_qemu.image_format.save_image_format in _attr %} | ||
save_image_format = "{{ libvirt_qemu.image_format.save_image_format }}" | ||
{% endif %} | ||
{% if libvirt_qemu.image_format.dump_image_format is defined and | ||
libvirt_qemu.image_format.dump_image_format | string | length > 0 and | ||
libvirt_qemu.image_format.dump_image_format in _attr %} | ||
dump_image_format = "{{ libvirt_qemu.image_format.dump_image_format }}" | ||
{% endif %} | ||
{% if libvirt_qemu.image_format.snapshot_image_format is defined and | ||
libvirt_qemu.image_format.snapshot_image_format | string | length > 0 and | ||
libvirt_qemu.image_format.snapshot_image_format in _attr %} | ||
snapshot_image_format = "{{ libvirt_qemu.image_format.snapshot_image_format }}" | ||
{% endif %} | ||
{% endif %} | ||
{# | ||
# The default format for QEMU/KVM guest save images is raw; that is, the | ||
# memory from the domain is dumped out directly to a file. If you have | ||
# guests with a large amount of memory, however, this can take up quite | ||
# a bit of space. If you would like to compress the images while they | ||
# are being saved to disk, you can also set "lzop", "gzip", "bzip2", or "xz" | ||
# for save_image_format. Note that this means you slow down the process of | ||
# saving a domain in order to save disk space; the list above is in descending | ||
# order by performance and ascending order by compression ratio. | ||
# | ||
# save_image_format is used when you use 'virsh save' or 'virsh managedsave' | ||
# at scheduled saving, and it is an error if the specified save_image_format | ||
# is not valid, or the requested compression program can't be found. | ||
# | ||
# dump_image_format is used when you use 'virsh dump' at emergency | ||
# crashdump, and if the specified dump_image_format is not valid, or | ||
# the requested compression program can't be found, this falls | ||
# back to "raw" compression. | ||
# | ||
# snapshot_image_format specifies the compression algorithm of the memory save | ||
# image when an external snapshot of a domain is taken. This does not apply | ||
# on disk image format. It is an error if the specified format isn't valid, | ||
# or the requested compression program can't be found. | ||
# | ||
#save_image_format = "raw" | ||
#dump_image_format = "raw" | ||
#snapshot_image_format = "raw" | ||
#} |
Oops, something went wrong.