Skip to content

Commit

Permalink
Fixed Formatting for Rocky 9 instructions (#1973)
Browse files Browse the repository at this point in the history
Added space for better formatting and fixed Formatting issues
  • Loading branch information
rajpatel-msstate committed Jul 10, 2023
1 parent 8b15d59 commit 96cf048
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion docs/docs/INSTALL_Rocky9.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Install Ravada on Rocky Linux 9 or RHEL9

Add Pre-Requisite Software
------------

.. prompt:: bash $

sudo dnf install mariadb-server
.. prompt:: bash $


And don't forget to enable and start the server process:

Expand Down Expand Up @@ -37,18 +39,24 @@ Grant all permissions on this database to the *rvd_user*:

Add Another Pre-Requisite Software
------------

.. prompt:: bash $

sudo dnf install httpd

Enable and Start HTTPD service

.. prompt:: bash $

sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl status httpd


Allow firewallD service

.. prompt:: bash $

sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload
Expand All @@ -58,20 +66,23 @@ Requirements
------------

.. prompt:: bash $

sudo dnf install qemu-kvm libvirt virt-manager virt-install iptables-services httpd mysql-server perl git


Install Required Perl Module using CPAN Shell
Open CPAN shell using

.. prompt:: bash $

perl -MCPAN -e shell



Install Required Perl Modules using inside CPAN shell using

.. prompt:: bash $

install Authen::SASL Authen::ModAuthPubTkt Authen::Passphrase Authen::Passphrase::SaltedDigest Carp DBIx::Connector Data::Dumper DateTime DateTime::Duration DateTime::Format::DateParse Digest::MD5 Digest::SHA Encode Encode::Locale Fcntl File::Basename File::Copy File::Path File::Rsync File::Tee Getopt::Long Hash::Util I18N::LangTags::Detect IO::Interface IO::Interface::Simple IO::Socket IPC::Run3 Image::Magick Image::Magick::Q16HDRI JSON::XS LWP::UserAgent Locale::Maketext Locale::Maketext::Lexicon MIME::Base64 Mojo::DOM Mojo::Home Mojo::JSON Mojo::Template Mojo::UserAgent Mojolicious Mojolicious::Lite Mojolicious::Plugin::Config Mojolicious::Plugin::I18N Moose Moose::Role Moose::Util::TypeConstraints MooseX::Types::NetAddr::IP Net::DNS Net::Domain Net::LDAP Net::LDAP::Entry Net::LDAP::Util Net::LDAPS Net::OpenSSH Net::Ping NetAddr::IP PBKDF2::Tiny POSIX Proc::PID::File Ravada Socket Storable Sys::Hostname Sys::Virt Sys::Virt::Domain Sys::Virt::Stream Time::HiRes Time::Piece URI URI::Escape XML::LibXML YAML base feature locale strict utf8 vars warnings


Expand Down Expand Up @@ -105,13 +116,15 @@ Make sure you are in root folder
-------------

.. prompt:: bash $

cd /root


Download Ravada from Git Repo
--------------

.. prompt:: bash $

git clone https://github.com/UPC/ravada.git


Expand All @@ -121,19 +134,22 @@ Install Ravada
Go to Ravada folder

.. prompt:: bash $

cd ravada


Once Inside the Ravada folder, Install using make

.. prompt:: bash $

make
make install


Once Ravada Perl module has been installed, confirm the file has been installed perl libaries by typing

.. prompt:: bash $

ls /usr/local/share/perl5/5.32/


Expand All @@ -142,6 +158,7 @@ If you "Ravada" folder and all the lib folders installed, you have successfully
Now, it's time to copy essential files

.. prompt:: bash $

cp -r /root/ravada /usr/share/ravada
cp -r /root/ravada/etc/systemd/* /etc/systemd/system/
cp /root/ravada/etc/ravada.conf /etc/
Expand All @@ -154,6 +171,7 @@ Modify the rvd_front.conf accordingly
Now, it's time to install rvd_back service

.. prompt:: bash $

perl /root/ravada/script/rvd_back
.

Expand All @@ -163,13 +181,15 @@ Add a new user for the ravada web. Use rvd\_back to create it. It will perform s
When asked if this user is admin answer *yes*.

.. prompt:: bash $

sudo /usr/sbin/rvd_back --add-user admin



We can enable the rvd_back and rvd_front service

.. prompt:: bash $

sudo systemctl daemon-reload
sudo systemctl enable rvd_back
sudo systemctl enable rvd_front
Expand All @@ -180,18 +200,21 @@ We can enable the rvd_back and rvd_front service
Change the Qemu config

.. prompt:: bash $

vim /etc/libvirt/qemu.conf


Uncomment the following line:

.. prompt:: bash $

save_image_format = "bzip2"


You have to restart libvirt after changing this file:

.. prompt:: bash $

sudo systemctl restart libvirtd


Expand All @@ -200,19 +223,22 @@ Add link to kvm-spice
This may change in the future but actually a link to kvm-spice is required. Create it this way:

.. prompt:: bash $

ln -s /usr/bin/qemu-kvm /usr/bin/kvm-spice


Finally, we need to copy the xml template to the location below:

.. prompt:: bash $

mkdir /var/lib/ravada
cp -r /root/ravada/etc/xml /var/lib/ravada/


Go ahead and restart rvd_back, rvd_front, and libvirtd to ensure everything is working as expected

.. prompt:: bash $

sudo systemctl restart rvd_back
sudo systemctl restart rvd_front
sudo systemctl restart libvirtd
Expand Down

0 comments on commit 96cf048

Please sign in to comment.