move files to archives
This commit is contained in:
@ -1,14 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This Kickstart file bootstraps a desktop-based headless hypervisor optimized for AMD CPUs.
|
||||
# 'v' for virtual machine, 'd' for desktop, 'h' for hypervisor', 'a' for amd, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vhamd.cfg # Includes vhamd.cfg, a hypervisor.
|
@ -1,14 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This Kickstart file bootstraps a desktop-based hypervisor optimized for AMD CPUs and Intel Graphics.
|
||||
# 'v' for virtual machine, 'd' for desktop, 'h' for hypervisor', 'i' for intel, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vhimd.cfg # Includes vhimd.cfg, a hypervisor.
|
@ -1,39 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This kickstart file bootstraps a minimal GNOME-based desktop-oriented virtual machine.
|
||||
# 'v' for virtual machine, 'd' for desktop, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vmd.cfg # Include vmd.cfg, a minimal system based on Fedora 34.
|
||||
|
||||
xconfig --startxonboot --defaultdesktop=GNOME # Start GNOME on boot. Althought it says X, it works as well with Wayland
|
||||
# firstboot --enable --reconfig # Initial Setup will start after the first reboot
|
||||
|
||||
%packages # Beginning of the post-installation section
|
||||
|
||||
spice-vdagent # Try to install spice-vdagent after the installation is done
|
||||
dejavu-sans-mono-fonts # the gnome-shell package doesn't include much fonts by default, resulting in weird spacings in the gnome-terminal.
|
||||
elementary-wallpapers-gnome.noarch # Gorgeous wallpapers
|
||||
wpa_supplicant # WPA Supplicant for Linux. Not integrated by default in gnome-shell, but necessary to configure wireless networks through the Network Manager.
|
||||
# initial-setup-gui # Wasn't able to make it working.
|
||||
# gnome-initial-setup # Add GNOME initial setup too. Does work.
|
||||
-gnome-tour # We don't want GNOME-tour to open at launch so we delete it
|
||||
gnome-shell
|
||||
gnome-terminal
|
||||
nano # Minimal GNOME shell or desktop environment plus the nano text editor
|
||||
|
||||
%end
|
||||
|
||||
%post
|
||||
|
||||
# systemctl set-default graphical.target # Set the desktop environment as the default booting target with systemd.
|
||||
# Alternatively, that could be tested outside of the post section xconfig --startxonboot --defaultdesktop=GNOME
|
||||
|
||||
%end # End of the %post section
|
@ -1,22 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This Kickstart file bootstraps a minimal headless guest hypervisor optimized for AMD CPUs.
|
||||
# 'v' for virtual machine, 'h' for hypervisor', 'a' for amd, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vhmd.cfg # Includes vhmd.cfg, a hypervisor.
|
||||
|
||||
%post # Beginning of %post section
|
||||
|
||||
sed -i 's/\(quiet\)/\1 amd_iommu=on amd_iommu=pt rd.driver.pre=vfio-pci/i' /etc/default/grub # Load kernel modules in grub.
|
||||
dracut --force # Regenerate initramfs
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
|
||||
|
||||
%end # End of the %post section
|
@ -1,27 +0,0 @@
|
||||
GNU nano 5.8 remote-vhimd.cfg
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This Kickstart file bootstraps a minimal headless hypervisor optimized for Intel CPUs and Intel Graphics.
|
||||
# 'v' for virtual machine, 'h' for hypervisor', 'i' for intel, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vhmd.cfg # Includes vhmd.cfg, a hypervisor.
|
||||
|
||||
%post # Beginning of %post section
|
||||
|
||||
sed -i 's/\(quiet\)/\1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci i915.enable_gvt=1/i' /etc/default/grub # Load kernel modules in grub.
|
||||
echo "kvmgt" > /etc/modules-load.d/kvmgt.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel GVT-g and Nvidia
|
||||
echo "vfio-mdev" > /etc/modules-load.d/vfio-mdev.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel GVT-g and Nvidia
|
||||
|
||||
dracut --add-drivers "vfio-mdev kvmgt" --force # Instruct dracut to load the vfio drivers:
|
||||
dracut --force # Regenerate initramfs
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
|
||||
|
||||
%end # End of the %post section
|
@ -1,53 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This kickstart file provides the base configuration for a hypervisor or virtual machine monitor.
|
||||
# 'v' for virtual machine, 'h' for hypervisor', 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
%include vmd.cfg # Include vmd.cfg, a minimal system based on Fedora 34.
|
||||
|
||||
%packages
|
||||
|
||||
qemu-kvm
|
||||
libvirt
|
||||
libvirt-daemon-config-network
|
||||
libvirt-daemon-kvm # Install minimal tools dedicated to virtualization.
|
||||
virt-install
|
||||
virt-top
|
||||
libguestfs-tools
|
||||
python3-libguestfs
|
||||
guestfs-tools # Complementary tools useful for interacting with v>
|
||||
|
||||
%end
|
||||
|
||||
%post # Beginning of %post section
|
||||
|
||||
# usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor. # It won't work with initial-setup
|
||||
|
||||
# Load kernel modules by adding vfio, vfio_pci, vfio_iommu_type1, vfio_virqfd
|
||||
echo "vfio" > /etc/modules-load.d/vfio.conf
|
||||
echo "vfio-pci" > /etc/modules-load.d/vfio-pci.conf
|
||||
echo "vfio_iommu_type1" > /etc/modules-load.d/vfio_iommu_type1.conf
|
||||
echo "vfio_virqfd" > /etc/modules-load.d/vfio_virqfd.conf
|
||||
|
||||
dracut --add-drivers "vfio vfio-pci vfio_iommu_type1 vfio_virqfd" --force # Instruct dracut to load the vfio drivers:
|
||||
mkdir /var/lib/libvirt/iso # Create a directory to store iso images
|
||||
# chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
|
||||
virsh pool-create-as --name iso --type dir --target /var/lib/libvirt/iso # Make libvirt aware of this new directory by creating a so-called `pool` within this directory
|
||||
mkdir /var/lib/libvirt/rom # Create a directory to store rom files
|
||||
# chown liveuser:liveuser /var/lib/libvirt/rom # Make the user "test" its owner
|
||||
virsh pool-create-as --name rom --type dir --target /var/lib/libvirt/rom # Make libvirt aware of this new directory by creating a so-called `pool` within this directory
|
||||
# chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory
|
||||
|
||||
nmcli con add ifname br0 type bridge con-name br0 # Add a network bridge
|
||||
nmcli con add type bridge-slave ifname enp1s0 master br0
|
||||
nmcli con up br0
|
||||
|
||||
%end # End of the %post section
|
@ -1,69 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This kickstart file bootstraps a minimal live virtual machine based on Fedora 34 server.
|
||||
# 'v' for virtual machine, 'l' for live, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
text # Perform installation in text mode
|
||||
|
||||
repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora mirror
|
||||
repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch # Official Fedora updates mirror
|
||||
# #repo --name=updates-testing --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
|
||||
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora updates mirror
|
||||
|
||||
# keyboard --xlayouts='ch (fr)' # set keyboard layouts for Romandie # Unnecessary if using inital-setup
|
||||
# lang en_US.UTF-8 # Set system language to American English # Unnecessary if using inital-setup
|
||||
# timezone Europe/Paris --utc # Set System timezone to Paris # Unnecessary if using inital-setup
|
||||
#
|
||||
# # Set dummy encrypted root password and activate the root account
|
||||
# rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
|
||||
# # rootpw --lock --iscrypted locked # Lock the root account
|
||||
#
|
||||
# # Create "test" user account # Unnecessary if using inital-setup
|
||||
# user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
|
||||
#
|
||||
# firewall --enabled # Make sure the firewall is enabled
|
||||
# services --enabled=NetworkManager --disabled=sshd
|
||||
# network --bootproto=dhcp --device=link --activate
|
||||
# # network --onboot=yes --bootproto=dhcp --hostname=vmd # Configure network interfaces and set hostname
|
||||
#
|
||||
# ignoredisk --only-use=vda # Only use disk labelled as vda
|
||||
# zerombr # WARNING : Dangerous command ! Will clear the Master Boot Record
|
||||
# clearpart --all --initlabel --drives=vda # Partition clearing information. This setup uses GPT by default.
|
||||
# part /boot/efi --fstype="efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi # Will create an efi partitition of 128 MiB (vda1)
|
||||
# part /boot --fstype="ext4" --ondisk=vda --size=384 --label=boot # Create a boot partition of 384 MiB using the ext4 filesystem (vda2).
|
||||
# part / --fstype="ext4" --ondisk=vda --grow --label=root # The remaining space will be used for root (vda3).
|
||||
# bootloader --timeout=1 # Set the Grub bootloader timeout to 1
|
||||
#
|
||||
# poweroff # Reboot the system after the installation is successfully completed
|
||||
# # firstboot --enable # Initial Setup will start after the first reboot
|
||||
#
|
||||
# %packages # Beginning of the packages section
|
||||
#
|
||||
# @core # minimal installation
|
||||
# @guest-agents # qemu-guest agent
|
||||
# pciutils # Pciutils provides lspci commandline tool and is not installed by default
|
||||
# # initial-setup # Install the initial setup package. For the GUI version, use initial-setup-gui instead.
|
||||
# # -fedora-release # Fedora release-notes
|
||||
# # -fedora-release-common # Fedora release files
|
||||
# # -fedora-release-identity-basic # ???
|
||||
# # generic-release
|
||||
# # generic-release-common
|
||||
# # generic-release-notes
|
||||
#
|
||||
# %end # End of the packages section
|
||||
#
|
||||
# %post # Beginning of the post-installation section
|
||||
#
|
||||
# localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked.
|
||||
# dnf update -y # Update the system
|
||||
# grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly
|
||||
#
|
||||
# %end # End of the %post section
|
@ -1,69 +0,0 @@
|
||||
# __ ____ ____ _____
|
||||
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
||||
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
||||
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||
# /_/ /____/
|
||||
|
||||
# What ? This kickstart file bootstraps a minimal virtual machine based on Fedora 34 server.
|
||||
# 'v' for virtual machine, 'm' for minimal, 'd' for development only.
|
||||
|
||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||
# Bye bye!
|
||||
|
||||
text # Perform installation in text mode
|
||||
|
||||
repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora mirror
|
||||
repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch # Official Fedora updates mirror
|
||||
# #repo --name=updates-testing --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
|
||||
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch # Official Fedora updates mirror
|
||||
|
||||
keyboard --xlayouts='ch (fr)' # set keyboard layouts for Romandie # Unnecessary if using inital-setup
|
||||
lang en_US.UTF-8 # Set system language to American English # Unnecessary if using inital-setup
|
||||
timezone Europe/Paris --utc # Set System timezone to Paris # Unnecessary if using inital-setup
|
||||
|
||||
# Set dummy encrypted root password and activate the root account
|
||||
rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
|
||||
# rootpw --lock --iscrypted locked # Lock the root account
|
||||
|
||||
# Create "test" user account # Unnecessary if using inital-setup
|
||||
user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
|
||||
|
||||
firewall --enabled # Make sure the firewall is enabled
|
||||
services --enabled=NetworkManager --disabled=sshd
|
||||
network --bootproto=dhcp --device=link --activate
|
||||
# network --onboot=yes --bootproto=dhcp --hostname=vmd # Configure network interfaces and set hostname
|
||||
|
||||
ignoredisk --only-use=vda # Only use disk labelled as vda
|
||||
zerombr # WARNING : Dangerous command ! Will clear the Master Boot Record
|
||||
clearpart --all --initlabel --drives=vda # Partition clearing information. This setup uses GPT by default.
|
||||
part /boot/efi --fstype="efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi # Will create an efi partitition of 128 MiB (vda1)
|
||||
part /boot --fstype="ext4" --ondisk=vda --size=384 --label=boot # Create a boot partition of 384 MiB using the ext4 filesystem (vda2).
|
||||
part / --fstype="ext4" --ondisk=vda --grow --label=root # The remaining space will be used for root (vda3).
|
||||
bootloader --timeout=1 # Set the Grub bootloader timeout to 1
|
||||
|
||||
poweroff # Reboot the system after the installation is successfully completed
|
||||
# firstboot --enable # Initial Setup will start after the first reboot
|
||||
|
||||
%packages # Beginning of the packages section
|
||||
|
||||
@core # minimal installation
|
||||
@guest-agents # qemu-guest agent
|
||||
pciutils # Pciutils provides lspci commandline tool and is not installed by default
|
||||
# initial-setup # Install the initial setup package. For the GUI version, use initial-setup-gui instead.
|
||||
# -fedora-release # Fedora release-notes
|
||||
# -fedora-release-common # Fedora release files
|
||||
# -fedora-release-identity-basic # ???
|
||||
# generic-release
|
||||
# generic-release-common
|
||||
# generic-release-notes
|
||||
|
||||
%end # End of the packages section
|
||||
|
||||
%post # Beginning of the post-installation section
|
||||
|
||||
localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked.
|
||||
dnf update -y # Update the system
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly
|
||||
|
||||
%end # End of the %post section
|
Reference in New Issue
Block a user