From 674b578872fd9f76d912ffcbcab65ba91fee88ae Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 19:40:05 +0200 Subject: [PATCH] improve comments correct reference add gnome-initial-setup try to make virt-manager pop up --- leaves/dhmd.cfg | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/leaves/dhmd.cfg b/leaves/dhmd.cfg index f952368..fabb01a 100644 --- a/leaves/dhmd.cfg +++ b/leaves/dhmd.cfg @@ -19,8 +19,24 @@ %include bdmd.cfg # A desktop environment %include bhmd.cfg # A base hypervisor -%packages --exclude-weakdeps +%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies. virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM +gnome-initial-setup # Add GNOME initial setup too to let user create local account. -%end \ No newline at end of file +%end # End of the packages section + +%post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment + +# Autostart virt-manager +cat > /etc/xdg/autostart/virt-manager.desktop << EOF +[Desktop Entry] +Type=Application +Name=Virtual Machine Monitor +Exec=virt-manager +EOF + +# Download netboot.xyz +wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /var/lib/libvirt/iso/ + +%end # End of the %post section \ No newline at end of file