Allow serial port passthrough to virtual machines
This commit is contained in:
parent
11fbb4a720
commit
20626d18d5
1 changed files with 4 additions and 0 deletions
|
@ -99,7 +99,11 @@
|
|||
{% endif -%}
|
||||
{% if virt_install_devices is defined -%}
|
||||
{% for dev in virt_install_devices -%}
|
||||
{% if dev | regex_search('^/dev/tty') -%}
|
||||
--serial dev,path={{ dev }}
|
||||
{% else -%}
|
||||
--hostdev {{ dev }} \
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% else -%}
|
||||
--controller usb,model=none \
|
||||
|
|
Loading…
Add table
Reference in a new issue