Compare commits
5 Commits
46bbe1d5e9
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
8c2b118c8e | ||
|
dd41bcb66b | ||
|
e9e70c6ce3 | ||
|
6a043dcd3d | ||
|
cf3ff84a6d |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.aider*
|
@@ -13,6 +13,7 @@ execute_script() {
|
|||||||
|
|
||||||
# Array of scripts
|
# Array of scripts
|
||||||
scripts=(
|
scripts=(
|
||||||
|
"./scripts/install-prerequisites-on-linux.sh"
|
||||||
"./scripts/core-count.sh"
|
"./scripts/core-count.sh"
|
||||||
"./scripts/system-memory.sh"
|
"./scripts/system-memory.sh"
|
||||||
"./scripts/deploy-distro.sh"
|
"./scripts/deploy-distro.sh"
|
@@ -2,16 +2,23 @@ services --enabled="NetworkManager,systemd-resolved,libvirtd" # Without libvirtd
|
|||||||
|
|
||||||
%packages --exclude-weakdeps # Beginning of the packages section. Does not include weak dependencies.
|
%packages --exclude-weakdeps # Beginning of the packages section. Does not include weak dependencies.
|
||||||
|
|
||||||
qemu-kvm
|
qemu-kvm # QEMU metapackage for KVM support
|
||||||
libvirt
|
libvirt # Library providing a simple virtualization API
|
||||||
libvirt-daemon-config-network
|
libvirt-client # Client side utilities of the libvirt library
|
||||||
libvirt-daemon-kvm
|
libvirt-client-qemu # Additional client side utilities for QEMU. Used to interact with some QEMU specific features of libvirt.
|
||||||
# libvirt-daemon-driver-lxc
|
libvirt-daemon # Server side daemon and supporting files for libvirt library
|
||||||
virt-install
|
libvirt-daemon-common # Miscellaneous files and utilities used by other libvirt daemons
|
||||||
virt-top
|
libvirt-daemon-config-network # Default configuration files for the libvirtd daemon. Provides NAT based networking
|
||||||
libguestfs-tools # Complementary tools useful for interacting with vith guest systems. Could probablby be removed
|
libvirt-daemon-driver-interface # Interface driver plugin for the libvirtd daemon
|
||||||
python3-libguestfs # Complementary tools useful for interacting with vith guest systems. Could probablby be removed
|
libvirt-daemon-driver-network # The network driver plugin for the libvirtd daemon, providing an implementation of the virtual network APIs using the Linux bridge capabilities.
|
||||||
guestfs-tools # Complementary tools useful for interacting with vith guest systems. Could probablby be removed
|
libvirt-daemon-driver-qemu # QEMU driver plugin for the libvirtd daemon
|
||||||
|
libvirt-daemon-kvm # Server side daemon & driver required to run KVM guests
|
||||||
|
libvirt-daemon-log # Server side daemon for managing logs
|
||||||
|
libvirt-daemon-qemu # Server side daemon and driver required to manage the virtualization capabilities of the QEMU TCG emulators
|
||||||
|
libvirt-nss # Libvirt plugin for Name Service Switch
|
||||||
|
libvirt-dbus # libvirt D-Bus API binding
|
||||||
|
libvirt-daemon-driver-ch # Cloud-Hypervisor driver plugin for libvirtd daemon
|
||||||
|
virt-install # Utilities for installing virtual machines
|
||||||
|
|
||||||
%end # End of the packages section
|
%end # End of the packages section
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ zram-generator-defaults # Default configuration for zram-generator
|
|||||||
pciutils # PCI bus related utilities
|
pciutils # PCI bus related utilities
|
||||||
libusb # Library for accessing USB devices
|
libusb # Library for accessing USB devices
|
||||||
usbutils # Linux USB utilities
|
usbutils # Linux USB utilities
|
||||||
|
curl # transfer a URL
|
||||||
wget # An advanced file and recursive website downloader
|
wget # An advanced file and recursive website downloader
|
||||||
nano # A small text editor
|
nano # A small text editor
|
||||||
|
|
||||||
|
43
scripts/install-prerequisites-on-linux.sh
Executable file
43
scripts/install-prerequisites-on-linux.sh
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if virt-manager is already installed
|
||||||
|
if command -v virt-manager &> /dev/null; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Detect the Linux distribution
|
||||||
|
if [[ -f /etc/os-release ]]; then
|
||||||
|
. /etc/os-release
|
||||||
|
DISTRO="$ID"
|
||||||
|
else
|
||||||
|
echo "Unable to determine Linux distribution. Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Detected distribution: $DISTRO"
|
||||||
|
|
||||||
|
# Install prerequisites based on distribution
|
||||||
|
case "$DISTRO" in
|
||||||
|
ubuntu|debian)
|
||||||
|
echo "Installing prerequisites for Debian/Ubuntu..."
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y qemu-system libvirt-daemon-system virt-manager
|
||||||
|
;;
|
||||||
|
fedora|rhel|centos)
|
||||||
|
echo "Installing prerequisites for Fedora/RHEL/CentOS..."
|
||||||
|
dnf install -y qemu-kvm libvirt virt-manager
|
||||||
|
;;
|
||||||
|
arch)
|
||||||
|
echo "Installing prerequisites for Arch Linux..."
|
||||||
|
pacman -S --noconfirm qemu-desktop libvirt virt-manager
|
||||||
|
;;
|
||||||
|
opensuse-tumbleweed)
|
||||||
|
echo "Installing prerequisites for openSUSE Tumbleweed..."
|
||||||
|
zypper -n install qemu libvirt virt-manager
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported distribution: $DISTRO. Manual installation required."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Reference in New Issue
Block a user