Virtlyst icon indicating copy to clipboard operation
Virtlyst copied to clipboard

Dockerfile no longer works

Open reedog117 opened this issue 4 years ago • 15 comments

This happens after performing the docker build steps as detailed in the wiki

[root@xxx virtlyst]# docker run -ti --init --name virtlyst -p 3000:3000 -v /run/libvirt:/run/libvirt:rw virtlyst
Installing EPoll event loop
Loading INI configuration: config.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Loading application: src/libVirtlyst.so
6:6 wsgi[critical] Could not load application: "The shared library was not found."

reedog117 avatar Mar 14 '20 20:03 reedog117

Which page? Do you know how to fix? I'm no docker expert.

dantti avatar Mar 15 '20 16:03 dantti

It looks like src/libVirtlyst.so is not created during all the cc compilation steps when the docker container is built. However I don't see any error messages at all during the compilation process.

I'm referring to this page: https://github.com/cutelyst/Virtlyst/wiki/Running-with-Docker

reedog117 avatar Mar 16 '20 14:03 reedog117

Is there going to be a fix to this? Im having the same problem

shepner avatar Aug 10 '20 11:08 shepner

I'll fidle a bit with it to get my debian package build script working again and come back when I have something that works

schnuffle avatar Aug 28 '20 19:08 schnuffle

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

  • I switched to buster
  • Switched to cuetlyste v2.9.0
  • Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

schnuffle avatar Aug 28 '20 22:08 schnuffle

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

* I switched to buster

* Switched to cuetlyste v2.9.0

* Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

Thanks I use your example-config.ini and Dockerfile and it works!

But I had a couple issues.. (sorry I had poor docker knoledge..)

-Admin password is re-generate every time and can't find how to change: 1:1 virtlyst[critical] Created user admin with password: "f46e9e879f704a2786d651bcae5a67ec"

-To access qemu by ssh I get this message: "You must create ssh authorization key. If you have another SSH port on your server, you can add IP:PORT like '192.168.1.1:2222'."

So I need to install client-ssh INSIDE docker container Virtlyst and get rsa-keys?

Thanks in advance.

almol avatar Sep 10 '20 16:09 almol

Does the User under which virtlyst runs has Keys generated?

schnuffle avatar Sep 11 '20 19:09 schnuffle

Does the User under which virtlyst runs has Keys generated?

Do you refer that user inside Docker? If I want to connect to server with qemu+ssh:// , docker will be able to do ssh with one user. So Dockerfile will install ssh and generate user with keys. How I can do this?

almol avatar Sep 14 '20 12:09 almol

I'm in Holidays, will adopt the docker File as soon as im Back in a couple of daysRegarde SchnuffleAm 14.09.2020 14:28 schrieb almol [email protected]:

Does the User under which virtlyst runs has Keys generated?

Do you refer that user inside Docker? If I want to connect to server with qemu+ssh:// , docker will be able to do ssh with one user. So Dockerfile will install ssh and generate user with keys. How I can do this?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

schnuffle avatar Sep 14 '20 12:09 schnuffle

BTW I'm starting to add CPack to most of my projects, will do this for this one too so the dockerfile won't need to compile it, just grab the .debs from the repos. (You can do this for Culelyst already)

dantti avatar Sep 14 '20 13:09 dantti

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

  • I switched to buster
  • Switched to cuetlyste v2.9.0
  • Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

This worked for me as well after also installing binutils and running the following: strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 Solves a libQt5Core.so.5 error right after.

wtownse avatar Mar 13 '21 07:03 wtownse

https://github.com/misery/DockerVirtlyst :smiley:

misery avatar Jan 21 '24 21:01 misery

Fixed in e886939d7728de526729398f34735114d612739c

Merged my "fork"

misery avatar Jan 25 '24 20:01 misery

What is the name of repository/image to download the builds of GH actions?

mario-tux avatar Jan 25 '24 21:01 mario-tux

https://hub.docker.com/r/dantti/virtlyst

misery avatar Feb 06 '24 18:02 misery