Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Random number generator device #25

Closed
Vanuan opened this issue Oct 16, 2018 · 4 comments
Closed

Random number generator device #25

Vanuan opened this issue Oct 16, 2018 · 4 comments

Comments

@Vanuan
Copy link

Vanuan commented Oct 16, 2018

It looks like there's no way to specify tpm or rng device. Without /dev/urandom linux would struggle to boot.

Something like this:

      Rngs:
       Model: virtio
       Backend:
          Model: random
          Value: /dev/urandom

should be transformed into this:

    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
    </rng>
@Vanuan
Copy link
Author

Vanuan commented Oct 16, 2018

Here's xml documentation:

https://libvirt.org/formatdomain.html#elementsRng

@Vanuan Vanuan changed the title Random device Random number generator device Oct 16, 2018
@berrange
Copy link
Contributor

Err yes there is support for this in the DomainRNG and DomainTPM structs

RNG:

RNGs []DomainRNG `xml:"rng"`

TPM:

TPMs []DomainTPM `xml:"tpm"`

@Vanuan
Copy link
Author

Vanuan commented Oct 16, 2018

Oh, sorry, I was looking at the vendored file. Not updated for a while

@repo-lockdown
Copy link

repo-lockdown bot commented Apr 7, 2020

Thank you for your interest in the libvirt project.

Since this repository is a read-only mirror of the project's master repostory hosted on GitLab, issues opened here are not processed.

We kindly request that new issues are reported to

https://gitlab.com/libvirt/libvirt-go-xml/-/issues/new

Thank you for your time and understanding.

@repo-lockdown repo-lockdown bot locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants