glondu / belenios

Verifiable online voting system. This is a mirror of https://gitlab.inria.fr/belenios/belenios
https://www.belenios.org
GNU Affero General Public License v3.0
133 stars 21 forks source link

Nspawn Building the deployment environment #26

Closed jgay-dauphine closed 3 years ago

jgay-dauphine commented 3 years ago

Hi, First at all, thanks for sharing this great project.

I'm trying to set up a production version of Belenios for our University. After some tries I decided to test the nspawn installation. I'm currently running this on a Fedora workstation. Step 1 and 2 are OK. I've got the belenios FS and install working:

[root@cric-cig177 belenios]# systemd-nspawn --directory=/opt/belenios --user=beleniosSpawning container belenios on /home/jgay/WORK/belenios-build.
Press ^] three times within 1s to kill container.
belenios@belenios:~$ 

But I can't get the step3 to work. Here is my last try:

[root@cric-cig177 belenios]# systemd-nspawn --directory=/opt/belenios --user=root
Spawning container belenios on /home/jgay/WORK/belenios-build.
Press ^] three times within 1s to kill container.
root@belenios:~# /home/belenios/belenios/doc/nspawn/belenios-stage3.sh
(...)
Installing Debian prerequisites...
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Failed to fetch http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.12_all.deb  Temporary failure resolving 'deb.debian.org'
(...)
E: Failed to fetch http://deb.debian.org/debian/pool/main/z/zlib/zlib1g-dev_1.2.11.dfsg-1_amd64.deb  Temporary failure resolving 'deb.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Any ideas, advices?

glondu commented 3 years ago

Is systemd-resolved running on the host?

jgay-dauphine commented 3 years ago

Ho my...

so sorry yeah it was the issue. I've got it running last week. I though I told it here but it seems I've missed it.

BTW thank you very much for all this work.