added tutorial for Fedora

This commit is contained in:
ghe0 2025-01-29 00:02:35 +02:00
parent cfd013a8d2
commit dbaf6ed835
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4

@ -38,7 +38,7 @@ kernel_sha: 8094abfd3a2a9dfdbc19b39d7e720eb43116b885abb36fc9431f0c18cbd5938e
DTRFS is based on ArchLinux, however the kernel and the initramfs support any distribution that will work with a generic kernel. Each DTRFS image is linked to an archlinux kernel, in order to guarantee that the kernel gets the modules required to work as a SNP VM running on top of QEMU.
## Distributions
## Creating OS templates
Our system currently offers 3 distributions: ArchLinux, Ubuntu and Fedora. You are free to package your own OS template. It should work as long as the operating system works with a generic kernel. Please take the following things into consideration:
- The VM does not need `/boot/`, meaning it does not need a kernel or a initramfs
@ -90,6 +90,19 @@ Logout of SSH and scp the file to your machine:
scp -P 48331 root@173.234.17.2:/tmp/os_template.fsa ./detee_ubuntu_$(date -I).fsa
```
### Fedora example
Create a Fedora VM and run the following script:
```
dnf upgrade -y
dnf install fsarchiver -y
dnf install -y --use-host-config --installroot=/mnt --releasever=41 @core
dnf remove -y --use-host-config --installroot=/mnt zram-generator-defaults
rm -rf /mnt/var/cache/libdnf5/*
fsarchiver savedir /tmp/os_template.fsa /mnt
```
Logout of SSH and scp `/tmp/os_template.fsa` to your machine:
## Experimenting on your own