diff --git a/README.md b/README.md
index 39cdcce..af61fcf 100644
--- a/README.md
+++ b/README.md
@@ -94,6 +94,9 @@ Role Variables
- `enable_spice`: If true enables SPICE listening for use with
Virtual Machine Manager and similar tools
+ - `enable_guest_virtio`: If true enables guest virtio device for use with
+ Qemu guest agent
+
- `volumes`: a list of volumes to attach to the VM. Each volume is
defined with the following dict:
- `type`: What type of backing volume does the instance use? All
diff --git a/tasks/main.yml b/tasks/main.yml
index 1b24645..ebeb806 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -46,6 +46,7 @@
autostart: "{{ vm.autostart | default(true) }}"
enable_vnc: "{{ vm.enable_vnc | default(false) }}"
enable_spice: "{{ vm.enable_spice | default(false) }}"
+ enable_guest_virtio: "{{ vm.enable_guest_virtio | default(false) }}"
boot_firmware: "{{ vm.boot_firmware | default('bios', true) | lower }}"
with_items: "{{ libvirt_vms }}"
loop_control:
diff --git a/templates/vm.xml.j2 b/templates/vm.xml.j2
index 58baf61..93688b0 100644
--- a/templates/vm.xml.j2
+++ b/templates/vm.xml.j2
@@ -124,6 +124,11 @@
{% endif %}
+{% if enable_guest_virtio |bool %}
+
+
+
+{% endif %}
{% for usb_device in usb_devices %}