Support cdrom media change.

This commit is contained in:
Michael Lipp 2023-08-05 11:40:36 +02:00
parent ae2e6cde7f
commit e8b10b32b0
12 changed files with 278 additions and 37 deletions

View file

@ -144,8 +144,8 @@
<#assign cdCounter = 0/>
<#list vm.drives![] as drive>
<#if (drive.type!"") == "ide-cd">
- [ "-drive", "id=drive-cdrom${ cdCounter },if=none,media=cdrom,cache=none\
<#if drive.file??>,file=${ drive.file }</#if>" ]
- [ "-drive", "id=drive-cdrom${ cdCounter },if=none,media=cdrom,\
readonly=on<#if drive.file??>,file=${ drive.file }</#if>" ]
# (IDE is old, but faster than usb-storage. virtio-blk-pci does not
# work without file [empty drive])
- [ "-device", "ide-cd,id=cd${ cdCounter },bus=ide.${ cdCounter },\