qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom em


From: Paolo Bonzini
Subject: Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom
Date: Fri, 2 Dec 2022 10:40:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

On 12/2/22 03:26, Zhipeng Lu wrote:
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda             8:0    0  100M  1 disk
vda           252:0    0   10G  0 disk
├─vda1        252:1    0    1G  0 part /boot
└─vda2        252:2    0    9G  0 part
   ├─rhel-root 253:0    0    8G  0 lvm  /
   └─rhel-swap 253:1    0    1G  0 lvm  [SWAP]
lshw -short|grep cdrom -i
No cdrom.

My patch is to solve this problem, usb cdrom emulated as cdrom.

This is a libvirt bug, it should use usb-bot instead of usb-storage together with -blockdev. Then it can add a scsi-cd device below usb-bot.

Paolo



在 2022/12/1 23:35, Markus Armbruster 写道:
luzhipeng <luzhipeng@cestc.cn> writes:

From: zhipeng Lu <luzhipeng@cestc.cn>

The drive interface supports media=cdrom so that the usb cdrom
can be emulated as cdrom in qemu, but libvirt deprived the drive
interface, so media=cdrom is added to the blockdev interface to
support usb cdrom emulated as cdrom

Signed-off-by: zhipeng Lu <luzhipeng@cestc.cn>

What problem are you trying to solve?










reply via email to

[Prev in Thread] Current Thread [Next in Thread]