Skip to content

Commit a385211

Browse files
committed
VNC customisations
Several updates to VNC: - Added to README - Converts tests to bool per PR feedback - Cut out the specification of all optional fields in <graphics> and removed <video> xml
1 parent 4512410 commit a385211

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Role Variables
6060

6161
- `clock_offset`: Overrides default set in `libvirt_vm_clock_offset`
6262

63+
- `enable_vnc`: If true enables VNC listening on localhost for use with
64+
VirtManager and similar tools
65+
6366
- `volumes`: a list of volumes to attach to the VM. Each volume is
6467
defined with the following dict:
6568
- `pool`: Name or UUID of the storage pool from which the volume should be

templates/vm.xml.j2

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,10 @@
7676
<target type='serial' port='0'/>
7777
</console>
7878
{% endif %}
79-
{% if enable_vnc %}
80-
<graphics type='vnc' port='5906' autoport='yes' listen='127.0.0.1'>
79+
{% if enable_vnc |bool %}
80+
<graphics type='vnc' autoport='yes' listen='127.0.0.1'>
8181
<listen type='address' address='127.0.0.1'/>
8282
</graphics>
83-
<video>
84-
<model type='cirrus' vram='16384' heads='1' primary='yes'/>
85-
<alias name='video0'/>
86-
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
87-
</video>
8883
{% endif %}
8984
</devices>
9085
</domain>

0 commit comments

Comments
 (0)