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