Navigation Menu

Skip to content
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

Redhat installation instructions #448

Closed
frankiejol opened this issue Nov 6, 2017 · 24 comments
Closed

Redhat installation instructions #448

frankiejol opened this issue Nov 6, 2017 · 24 comments

Comments

@frankiejol
Copy link
Member

Add a new doc for install Ravada on Redhat and similar distributions:

  1. Download the package from github https://github.com/UPC/ravada/releases
  2. Uncompress
  3. Download requirements : some with rpm some with cpan
  4. Install .pm files possibly perl Makefile.PL, make, make test, make install
  5. Install rvd_front and rvd_back
  6. Create systemd files like those from debian
@frankiejol frankiejol added this to the 0.3.0 milestone Nov 6, 2017
@rapgro
Copy link

rapgro commented Nov 29, 2017

A good start to learn generals about RPM can be found by reading through the Fedora wiki.
https://fedoraproject.org/wiki/How_to_create_an_RPM_package

Recommended good packaging of Perl modules and applications is described in the guidelines.
https://fedoraproject.org/wiki/Packaging:Perl

In particular, CPAN or perl dependencies in general are possible to be handled magically by rpm command with Requires: perl($module)
https://fedoraproject.org/wiki/Packaging:Perl#Perl_Requires_and_Provides

Systemd:
https://fedoraproject.org/wiki/Packaging:Systemd

@frankiejol frankiejol modified the milestones: 0.3.0, 0.4.0 Nov 29, 2017
@rapgro
Copy link

rapgro commented Dec 3, 2017

It seems some dependencies are not available in Fedora 27:

<snip>
+ perl Makefile.PL PREFIX=/usr
Warning: prerequisite Authen::Passphrase 0 not found.
Warning: prerequisite Mojolicious::Plugin::I18N 0 not found.
Warning: prerequisite MooseX::Types::NetAddr::IP 0 not found.
Warning: prerequisite Test::SQL::Data 0 not found.
Checking if your kit is complete...
Looks good
Warning: Guessing NAME [ravada] from current directory name.
Generating a Unix-style Makefile
<snip>

Backend is not generated.

@frankiejol
Copy link
Member Author

@rapgro thank you for looking at this issue. We really appreciate if someone gave us a hand.
Can you check there is no other RPM repository out there with some of these packages ?

Those packages can be installed from source if they are not available in RPM format.
First install cpanimus. I am not sure in redhat. Debian has a package *cpanminus". Then you need some building essential packages like make, gcc.

Then install all the missing dependencies:

$ sudo cpanm Authen::Passphrase

@eclipseo
Copy link
Contributor

eclipseo commented Dec 4, 2017

So, following the call for help by @rapgro on IRC, I've worked on this last night. All the missing Perl
dependencies are packaged and are waiting to be reviewed for Fedora inclusion.

The Ravada package itself is packaged as well albeit it would need an expert eye, I followed the install script for Debian as a starting base but I'd like someone to beta test it as I don't know anythinq about virtualisation myself.

The SPEC can be reviewed here: https://github.com/eclipseo/packaging/blob/master/ravada.spec
Please include any comment you feel necessary.

For the testing itself, @rapgro if you could help this would be great: I have set up a COPR with the packages here: https://copr.fedorainfracloud.org/coprs/eclipseo/ravada/ I just need to know if the program is working as intended. Especially I am not sure of the runtime dependencies, like do I need to depend om mysql, libvirt, qemu-kvm or should I assume the user need to install the virtualisation tools themself.

@frankiejol
Copy link
Member Author

@eclipseo thank you very much for your work. I am going to install a Fedora today to check it out.

Especially I am not sure of the runtime dependencies, like do I need to depend om mysql, libvirt, qemu-kvm or should I assume the user need to install the virtualisation tools themself.

The Debian (Ubuntu) package has de dependencies for libvirt, qemu-kvm and all the other packages. So an inexperienced user can have Ravada running easily on a fresh Ubuntu server install.

@frankiejol
Copy link
Member Author

I just tried to install Ravada inside a virtual Fedora 25 but failed. Redhat is not my cup of coffe so I may have missed something. This is what I tried:

# dnf copr enable eclipseo/ravada
Repository successfully enabled.
# dnf install ravada
Failed to synchronize cache for repo 'eclipseo-ravada', disabling.
Last metadata expiration check: 0:32:14 ago on Tue Dec  5 10:10:48 2017.
No package ravada available.
Error: Unable to find a match.

I then searched for the failed to synchronize error, and I set a proxy for dnf but it did the same. I checked in the proxy it was trying to connect outside.

@eclipseo
Copy link
Contributor

eclipseo commented Dec 5, 2017

I did not build the package for F25, only F26→Rawhide.

@eclipseo
Copy link
Contributor

eclipseo commented Dec 5, 2017

Try again, it should be available to F25 now.

@frankiejol
Copy link
Member Author

It is great to get help on this topic way ahead our plan. So I am trying my best, but my RPM skills are a little rusty.

On Fedora 25 I found a couple of missing packages, that I installed. It looks the rpms built by @eclipseo are there but somehow weren't download automatically. These were:

  • perl-Mojolicious-Plugin-I18N
  • perl-Mojolicious-Plugin-RenderFile

I also had to install perl-DBD-MySQL.

Then I installed MySQL, created the database. I noticed the rvd_back.pl and rvd_front.pl scripts are swapped. I mean: the rvd_back.pl file in the source is called rvd_front.pl here. Anyway I launched them in reverse order and it worked. I am not sure where this rpm comes from, but the correct daemons are:

  • ravada/rvd_front.pl - /usr/sbin/rvd_front
  • ravada/bin/rvd_back.pl - /usr/sbin/rvd_back

I also had problems running the front ( back ), it returned this, but it worked on retrying.

Couldn't initialize I18N default class "Ravada::I18N": Can't locate Locale/Maketext.pm

Then I had to link the kvm binary to qemu-kvm. This may be fixed in more recent fedoras.

The Ravada release it is a little old ravada, so the virtual machine failed to start because the machine definition was forced to ubuntu, but I fixed it manually and it started.

Anyway this is a great starting point. I was a little disapointed some time ago when I first tried to convert the debian package with alien because there are a lot of missing perl packages in RedHat. But @eclipseo built them all. I think with some extra work we can have a RPM package and a manual soon.

@rapgro
Copy link

rapgro commented Dec 8, 2017

On Fedora 25 I found a couple of missing packages, that I installed.

Fedora 25 will be EOL shortly (at around the coming turn of the year), the recommendation is therefore to not invest that much time in legacy but better do more testing with Fedora 26 and newer, although some packages as well for EPEL7 (additional repository for RHEL7 and CentOS7) can be an option.

Originally, I promised to do some testing and look into the requested package reviews for the missing dependencies while the weekend. Now it turns out that I'll travel a lot, so can't promise anything.

Then I had to link the kvm binary to qemu-kvm. This may be fixed in more recent fedoras.

This can be fixed in the templates, as we discussed in IRC, maybe with a Fedora specific patch included in the package.

Anyway this is a great starting point. […] But @eclipseo built them all. I think with some extra work we can have a RPM package and a manual soon.

Please forget about alien for official packages. I'm happy to see the great work of @eclipseo , too.

@rapgro
Copy link

rapgro commented Jan 17, 2018

https://bugzilla.redhat.com/show_bug.cgi?id=1535207

@eclipseo
Copy link
Contributor

eclipseo commented Feb 7, 2018

Status update:

The package has been approved and I've just finished building on F26 to F28: https://koji.fedoraproject.org/koji/packageinfo?packageID=26311
Now we have to wait until testing is finished and Ravada will be available on Fedora.

@rapgro also requested it to be built for EPEL7, sadly a few dependencies are missing, I filed bugs to request EPEL7 builds for them:

perl(Locale::Maketext::Lexicon) https://bugzilla.redhat.com/show_bug.cgi?id=1542721
perl(Mojolicious) >= 6.15 https://bugzilla.redhat.com/show_bug.cgi?id=1525990 and https://bugzilla.redhat.com/show_bug.cgi?id=1542727
perl(Sys::Statistics::Linux) https://bugzilla.redhat.com/show_bug.cgi?id=1542731

I also need to build my own Perl packages on EPEL7, hopefully there won't be any missing dependencier for them.

@eclipseo
Copy link
Contributor

Ravada is finally available in Fedora 26 and 27!

For EPEL, I'm still waiting on dependencies to be built by their busy maintainers, but I'm fairly optimistic that it will be available too.

@frankiejol
Copy link
Member Author

There is also a tweet from fedorausers. @eclipseo I'd love to thank you in a tweet if you let me know your twitter name.
https://twitter.com/fedorausers/status/965990827452518400

@eclipseo
Copy link
Contributor

Sorry, I don't use any social media.

@elodin1
Copy link
Contributor

elodin1 commented Feb 23, 2018

@eclipseo
Hi, I've tried to install Ravada on Fedora 27 by using the cmd "dnf install ravada", but it doesn't install the requires descrived here:
https://fedora.pkgs.org/26/fedora-updates-i386/ravada-0.2.13-0.1.20180117gitf70dfbf.fc26.noarch.rpm.html

Is there a way to install all at once or I must install it one by one?

@eclipseo
Copy link
Contributor

eclipseo commented Feb 23, 2018

Are you sure you don't already have those deps installed?

For example on my system, it doesn't install libvirt, qemu or mariadb because I already have those:

$ sudo dnf install ravada
Last metadata expiration check: 5:58:22 ago on ven. 23 févr. 2018 07:57:31 CET.
Dependencies resolved.
=============================================================================================================================================================================================
 Package                                               Arch                            Version                                                        Repository                        Size
=============================================================================================================================================================================================
Installing:
 ravada                                                noarch                          0.2.13-0.1.20180117gitf70dfbf.fc27                             updates                          505 k
Installing dependencies:
 ImageMagick-perl                                      x86_64                          1:6.9.9.27-1.fc27                                              updates                          166 k
 perl-AppConfig                                        noarch                          1.71-10.fc27                                                   updates                           86 k
 perl-Authen-DecHpwd                                   x86_64                          2.007-1.fc27                                                   updates                           23 k
 perl-Authen-Passphrase                                noarch                          0.008-1.fc27                                                   updates                          112 k
 perl-Authen-SASL                                      noarch                          2.16-12.fc27                                                   fedora                            55 k
 perl-CGI                                              noarch                          4.37-1.fc27                                                    updates                          206 k
 perl-Class-Mix                                        noarch                          0.006-1.fc27                                                   fedora                            20 k
 perl-Convert-ASN1                                     noarch                          0.27-9.fc27                                                    fedora                            58 k
 perl-Crypt-DES                                        x86_64                          2.07-12.fc27                                                   fedora                            25 k
 perl-Crypt-Eksblowfish                                x86_64                          0.009-19.fc27                                                  fedora                            58 k
 perl-Crypt-MySQL                                      x86_64                          0.04-1.fc27                                                    updates                           16 k
 perl-Crypt-PasswdMD5                                  noarch                          1.4.0-10.fc27                                                  fedora                            16 k
 perl-Crypt-Rijndael                                   x86_64                          1.13-7.fc27                                                    fedora                            32 k
 perl-Crypt-UnixCrypt_XS                               x86_64                          0.11-1.fc27                                                    updates                           25 k
 perl-DBIx-Connector                                   noarch                          0.56-5.fc27                                                    fedora                            55 k
 perl-Data-Entropy                                     noarch                          0.007-5.fc27                                                   fedora                            50 k
 perl-Data-Float                                       noarch                          0.013-1.fc27                                                   fedora                            33 k
 perl-Data-Integer                                     noarch                          0.006-1.fc27                                                   updates                           25 k
 perl-Devel-CallChecker                                x86_64                          0.008-2.fc27                                                   fedora                            24 k
 perl-Digest-CRC                                       x86_64                          0.22.2-4.fc27                                                  fedora                            23 k
 perl-Digest-MD4                                       x86_64                          1.9-15.fc27                                                    fedora                            37 k
 perl-Digest-SHA1                                      x86_64                          2.13-22.fc27                                                   fedora                            55 k
 perl-DynaLoader-Functions                             noarch                          0.003-1.fc27                                                   fedora                            20 k
 perl-GSSAPI                                           x86_64                          0.28-21.fc27                                                   fedora                            61 k
 perl-HTTP-Lite                                        noarch                          2.44-11.fc27                                                   fedora                            32 k
 perl-IO-Interface                                     x86_64                          1.09-9.fc27                                                    fedora                            34 k
 perl-IPC-Run3                                         noarch                          0.048-11.fc27                                                  fedora                            43 k
 perl-IPTables-ChainMgr                                noarch                          1.6-4.fc27                                                     fedora                            28 k
 perl-IPTables-Parse                                   noarch                          1.6.1-6.fc27                                                   fedora                            28 k
 perl-Image-Base                                       noarch                          1.17-9.fc27                                                    fedora                            26 k
 perl-Image-Info                                       noarch                          1.41-2.fc27                                                    fedora                            85 k
 perl-Image-Xbm                                        noarch                          1.10-5.fc27                                                    fedora                            21 k
 perl-Image-Xpm                                        noarch                          1.13-4.fc27                                                    fedora                            22 k
 perl-JSON                                             noarch                          2.94-2.fc27                                                    fedora                            94 k
 perl-JSON-PP                                          noarch                          1:2.94-4.fc27                                                  fedora                            65 k
 perl-JSON-XS                                          x86_64                          1:3.03-6.fc27                                                  fedora                           110 k
 perl-LDAP                                             noarch                          1:0.65-8.fc27                                                  fedora                           388 k
 perl-Lingua-EN-Sentence                               noarch                          0.30-4.fc27                                                    fedora                            19 k
 perl-Locale-Maketext                                  noarch                          1.28-395.fc27                                                  fedora                            97 k
 perl-Locale-Maketext-Lexicon                          noarch                          1.00-12.fc27                                                   fedora                           138 k
 perl-Mojolicious                                      noarch                          7.39-1.fc27                                                    fedora                           861 k
 perl-MooseX-Types-NetAddr-IP                          noarch                          0.07-1.fc27                                                    updates                           11 k
 perl-Net-DNS                                          noarch                          1.15-1.fc27                                                    updates                          366 k
 perl-NetAddr-IP                                       x86_64                          4.079-6.fc27                                                   fedora                           130 k
 perl-Params-Classify                                  x86_64                          0.015-1.fc27                                                   fedora                            34 k
 perl-Pod-POM                                          noarch                          2.01-7.fc27                                                    fedora                            96 k
 perl-Proc-PID-File                                    noarch                          1.28-4.fc27                                                    fedora                            27 k
 perl-Scalar-String                                    x86_64                          0.003-1.fc27                                                   updates                           21 k
 perl-Sys-Statistics-Linux                             noarch                          0.66-13.fc27                                                   fedora                            85 k
 perl-Sys-Virt                                         x86_64                          3.7.0-1.fc27                                                   fedora                           280 k
 perl-Template-Toolkit                                 x86_64                          2.27-5.fc27                                                    fedora                           1.4 M
 perl-Text-Haml                                        noarch                          0.990118-4.fc27                                                fedora                            27 k
 perl-Text-Soundex                                     x86_64                          3.05-7.fc27                                                    fedora                            30 k
 perl-Time-HiRes                                       x86_64                          1.9753-1.fc27                                                  updates                           58 k
 perl-Types-Serialiser                                 noarch                          1.0-11.fc27                                                    fedora                            20 k
 perl-XML-Filter-BufferText                            noarch                          1.01-28.fc27                                                   fedora                            14 k
 perl-XML-LibXML                                       x86_64                          1:2.0132-1.fc27                                                updates                          369 k
 perl-XML-NamespaceSupport                             noarch                          1.12-3.fc27                                                    fedora                            29 k
 perl-XML-SAX                                          noarch                          0.99-20.fc27                                                   fedora                            64 k
 perl-XML-SAX-Base                                     noarch                          1.09-3.fc27                                                    fedora                            34 k
 perl-XML-SAX-Writer                                   noarch                          0.57-1.fc27                                                    fedora                            35 k
 perl-XML-Simple                                       noarch                          2.24-3.fc27                                                    fedora                            85 k
 perl-common-sense                                     x86_64                          3.7.4-7.fc27                                                   fedora                            34 k

Transaction Summary
=============================================================================================================================================================================================
Install  64 Packages

What deps are you expecting that aren't installed exactly?

@elodin1
Copy link
Contributor

elodin1 commented Feb 26, 2018

@eclipseo
Once instaled i tried to create a ravada web user " sudo /usr/sbin/rvd_back --add-user user.name" and then I get an error with missing plugins, the first one was "perl-mojolicious-i18n", after installing this I get an error with a "Render File" plugin...

I'm trying this on a fresh fedora 27 system.

@eclipseo
Copy link
Contributor

eclipseo commented Apr 3, 2018

@elodin1 Sorry for the lack of response, I did not get notified of your comment. This should have been fixed in Release 0.2.13 back early March. I got help from a user to fix errors in packaging.

Anyway, the good news today is that I managed to get all dependencies and built Ravada on EPEL7. It should be in testing for the next two weeks before it hits stable.

https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-8109ac4a9b

@rapgro
Copy link

rapgro commented Apr 4, 2018

@eclipseo Great job for EPEL7! Thanks a lot for all your work.

@frankiejol
Copy link
Member Author

@eclipseo we are thrilled for the Ravada package for Fedora , @elodin1 please try it with the new packages. Thank you both for your collaboration with this issue.

@elodin1
Copy link
Contributor

elodin1 commented Apr 6, 2018

@eclipseo @frankiejol I've tryed again now and no problem at all. Thank you.

frankiejol added a commit that referenced this issue Apr 6, 2018
@rapgro
Copy link

rapgro commented Apr 6, 2018

well, I'm waiting for my new M.2 disk, after arrived I could install CentOS7 and test more deeply. Please standby.

@rapgro
Copy link

rapgro commented Apr 6, 2018

Ravada could work with qt5-virt-viewer in Fedora client. I'm still investigating, mostly keyboard support needs improvement. There should be a note in the help page for remote viewer about qt5-virt-viewer from qt-virt-manager project.

@frankiejol frankiejol modified the milestones: 0.4.0, 0.2.15 Apr 8, 2018
@frankiejol frankiejol modified the milestones: 0.2.15, 0.3.0 May 4, 2018
@frankiejol frankiejol modified the milestones: 0.3, 0.4 Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants