Added Podman

This commit is contained in:
IntenseWebs 2025-01-19 06:35:29 -06:00
parent 3fd05f41aa
commit 39a01c5bd2
5 changed files with 45 additions and 2 deletions

View File

@ -43,6 +43,8 @@ cd /etc/ssh
vi /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
[Socket]
SocketProtocol=mptcp
systemctl restart sshd
----------------------------------------------------------

View File

@ -1,8 +1,15 @@
# https://linuxconfig.org/linux-lvm-logical-volume-manager
# apt-get install lvm2 # sudo dnf install lvm2
# fdisk -l # lsblk # lsblk -fe7 # blkid # parted -l # parted /dev/sde u s p # df -hT # du -sh /home
# fdisk -l
# lsblk
# lsblk -fe7
# blkid
# parted -l
# parted /dev/sde u s p
# df -hT
# du -sh /home
# Check FREE SPACE # sfdisk --list-free /dev/vda # hwinfo --short --block # cat /proc/partitions #
# Check SPPED # sudo hdparm -t --direct /dev/nvme0n1p1
# Check SPEED # sudo hdparm -t --direct /dev/nvme0n1p1
# pvs, vgs, lvs, pvdisplay, vgdisplay, lvdisplay
# WIPE DESTROY DISK CONTENTS

1
files-find.txt Normal file
View File

@ -0,0 +1 @@
sudo find /tmp -type f -atime +10 -delete

View File

@ -6,6 +6,8 @@ grep -e 'svm' /proc/cpuinfo
lscpu | grep Virtualization
lsmod | grep kvm
# $ sudo dnf install qemu-kvm libvirt virt-install virt-viewer libvirt-nss
sudo dnf install virt-install virt-viewer -y
sudo dnf install libvirt -y
sudo dnf install virt-manager -y
@ -63,3 +65,10 @@ sudo virsh net-define /etc/libvirt/qemu/networkshost-bridge.xml
sudo virsh net-autostart host-bridge
virsh net-destroy default
virsh net-undefine default
$ virsh version
$ virsh nodeinfo
$ virsh uri
# https://developers.redhat.com/articles/2024/12/18/rootless-virtual-machines-kvm-and-qemu#networking_with_session_vms
# $ virt-install --name myvm --osinfo rhel9.4 --memory 2048 --vcpus 2 --disk size=20 --location ~/Downloads/rhel-9.4-x86_64-boot.iso

24
podman.txt Normal file
View File

@ -0,0 +1,24 @@
# Add alias docker=podman in your .bashrc
podman -v
sudo systemctl status podman.socket
# Install:
sudo dnf install podman
sudo systemctl enable --now podman.socket
---------------------------------------------
sudo systemctl status cockpit.socket
# Install Cockpit
sudo dnf install cockpit cockpit-podman
# Start Cockpit Socket
sudo systemctl enable --now cockpit.socket
# Open Firewall (if needed)
sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --add-service=cockpit
# Run a test container
podman run --rm busybox echo "hello world"