vhost-device icon indicating copy to clipboard operation
vhost-device copied to clipboard

How to let cloud-hypervisror communicate with the vhost RNG daemon

Open wangchao-sh opened this issue 2 years ago • 5 comments

start rng backend daemon: #vhost-device-rng --socket-path=/tmp/rng.sock -c 1 -m 512 -p 1000

use ch-remote to let running cloud-hyperviosr communicate with the rng daemon: # ch-remote --api-socket /work/run/clh.sock add-user-device socket=/tmp/rng.sock0,id=rng0 Error running command: Server responded with an error: InternalServerError: ApiError(VmAddUserDevice(DeviceManager(VfioUserCreateClient(StreamRead(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })))))

# ch-remote --api-socket /work/run/clh.sock add-device socket=/tmp/rng.sock0,id=rng0 Error running command: Error parsing device syntax: Error parsing --device: unknown option: socket

The error occurs when using the add-device or add-user-device parameter.

wangchao-sh avatar Apr 23 '23 09:04 wangchao-sh

@mathieupoirier inputs ?

vireshk avatar May 26 '23 10:05 vireshk

This looks like a problem on the cloud hypervisor side but you can run the daemon with:

env RUST_LOG=debug vhost-device-rng --socket-path=/tmp/rng.sock -c 1 -m 512 -p 1000

and you might get a bit more information on what is failing.

stsquad avatar May 26 '23 16:05 stsquad

I have no background or context on this. I will look into it in the coming days.

On Fri, 26 May 2023 at 04:57, Viresh Kumar @.***> wrote:

@mathieupoirier https://github.com/mathieupoirier inputs ?

— Reply to this email directly, view it on GitHub https://github.com/rust-vmm/vhost-device/issues/331#issuecomment-1564211948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELPW7I4Z77AHGX6EAPSHLXICEAPANCNFSM6AAAAAAXINNZCI . You are receiving this because you were mentioned.Message ID: @.***>

mathieupoirier avatar May 26 '23 20:05 mathieupoirier

@wangchao-sh What is "ch-remote"? Can you provide more information on it? As @stsquad mentionned, it seems to be a problem related to cloud-hypervisor. It could also be an issue with priviliges. I'm afraid not much can be done with the information currently provided.

mathieupoirier avatar May 31 '23 15:05 mathieupoirier

@wangchao-sh ping

Do you still have this problem or can we close this issue?

stefano-garzarella avatar Sep 27 '23 09:09 stefano-garzarella

No updates in the last year, I'm closing this. @wangchao-sh feel free to re-open if you still have the issue and more details

stefano-garzarella avatar Nov 20 '24 14:11 stefano-garzarella