mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-12-22 13:05:17 +00:00
Lukas
f0aa553e04
it follows a cuisine analogy, with dishes made followed a recipe, using ingredients
78 lines
2.3 KiB
INI
78 lines
2.3 KiB
INI
# __ ____ ____ _____
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
# /_/ /____/
|
|
|
|
# What ? This kickstart file provides a virtual machine manager, sets it to auto-launch and tweaked it.
|
|
|
|
%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
|
|
|
|
# Modify the default virt-manager behavior for misc. options
|
|
cat >> /mnt/sysimage/usr/share/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.override<< EOF
|
|
|
|
# Modify the default virt-manager behavior for misc. options
|
|
[org.virt-manager.virt-manager]
|
|
xmleditor-enabled=true
|
|
manager-window-height=600
|
|
manager-window-width=200
|
|
|
|
# Libvirt URIs listed in the manager window
|
|
[org.virt-manager.virt-manager.connections]
|
|
uris=['qemu:///system', 'qemu:///session']
|
|
autoconnect=['qemu:///session']
|
|
|
|
# Show usage in the domain list
|
|
[org.virt-manager.virt-manager.vmlist-fields]
|
|
cpu-usage=false
|
|
|
|
# Settings related to statistics
|
|
[org.virt-manager.virt-manager.stats]
|
|
update-interval=3
|
|
enable-disk-poll=true
|
|
enable-memory-poll=true
|
|
enable-net-poll=true
|
|
|
|
# Default behavior for the console
|
|
[org.virt-manager.virt-manager.console]
|
|
scaling=2
|
|
resize-guest=1
|
|
autoconnect=false
|
|
|
|
# Do not show toolbar
|
|
[org.virt-manager.virt-manager.details]
|
|
show-toolbar=false
|
|
|
|
# Modify default values for new VMs
|
|
[org.virt-manager.virt-manager.new-vm]
|
|
storage-format='raw'
|
|
cpu-default='host-model'
|
|
graphics-type='spice'
|
|
|
|
# Modify the default virt-manager behavior for confirmation dialogues
|
|
[org.virt-manager.virt-manager.confirm]
|
|
forcepoweroff=false
|
|
removedev=false
|
|
unapplied-dev=false
|
|
|
|
EOF
|
|
|
|
glib-compile-schemas /mnt/sysimage/usr/share/glib-2.0/schemas/
|
|
|
|
%end # End of the %post section
|