phyllomeos/post-first-startup-scripts/deploy-phyllome-desktop-system.sh

35 lines
1.4 KiB
Bash
Raw Normal View History

2022-01-24 14:38:44 +00:00
#!/bin/bash
2022-02-13 18:04:37 +00:00
# Deploy Phyllome OS Desktop, generic edition with `virt-install` on a 20G disk, with 4vCPU and 4G of RAM.
2022-01-24 14:38:44 +00:00
# GPU and CPU agnostic configuration.
virt-install \
--connect qemu:///system \
2022-02-13 18:04:37 +00:00
--metadata description="Spice with OpenGL. Phyllome OS Desktop, agnostic edition." \
2022-01-24 14:38:44 +00:00
--os-variant detect=off \
--virt-type kvm \
--arch x86_64 \
--machine q35 \
--name virtual-phyllome-os \
--boot uefi \
--cpu host-passthrough,topology.sockets=1,topology.cores=2,topology.threads=2 \
2022-01-27 09:02:46 +00:00
--vcpus 4 \
--memory 4092 \
2022-01-24 14:38:44 +00:00
--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 \
2022-01-27 09:02:46 +00:00
--disk path=/var/lib/libvirt/images/virtual-phyllome-os.img,format=raw,bus=virtio,cache=writeback,size=20 \
2022-01-24 14:38:44 +00:00
--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-phyllome-desktop.cfg"