From 7ca256cab83f31ae0bc3a5c68b400bb91a4a127b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20=C3=A0=20Porta?= Date: Thu, 12 Aug 2021 10:40:42 +0000 Subject: [PATCH] docs: update deploy --- deploy.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/deploy.md b/deploy.md index 91f2939..a48d934 100644 --- a/deploy.md +++ b/deploy.md @@ -2,7 +2,7 @@ title: Automatic deployment of a Fedora guest description: Deploy a Fedora automatically with virt-install published: true -date: 2021-08-12T10:34:43.783Z +date: 2021-08-12T10:40:38.933Z tags: editor: markdown dateCreated: 2021-08-12T10:06:58.917Z @@ -47,13 +47,19 @@ Other options include : `android-x86-9.0`, `centos8`, `clearlinux`, `debian9`, ` > The virt-install package that comes with Fedora 34 doesn't work yet with argument *fedora34* -{.is-info} +{.is-warning} ## Automated installation ### Local iso and kickstart -Note : requires an Internet connection +* Fetch a Fedora iso file + +``` +$ wget https://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/iso/Fedora-Server-dvd-x86_64-34-1.2.iso -P /var/lib/libvirt/iso +``` + +* Deploy a Fedora Server using Phyllome OS curated kickstart ``` virt-install \ @@ -77,11 +83,15 @@ virt-install \ --input type=keyboard,bus=virtio \ --input type=tablet,bus=virtio \ --rng /dev/urandom,model=virtio \ - --disk path=/var/lib/libvirt/images/vmd.img,format=raw,bus=virtio,cache=writeback,size=10 \ + --disk path=/var/lib/libvirt/images/vmd.img,format=raw,bus=virtio,cache=writeback,size=5 \ --location=/var/lib/libvirt/iso/Fedora-Server-dvd-x86_64-34-1.2.iso \ --extra-args="inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vmd.cfg" ``` +> Requires an Internet connection +{.is-info} + + ### Built-in unattended mode virt-install can rely on libosinfo's unattended install support to deploy fedora34 any user intervention: @@ -90,4 +100,6 @@ virt-install can rely on libosinfo's unattended install support to deploy fedora ### Cloud-init +Cloud-init may be used alongside virt-install: + `virt-install --install fedora34,cloud=yes --cloud-init root-password-generate=on ssh-key=/home/user/.ssh/test_rsa.pub disable=on` \ No newline at end of file