diff --git a/post-first-startup-scripts/create-generic-vm-virtio-spice.sh b/post-first-startup-scripts/create-generic-vm-virtio-spice.sh deleted file mode 100644 index b8e7824..0000000 --- a/post-first-startup-scripts/create-generic-vm-virtio-spice.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# This script has be run as root. - -# Create and run a diskless virtual machine with `virt-install`. Spice and OpenGL are enabled. -# GPU agnostic configuration. Does expect an EFI-based Linux guest. -# The netboot.xyz ISO is attached to this virtual machine, allowing the user to pick an operating system to be installed. - -virt-install \ - --connect qemu:///system \ - --metadata description="Spice with OpenGL. Requires an EFI-based guest, ideally with support for virtio-gpu, such as Fedora Workstation." \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name generic \ - --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 \ - --cdrom /var/lib/libvirt/iso/netboot.xyz.iso \ - --memballoon none \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes \ No newline at end of file diff --git a/post-first-startup-scripts/create-system-vms.sh b/post-first-startup-scripts/create-system-vms.sh deleted file mode 100644 index cc5ac0e..0000000 --- a/post-first-startup-scripts/create-system-vms.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Attention please: will soon be deprecated in favor of a more generic VM model - -# This script has be run as root. - -# Create and run a diskless virtual machine with `virt-install`, without any display. -# For Windows, the user has to manually add the Windows ISO as well as the ISO that contains paravirtualized drivers for Windows. - -virt-install \ - --connect qemu:///system \ - --metadata description="Works with any GPUs that is binded to vfio-pci. A GPU needs to be manually attached to the VM. As it uses QEMU system, passthrough will work" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name vfio-pci \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 2048 \ - --video none \ - --graphics none \ - --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 \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes \ No newline at end of file diff --git a/post-first-startup-scripts/create-user-vms.sh b/post-first-startup-scripts/create-user-vms.sh deleted file mode 100644 index 9295d06..0000000 --- a/post-first-startup-scripts/create-user-vms.sh +++ /dev/null @@ -1,149 +0,0 @@ -#!/bin/bash - -# Attention please: will soon be deprecated in favor of a more generic virtual machine model - -# This script can be run as a normal user. -# Make sure qemu-session is available as an URI in virt-manager running the following in your terminal: -# gsettings set org.virt-manager.virt-manager.connections uris "['qemu:///system', 'qemu:///session']" -# gsettings set org.virt-manager.virt-manager.connections autoconnect "['qemu:///system', 'qemu:///session']" - - -# Create then shutdown a diskless virtual machine with qemu-session, a spice display without 3D acceleration, using virt-install. -# Works with any GPUs on the host but does not provide 3D acceleration. Does expect an EFI-based Linux guest. -# No ISO is attached to this virtual machine. The user have to manually add one. - -virt-install \ - --connect qemu:///session \ - --metadata description="Works with any GPUs on the host but does not provide 3D acceleration. Does expect an EFI-based Linux guest. As it uses QEMU session, passthrough wont work out of the box" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name user-linux-spice \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 2048 \ - --video virtio \ - --graphics spice,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=user,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 \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes - -virsh destroy user-linux-spice - -# Create then shutdown a diskless virtual machine with qemu-session, spice and opengl enabled, using virt-install. -# Spice with OpenGL performs better than egl-headless. -# Works with AMD and Intel GPUs on the host and does expect an EFI-based Linux guest. -# No ISO is attached to this virtual machine. The user have to manually add one. - -virt-install \ - --connect qemu:///session \ - --metadata description="Spice with OpenGL enabled performs better than egl-headless with OpenGL enabled. Works with AMD and Intel GPUs on the host and does expect an EFI-based Linux guest. As it uses QEMU session, passthrough wont work out of the box" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name user-linux-spice-gl \ - --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=user,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 \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes - -virsh destroy user-linux-spice-gl - -# Create then shutdown a diskless virtual machine with qemu-sesssion, egl-headless and opengl enabled, using virt-install. -# Works with all GPUs on the host including Nvidia's and does expect an EFI-based Linux guest. -# No ISO is attached to this virtual machine. The user have to manually add one. - -virt-install \ - --connect qemu:///session \ - --metadata description="Works with all GPUs on the host including Nvidia and does expect an EFI-based Linux guest. As it uses QEMU session, passthrough wont work out of the box" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name user-linux-egl-headless-gl \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 2048 \ - --video virtio \ - --graphics spice,listen=none \ - --graphics egl-headless,gl.enable=yes \ - --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=user,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 \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes - -virsh destroy user-linux-egl-headless-gl - -# Create and run a diskless virtual machine with `virt-install`. Spice and OpenGL are enabled. -# Should work with all GPUs on the host including Nvidia's and does expect an EFI-based Linux guest. -# No ISO is attached to this virtual machine. The user has to manually add one. - -virt-install \ - --connect qemu:///session \ - --metadata description="SDL with OpenGL enabled performs better than egl-headless or Spice with OpenGL enabled. Should work with most GPUs. As it uses QEMU session, passthrough wont work out of the box" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name linux-sdl-gl \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 2048 \ - --video virtio \ - --graphics sdl \ - --autoconsole none \ - --console pty,target.type=virtio \ - --sound none \ - --network type=user,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 \ - --rng /dev/urandom,model=virtio \ - --disk none \ - --install no_install=yes - -virsh destroy user-linux-sdl-gl \ No newline at end of file diff --git a/post-first-startup-scripts/deploy-minimal-server-system.sh b/post-first-startup-scripts/deploy-minimal-server-system.sh deleted file mode 100644 index 6769682..0000000 --- a/post-first-startup-scripts/deploy-minimal-server-system.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# Deploy a virtual machine with `virt-install` and automatically install a minimal shell environment on a 5G disk. -# GPU and CPU agnostic configuration. - -virt-install \ - --connect qemu:///system \ - --metadata description="Spice with OpenGL. Minimal server environment. Based on Fedora Server 35" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name minimal-server \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 512 \ - --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-server.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-server.cfg" \ No newline at end of file diff --git a/post-first-startup-scripts/deploy-minimal-workstation-session.sh b/post-first-startup-scripts/deploy-minimal-workstation-session.sh deleted file mode 100644 index f92c530..0000000 --- a/post-first-startup-scripts/deploy-minimal-workstation-session.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# Deploy a virtual machine with `virt-install` and automatically install a minimal GNOME Shell desktop environment on a 10G disk. -# GPU and CPU agnostic configuration. - -virt-install \ - --connect qemu:///session \ - --metadata description="SDL with OpenGL. Minimal GNOME Shell environment. Based on Fedora Server 35" \ - --os-variant detect=off \ - --virt-type kvm \ - --arch x86_64 \ - --machine q35 \ - --name virtual-destkop-session \ - --boot uefi \ - --cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \ - --vcpus 1 \ - --memory 2048 \ - --video virtio \ - --graphics sdl,gl.enable=yes \ - --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=user,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=~/.local/share/libvirt/images/virtual-desktop-session.img,format=raw,bus=virtio,cache=none,size=10 \ - --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 diff --git a/post-first-startup-scripts/deploy-minimal-workstation-system.sh b/post-first-startup-scripts/deploy-minimal-workstation-system.sh deleted file mode 100644 index f8ea892..0000000 --- a/post-first-startup-scripts/deploy-minimal-workstation-system.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 diff --git a/post-first-startup-scripts/deploy-phyllome-desktop-system.sh b/post-first-startup-scripts/deploy-phyllome-desktop-system.sh deleted file mode 100644 index f1576dd..0000000 --- a/post-first-startup-scripts/deploy-phyllome-desktop-system.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# Deploy Phyllome OS Desktop, generic edition with `virt-install` on a 20G disk, with 4vCPU and 4G of RAM. -# GPU and CPU agnostic configuration. - -virt-install \ - --connect qemu:///system \ - --metadata description="Spice with OpenGL. Phyllome OS Desktop, agnostic edition." \ - --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 \ - --vcpus 4 \ - --memory 4092 \ - --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-phyllome-os.img,format=raw,bus=virtio,cache=writeback,size=20 \ - --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" \ No newline at end of file