Allow serial port passthrough to virtual machines

This commit is contained in:
Timo Makinen 2025-01-30 16:56:35 +00:00
parent 11fbb4a720
commit 20626d18d5

View file

@ -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 \