Support more display/spice options.
This commit is contained in:
parent
0879e40213
commit
488e6fafdc
4 changed files with 115 additions and 11 deletions
|
|
@ -179,9 +179,13 @@
|
|||
</#switch>
|
||||
</#list>
|
||||
|
||||
<#if vm.display??>
|
||||
<#if vm.display.spice??>
|
||||
<#assign spice = vm.display.spice/>
|
||||
# SPICE (display, channels ...)
|
||||
# https://www.linux-kvm.org/page/SPICE
|
||||
- [ "-spice", "port=${ vm.spice.port?c },disable-ticketing=on\
|
||||
- [ "-spice", "port=${ spice.port?c },disable-ticketing=on\
|
||||
<#if spice.streamingVideo??>,streaming-video=${ spice.streamingVideo }</#if>\
|
||||
,seamless-migration=on" ]
|
||||
- [ "-chardev", "spicevmc,id=vdagentdev,name=vdagent" ]
|
||||
- [ "-device", "virtserialport,name=com.redhat.spice.0,\
|
||||
|
|
@ -190,7 +194,9 @@
|
|||
- [ "-audiodev", "driver=spice,id=audio1" ]
|
||||
- [ "-device", "hda-duplex,audiodev=audio1" ]
|
||||
# * USB redirection
|
||||
<#list 0..<vm.spice.usbRedirects as index>
|
||||
<#list 0..<spice.usbRedirects as index>
|
||||
- [ "-chardev", "spicevmc,id=charredir${ index },name=usbredir" ]
|
||||
- [ "-device", "usb-redir,id=redir${ index },chardev=charredir${ index }" ]
|
||||
</#list>
|
||||
</#if>
|
||||
</#if>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue