Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wangchao-sh opened this issue Apr 23, 2023 · 5 comments
Open
Labels
question Further information is requested

Comments

@wangchao-sh
Copy link

wangchao-sh commented Apr 23, 2023

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.

@vireshk
Copy link
Collaborator

vireshk commented May 26, 2023

@mathieupoirier inputs ?

@stsquad
Copy link
Collaborator

stsquad commented May 26, 2023

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.

@mathieupoirier
Copy link
Contributor

mathieupoirier commented May 26, 2023 via email

@mathieupoirier
Copy link
Contributor

@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.

@stefano-garzarella stefano-garzarella added the question Further information is requested label Sep 27, 2023
@stefano-garzarella
Copy link
Member

@wangchao-sh ping

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants