From 9207be1082ed542568398c4361641764d83b79c9 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 13 Feb 2022 19:04:51 +0100 Subject: [PATCH] add new system workstation model --- .../deploy-minimal-workstation-system.sh | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 post-first-startup-scripts/deploy-minimal-workstation-system.sh diff --git a/post-first-startup-scripts/deploy-minimal-workstation-system.sh b/post-first-startup-scripts/deploy-minimal-workstation-system.sh new file mode 100644 index 0000000..f8ea892 --- /dev/null +++ b/post-first-startup-scripts/deploy-minimal-workstation-system.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Deploy a virtual machine with `virt-install` and automatically install a minimal GNOME Shell desktop environment on a 5G disk. +# GPU and CPU agnostic configuration. + +virt-install \ + --connect qemu:///system \ + --metadata description="Spice with OpenGL. Minimal GNOME Shell environment. Based on Fedora Server 35" \ + --os-variant detect=off \ + --virt-type kvm \ + --arch x86_64 \ + --machine q35 \ + --name minimal-workstation-system \ + --boot uefi \ + --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ + --vcpus 1 \ + --memory 2048 \ + --video virtio \ + --graphics spice,gl.enable=yes,listen=none \ + --channel spicevmc \ + --channel unix,target.type=virtio,target.name=org.qemu.guest_agent.0 \ + --autoconsole none \ + --console pty,target.type=virtio \ + --sound none \ + --network type=default,model=virtio \ + --controller type=virtio-serial \ + --controller type=usb,model=none \ + --controller type=scsi,model=virtio-scsi \ + --input type=keyboard,bus=virtio \ + --input type=tablet,bus=virtio \ + --memballoon none \ + --rng /dev/urandom,model=virtio \ + --disk path=/var/lib/libvirt/images/virtual-desktop-system.img,format=raw,bus=virtio,cache=writeback,size=5 \ + --location=https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/ \ + --extra-args="inst.ks=https://raw.githubusercontent.com/PhyllomeOS/phyllomeos/main/dishes/virtual-desktop.cfg" \ No newline at end of file