File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ Role Variables
94
94
- ` enable_spice ` : If true enables SPICE listening for use with
95
95
Virtual Machine Manager and similar tools
96
96
97
+ - ` enable_guest_virtio ` : If true enables guest virtio device for use with
98
+ Qemu guest agent
99
+
97
100
- ` volumes ` : a list of volumes to attach to the VM. Each volume is
98
101
defined with the following dict:
99
102
- ` type ` : What type of backing volume does the instance use? All
Original file line number Diff line number Diff line change 46
46
autostart : " {{ vm.autostart | default(true) }}"
47
47
enable_vnc : " {{ vm.enable_vnc | default(false) }}"
48
48
enable_spice : " {{ vm.enable_spice | default(false) }}"
49
+ enable_guest_virtio : " {{ vm.enable_guest_virtio | default(false) }}"
49
50
boot_firmware : " {{ vm.boot_firmware | default('bios', true) | lower }}"
50
51
with_items : " {{ libvirt_vms }}"
51
52
loop_control :
Original file line number Diff line number Diff line change 124
124
<listen type =' address' />
125
125
</graphics >
126
126
{% endif %}
127
+ {% if enable_guest_virtio |bool %}
128
+ <channel type =' unix' >
129
+ <target type =' virtio' name =' org.qemu.guest_agent.0' />
130
+ </channel >
131
+ {% endif %}
127
132
{% for usb_device in usb_devices %}
128
133
<hostdev mode =' subsystem' type =' usb' managed =' yes' >
129
134
<source >
You can’t perform that action at this time.
0 commit comments