Skip to content

Virtlet lack of entropy #843

@roboman2444

Description

@roboman2444

My Virtlet pods have a surprising lack of entropy, and therefore, fail/timeout some services that require /dev/random and getrandom().

pod after being up for a few minutes

It appears that something like https://wiki.qemu.org/Features/VirtIORNG would help. Is there any way to enable this in Virtlet, or some other method of generating more entropy on the pods?

The same image generates entropy just fine when running on my desktop in Qemu.

My issue might be related to the ec2 i3.metal instance I am running it on, but that has > 3000 in /proc/sys/kernel/random/entropy_avail.

I'm running images based on Alpine if that matters. (generated with https://github.com/alpinelinux/alpine-make-vm-image), and the Host is running Ubuntu 18.10 with kubernetes 1.11.6.

I'm currently using haveged as a band-aid fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions