From 3c1b1227b3d8f7beb74a28624737765082c64046 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 28 Nov 2021 17:59:20 +0100 Subject: [PATCH] specific ks for virt-manager --- .../base-desktop-virtual-machine-manager.cfg | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 blocks/base-desktop-virtual-machine-manager.cfg diff --git a/blocks/base-desktop-virtual-machine-manager.cfg b/blocks/base-desktop-virtual-machine-manager.cfg new file mode 100644 index 0000000..20beb7c --- /dev/null +++ b/blocks/base-desktop-virtual-machine-manager.cfg @@ -0,0 +1,26 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +# What ? This kickstart file provides the virtual machine manager and sets it to auto-launch. + +%packages --exclude-weakdeps # Beginning of the packages section. Excludes weak package dependencies + +virt-manager # Install virt-manager, a graphical front-end for QEMU/KVM + +%end + +%post --nochroot --log=/mnt/sysimage/opt/base-desktop-gnome-virtual-machine-manager.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging. + +# Create a file to autostart virt-manager +cat > /mnt/sysimage/etc/xdg/autostart/virt-manager.desktop << EOF +[Desktop Entry] +Type=Application +Name=Virtual Machine Manager +Exec=virt-manager +EOF + +%end # End of the %post section