forked from roots/phyllomeos
add new post-install scripts
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script can be run as a root user.
|
||||
# Attention please: will soon be deprecated in favor of a more generic VM model
|
||||
|
||||
# Create then shutdown a diskless virtual machine with qemu-system, without any emulated display, using virt-install.
|
||||
# It is designed for vfio-pci (pci-passthrough) in mind, and will work any guest systems that has drivers for the passthroughed GPU as well as paravirtualized drivers (Windows, or Linux).
|
||||
# The ISO that contains paravirtualized drivers for Windows is attached to this virtual machine. The user has to manually add the Windows ISO.
|
||||
# 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 \
|
||||
@@ -13,7 +14,7 @@ virt-install \
|
||||
--virt-type kvm \
|
||||
--arch x86_64 \
|
||||
--machine q35 \
|
||||
--name system-windows-vfio-pci \
|
||||
--name vfio-pci \
|
||||
--boot uefi \
|
||||
--cpu host-model,topology.sockets=1,topology.cores=1,topology.threads=1 \
|
||||
--vcpus 1 \
|
||||
@@ -31,8 +32,5 @@ virt-install \
|
||||
--input type=keyboard,bus=virtio \
|
||||
--input type=tablet,bus=virtio \
|
||||
--rng /dev/urandom,model=virtio \
|
||||
--cdrom /usr/share/virtio-win/virtio-win-0.1.171.iso \
|
||||
--disk none \
|
||||
--install no_install=yes
|
||||
|
||||
virsh destroy system-windows-vfio-pci
|
||||
--install no_install=yes
|
||||
Reference in New Issue
Block a user