mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-08-24 21:41:15 +00:00
42 lines
2.1 KiB
INI
42 lines
2.1 KiB
INI
# __ ____ ____ _____
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
# /_/ /____/
|
|
|
|
# What ? This kickstart file bootstraps a live desktop hypervisor configured for AMD (tm) CPUs.
|
|
# 'l' for live, 'd' for desktop, 'h' for hypervisor', 'a' for amd, 'm' for minimal, 'd' for development only.
|
|
|
|
# ATTENTION : this kickstart file will automatically DESTROY the main disk and all of its contents.
|
|
# Bye bye!
|
|
|
|
# In order to be fed to virt-install or software like livecd-creator, this file needs to be flatten or merged into one.
|
|
# Here is how you can do it with the ksflatten tool provided by the pykickstart package on Fedora :
|
|
# ksflatten -c ldhamd.cfg -o flat-ldhamd.cfg
|
|
|
|
# An ISO file can be created using the following command as *root*:
|
|
# livecd-creator -c flat-ldhamd.cfg --fslabel=ldhamd
|
|
# livecd-creator is part of the livecd-tools package
|
|
|
|
# The resulting ISO can be tested with qemu-kvm, using the following command as *root*:
|
|
# qemu-kvm -m 2048 -vga virtio -display gtk,gl=on ldhamd.iso
|
|
|
|
%include ldmd.cfg # A base for a live desktop minimal machine
|
|
%include bhmd.cfg # A base hypervisor
|
|
%include bhamd.cfg # Specific virtualization configuration for AMD (tm) CPUs
|
|
|
|
%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
|
|
|
|
%end # End of the packages section
|
|
|
|
%post --nochroot --log=/mnt/sysimage/root/ldhamd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
|
|
|
|
usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor.
|
|
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 # End of the %post section
|