-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
cat /dev/urandom doesn't work in unprivileged LXC containers (e.g. Proxmox) #280
Comments
Can you try running: (Nyr's script falls-back to curl when wget doesn't work while this script only uses wget. If you aren't able to wget that file, this script will need to include a similar fall back). |
Hi @billyprice1 are you getting any error? |
HI there @angristan i am still getting this issue it just get stuck here https://i.imgur.com/gw6sxbt.png yet on the nyr installer it works |
Wow that's weird. But I can't say for sure if this is Can you try executing these few lines by hand and see if you can reproduce the issue ? https://github.com/angristan/openvpn-install/blob/master/openvpn-install.sh#L533#L547 |
Hmm it don't seem to break there SERVER_CN="cn_$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 16 | head -n 1)" is where it stops and experience the same behavior also if it helps i am running lxc with proxmox and ubuntu 16.04 it only seem to happen with that like on scaleway etc it works but even on my dedi it happens in lxc |
Maybe a See https://lists.linuxcontainers.org/pipermail/lxc-users/2015-June/009402.html |
I found this: QuickBox/QB#50 |
Can you test these 3 commands inside you container: tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 16 | head -n 1
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1
head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1 |
head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1 this command run but the other 2 does not |
OK. What kind of output does it give you ? A random alphanumeric string? If it does, I will update the script to address your use case. |
It gives me a string of charaters |
OK, thanks |
Are you going to make a custom branch for lxc or something or change the main branch and use head instead of tr |
I'm going to use head on master |
hi there sometime when i do this on it get stuck at downloading the easyrsa tar.gz file does anyone know why but it work's fine on nyr
The text was updated successfully, but these errors were encountered: