From dbaf6ed835d57ae127f3fc4db18a6d1d5c751dd5 Mon Sep 17 00:00:00 2001 From: ghe0 Date: Wed, 29 Jan 2025 00:02:35 +0200 Subject: [PATCH] added tutorial for Fedora --- src/cloud/advanced.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/cloud/advanced.md b/src/cloud/advanced.md index 1a0f56d..c100e33 100644 --- a/src/cloud/advanced.md +++ b/src/cloud/advanced.md @@ -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 @@ -121,4 +134,4 @@ distro: template_sha: dab318f58c19d31181fc09a497d26408c06fb445913809075d7be74583172205 ``` -
\ No newline at end of file +