|
From: | Paolo Bonzini |
Subject: | Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom |
Date: | Wed, 7 Dec 2022 09:39:24 +0100 |
Could you give the detail qemu cmdline about usb-bot?
在 2022/12/2 17:40, Paolo Bonzini 写道:
> 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?
>>>
>>>
>>>
>>
>>
>>
>
>
>
[Prev in Thread] | Current Thread | [Next in Thread] |