From 39ceb804408bb026a0ef2e70ed80e97bf953315b Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 19 Aug 2021 19:37:11 +0200 Subject: [PATCH] include gnome-initial setup try to make virt-manager pop up improve comments --- leaves/ldhmd.cfg | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/leaves/ldhmd.cfg b/leaves/ldhmd.cfg index c3c92dd..d80c510 100644 --- a/leaves/ldhmd.cfg +++ b/leaves/ldhmd.cfg @@ -25,11 +25,11 @@ %include ldmd.cfg # A base for a live desktop minimal machine %include bhmd.cfg # A base hypervisor -%packages --exclude-weakdeps +%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies. -virt-manager +virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM -%end +%end # End of the packages section %post --nochroot # Beginning of %post section. Those commands are executed outside the chroot environment @@ -37,4 +37,12 @@ usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvi chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory -%end \ No newline at end of file +# Autostart virt-manager +cat > /etc/xdg/autostart/virt-manager.desktop << EOF +[Desktop Entry] +Type=Application +Name=Virtual Machine Monitor +Exec=virt-manager +EOF + +%end # End of the %post section \ No newline at end of file