Monday, March 14, 2022

How To Install KVM On Rocky Linux | Configure Bridge networking

 in This Tutorial you will Learn " How To Install KVM On Rocky Linux 8.5 | Configure Bridge networking for KVM virtual machines."

KVM hypervisor is the virtualization layer in Kernel-based Virtual Machine (KVM), a free, open source virtualization architecture for Linux distributions.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release
dnf -y install qemu-kvm libvirt virt-install
systemctl enable --now libvirtd

Configure Bridge networking for KVM virtual machines."-
nmcli connection add type bridge autoconnect yes con-name br0 ifname br0
nmcli connection modify br0 ipv4.addresses 192.168.1.20/24 ipv4.method manual
nmcli connection modify br0 ipv4.gateway 192.168.1.1
nmcli connection modify br0 ipv4.dns 192.168.1.10
nmcli connection del ens33
nmcli connection add type bridge-slave autoconnect yes con-name ens33 ifname ens33 master br0
reboot
_________________________________________________________________________________________


Saturday, March 12, 2022

Run Microsoft SQL Server in Podman

 in This Tutorial you will Learn " How To Run Microsoft SQL Server in Podman"
Microsoft SQL Server is a relational database management system developed by Microsoft.
Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

dnf install podman -y
mkdir -p  /var/mssql/data ; chmod 755 -R /var/mssql/data
podman pull mcr.microsoft.com/mssql/server:2019-latest
podman run -d -e 'ACCEPT_EULA=Y' -e \
  'MSSQL_SA_PASSWORD=Passw0rd'  \
  --name MySQL1 \
  -p 1460:1433 \
  -v /var/mssql/data:/var/mssql/data:Z \
  mcr.microsoft.com/mssql/server:2019-latest

podman exec -it MySQL1 "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Passw0rd"
_________________________________________________________________________________________

Saturday, March 5, 2022

Deploy MySQL 8 in Podman

 in This Tutorial you will Learn " How To Run Deploy MySQL 8 in Podman

MySQL is an open-source relational database management system.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
podman pull mysql:8  Or podman pull mysql:5.7
podman images
mkdir ~/mysql_data ;  cd mysql_data
podman run -d \
--name mysql-8 \
-p 3306:3306 \
-v ~/mysql_data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD='StrongPass123' \
-e MYSQL_USER=dbuser \
-e MYSQL_PASSWORD='dbuserpass' \
-e MYSQL_DATABASE=testdb \
mysql:8
podman ps
podman exec -it mysql-8 /bin/bash
mysql -uroot -p'StrongPass123'
show databases;
exit
_________________________________________________________________________________________



Run PostgreSQL in Podman Container

 in This Tutorial you will Learn " How To Run PostgreSQL in Podman Container "

PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
           
dnf install podman -y
podman pod create --name postgre-sql -p 9876:80
podman pod ps

podman run --pod postgre-sql \
-e 'PGADMIN_DEFAULT_EMAIL=admin@example.com' \
-e 'PGADMIN_DEFAULT_PASSWORD=Passw0rd'  \
--name pgadmin \
 -d docker.io/dpage/pgadmin4:latest

podman pull docker.io/library/postgres:14
podman images
podman run --name db --pod=postgre-sql -d \
  -e POSTGRES_USER=admin \
  -e POSTGRES_PASSWORD=Passw0rd \
  docker.io/library/postgres:14

podman pod ps
podman pod stats postgre-sql
http://127.0.0.1:9876
_________________________________________________________________________________________

Deploy Run MongoDB On Podman

 in This Tutorial you will Learn " How To Install MongoDB with Podman on Rocky Linux 8.5"

MongoDB is an open source NoSQL database management program.

Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Container Initiative (OCI) containers and container images.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install podman -y
podman -v
podman pull mongo
podman images
mkdir data ; cd data
podman run --name nextgentipsmongo -d -p 27017:27017 -v $(pwd):/data/db:Z mongo
podman run --rm -it --network host mongo mongo
_________________________________________________________________________________________

Friday, March 4, 2022

Deploying PrestoDB On Podman

 in This Tutorial you will Learn " How To install PrestoDB with Podman On Rocky Linux 8.5

Presto is an open-source SQL query engine built for running fast, large-scale analytics workloads distributed across multiple servers.
Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install -y podman
podman --version
systemctl start podman ; systemctl enable podman
mkdir data ; cd data
podman run -d \
     --name nextgenprestodb \
     -p 8080:8080 \
     -v $(pwd):/data/db:Z \
     ahanaio/prestodb-sandbox
podman ps ; podman images
netstat -tlpn
http://127.0.0.1:8080
_________________________________________________________________________________________


Podman - How To Run a Apache Cassandra

in This Tutorial you will Learn " How to install Apache Cassandra with Podman On Rocky Linux 8.5"

Apache Cassandra is a free and open-source, distributed, wide-column store, NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install podman -y
podman -v
podman pull cassandra
podman images
mkdir data ; cd data
podman run --name mycassandra -d -p 7000:7000 -v $(pwd):/data/db:Z cassandra
podman ps
podman exec -it mycassandra bash
podman logs mycassandra
_________________________________________________________________________________________