How to let cloud-hypervisror communicate with the vhost RNG daemon
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.
@mathieupoirier inputs ?
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.
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: @.***>
@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.
@wangchao-sh ping
Do you still have this problem or can we close this issue?
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