diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2022-05-18 17:03:29 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-06-13 13:49:08 -0400 |
commit | 44355e5ed0d0791675e8113732dde37664d5aa91 (patch) | |
tree | 0e1424a501c087c6697de440fd1c633ad4fdc727 /tests | |
parent | 0533bb8189c2d36fc18121bf394be5d35c038066 (diff) | |
download | virt-manager-44355e5ed0d0791675e8113732dde37664d5aa91.tar.gz |
virt-install: add support for qemu-vdagent channel
This allows support for host/guest clipboard sharing when using vnc
guests (and possibly other graphics types in the future). This channel
is similar to the spicevmc channel, but it contains a couple additional
options to enable/disable clipboard sharing and specify the mouse mode.
In the case of spice, these settings are specified on the 'graphics'
element, but for qemu-vdagent, they are specified on the channel. For
example:
--channel=qemu-vdagent,source.clipboard.copypaste=on,source.mouse.mode=client
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/cli/compare/virt-install-many-devices.xml | 7 | ||||
-rw-r--r-- | tests/test_cli.py | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml index 6068b643..f6606a18 100644 --- a/tests/data/cli/compare/virt-install-many-devices.xml +++ b/tests/data/cli/compare/virt-install-many-devices.xml @@ -647,6 +647,13 @@ <channel type="spicevmc"> <target type="virtio" name="com.redhat.spice.0"/> </channel> + <channel type="qemu-vdagent"> + <source> + <clipboard copypaste="yes"/> + <mouse mode="client"/> + </source> + <target type="virtio" name="com.redhat.spice.0"/> + </channel> <input type="keyboard" bus="usb"/> <input type="tablet" bus="usb"/> <input type="mouse" bus="ps2"/> diff --git a/tests/test_cli.py b/tests/test_cli.py index 02843b10..0acc4a23 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -674,6 +674,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser --channel pty,target_type=virtio,name=org.linux-kvm.port1 --channel pty,target.type=virtio,target.name=org.linux-kvm.port2 --channel spicevmc +--channel qemu-vdagent,source.clipboard.copypaste=on,source.mouse.mode=client --console pty,target_type=virtio @@ -739,7 +740,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser --rng /dev/random ---rng device=/dev/urandom,backend.protocol.type=,backend.log.file=,backend.log.append= +--rng device=/dev/urandom,backend.protocol.type=,backend.log.file=,backend.log.append=,backend.source.clipboard.copypaste=,backend.source.mouse.mode= --rng type=egd,backend.type=nmdm,backend.source.master=/dev/foo1,backend.source.slave=/dev/foo2 --rng egd,backend_host=127.0.0.1,backend_service=8000,backend_type=udp,backend_mode=bind,backend_connect_host=foo,backend_connect_service=708,rate.bytes=1234,rate.period=1000,model=virtio @@ -791,7 +792,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser --xml xpath.delete=./deleteme/deleteme2 -""", "many-devices", predefine_check="7.4.0") +""", "many-devices", predefine_check="8.4.0") # Specific XML test cases #1 |