qemu: scsi id conflict when both disk_interface
and cdrom_interface
are set to virtio-scsi
#35
Labels
disk_interface
and cdrom_interface
are set to virtio-scsi
#35
This issue was originally opened by @AmedeeBulle in hashicorp/packer#11211 and has been migrated to this repository. The original issue description is below.
Overview of the Issue
When setting both
disk_interface
andcdrom_interface
tovirtio-scsi
, they will use the same target and qemu will error out with:As workaround, we can list the drives in
qemuargs
and useindex=1
for the cdrom, but this is not very practical...The use case for having both set to
virtio-scsi
is:sda
(target / portability reason)virtio-scsi
for the cdrom (on x86_64 I use the default --virtio
-- so I don't have this issue)Reproduction Steps
With the Buildfile hereunder:
Packer version
Packer v1.7.4
Simplified Packer Buildfile
(any iso file will do)
Operating system and Environment details
Oracle Linux 8.4 on aarch64.
Kernel: 5.4.17-2102.204.4.2.el8uek.aarch64
qemu-kvm: 4.2.0
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: