Got it
It has to be scsi
For the sake of someone who faces this issue, one can use this

 -drive
id=cdrom0,if=none,format=raw,readonly=on,file=/var/virt/SRC/Win11_24H2_EnglishInternational_Arm64.iso
-device virtio-scsi-pci,id=scsi0 -device scsi-cd,bus=scsi0.0,drive=cdrom0
to correctly define the cdrom

On Thu, Sep 4, 2025 at 1:50 PM Bhasker C V <bhas...@unixindia.com> wrote:

> Hi,
>  I am using qemu-system-aarch64 and using this option to add a cdrom for
> install
>
> -drive file=../SRC/Win11_24H2_EnglishInternational_Arm64.iso,media=cdrom
>
> But in the qemu monitor I am not able to eject the cdrom or change the
> media
>
> I see this
>
> (qemu) info block
> ...
> virtio1 (#block551): ../SRC/Win11_24H2_EnglishInternational_Arm64.iso
> (raw, read-only)
>     Attached to:      /machine/peripheral-anon/device[5]/virtio-backend
>     Cache mode:       writeback
>
>
>
> and when I do a change I get this
>
> (qemu) change virtio2 /tmp/a
> Error: Device 'virtio2' is not removable
>
>
> could someone help please ?
> thanks
>

Reply via email to