Support cdrom media change.
This commit is contained in:
parent
ae2e6cde7f
commit
e8b10b32b0
12 changed files with 278 additions and 37 deletions
|
|
@ -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 },\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue