Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-06-05 Thread 梁朝军
Thanks a lot. Peter . BTW, one more question, recently sometimes we often hit another issue that vm can’t boot from disk stuck in black screen show “Guest has not initialized the display (yet).” Our QEMU command line parameter like below. /usr/bin/qemu-system-x86_64 -name

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-06-04 Thread Peter Krempa
On Fri, Jun 04, 2021 at 19:22:31 +0800, 梁朝军 wrote: > Hi Guys: > > Who can help me ? What does this issue mean? When I attach a network I hit > this issue. > > libvirt: QEMU Driver error : internal error: unable to execute QEMU command > 'netdev_add': Invalid parameter type for 'vhost',

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-06-04 Thread 梁朝军
Hi Guys: Who can help me ? What does this issue mean? When I attach a network I hit this issue. libvirt: QEMU Driver error : internal error: unable to execute QEMU command 'netdev_add': Invalid parameter type for 'vhost', expected: boolean Thanks! > 在 2021年5月24日,下午7:08,Daniel P. Berrangé

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-24 Thread Daniel P . Berrangé
On Mon, May 24, 2021 at 01:04:44PM +0200, Michal Prívozník wrote: > On 5/21/21 5:28 PM, 梁朝军 wrote: > > Thanks all of you for your help. > > One more question regarding vhost-user-blk-pci type device, how to > > identify a vhost-blk disk in QEUM VM ? for example, disk name looks like > >

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-24 Thread Michal Prívozník
On 5/21/21 5:28 PM, 梁朝军 wrote: > Thanks all of you for your help. > One more question regarding vhost-user-blk-pci type device, how to identify > a vhost-blk disk in QEUM VM ? for example, disk name looks like vda,vdb,..., > but that some application in VM want to detect that a certain entry

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-21 Thread 梁朝军
Thanks all of you for your help. One more question regarding vhost-user-blk-pci type device, how to identify a vhost-blk disk in QEUM VM ? for example, disk name looks like vda,vdb,..., but that some application in VM want to detect that a certain entry is really the device it is waiting

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-17 Thread Michal Prívozník
On 5/17/21 7:08 AM, Liang Chaojun wrote: > > Thanks Michal and Peter for your response. I‘ m running it on qemu 5.1 build > by myself. BTW, follow Peter’s suggestion, where I can get the latest rpms if > I want to upgrade to Libvirt 7.1? As I know it seems need more than twenty > related rpms

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-17 Thread Han Han
On Mon, May 17, 2021 at 1:09 PM Liang Chaojun wrote: > > Thanks Michal and Peter for your response. I‘ m running it on qemu 5.1 > build by myself. BTW, follow Peter’s suggestion, where I can get the latest > rpms if I want to upgrade to Libvirt 7.1? As I know it seems need more than > twenty

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-16 Thread Liang Chaojun
Thanks Michal and Peter for your response. I‘ m running it on qemu 5.1 build by myself. BTW, follow Peter’s suggestion, where I can get the latest rpms if I want to upgrade to Libvirt 7.1? As I know it seems need more than twenty related rpms not include dependency. > 在

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-14 Thread Michal Prívozník
On 5/14/21 8:33 AM, Liang Chaojun wrote: > > > Thanks,I have tried qemu monitor as below. I used chardev_add to add a > chardev and used device_add it to running vm. But i often hit a issue and > cause the vm crash. qemu-system-x86_64: ../hw/virtio/vhost.c:1566: > vhost_dev_get_config:

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-14 Thread Liang Chaojun
Thanks,I have tried qemu monitor as below. I used chardev_add to add a chardev and used device_add it to running vm. But i often hit a issue and cause the vm crash. qemu-system-x86_64: ../hw/virtio/vhost.c:1566: vhost_dev_get_config: Assertion `hdev->vhost_ops' failed. virsh

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-14 Thread Peter Krempa
On Fri, May 14, 2021 at 14:33:37 +0800, Liang Chaojun wrote: > > > Thanks,I have tried qemu monitor as below. I used chardev_add to add a > chardev and used device_add it to running vm. But i often hit a issue and > cause the vm crash. qemu-system-x86_64: ../hw/virtio/vhost.c:1566: >

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-14 Thread Liang Chaojun
Thanks,I have tried qemu monitor as below. I used chardev_add to add a chardev and used device_add it to running vm. But i often hit a issue and cause the vm crash. qemu-system-x86_64: ../hw/virtio/vhost.c:1566: vhost_dev_get_config: Assertion `hdev->vhost_ops' failed. virsh

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Peter Krempa
On Thu, May 13, 2021 at 23:11:36 +0800, Liang Chaojun wrote: > > > Thanks Peter for your quickly response. Is there any workaround to do that?As > you know we must take care the risk of using latest version in product > environment. Manual approach is to use 'virsh qemu-monitor-command' or

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Liang Chaojun
Thanks Peter for your quickly response. Is there any workaround to do that?As you know we must take care the risk of using latest version in product environment. Thanks a lot! > 在 2021年5月13日,22:25,Peter Krempa 写道: > > On Thu, May 13, 2021 at 15:25:23 +0800, 梁朝军 wrote: >> Hi Guy, >>

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Peter Krempa
On Thu, May 13, 2021 at 15:25:23 +0800, 梁朝军 wrote: >Hi Guy, > >Does anyone clear how to hot plugin a new vhost-user-blk-pci device to a >running VM? > >Before staring vm , I pass the disk through QEMU command line like below. > > > > >

How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread 梁朝军
Hi Guy,Does  anyone clear how to hot plugin a new vhost-user-blk-pci device to a running VM?Before staring vm , I pass the disk through QEMU command line  like below.                        But I don’t know how to live add a vhost-user-blk-pci device on running VM even with calling attachDevice

How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Liang Chaojun
Hi Guy, Does anyone clear how to hot plugin a new vhost-user-blk-pci device to a running VM? Before staring vm , I pass the disk through QEMU command line like below. But I don’t know how to live add a vhost-user-blk-pci device on running VM even with calling attachDevice API