From 194a8fcb984cf453362ce865fc478b9602845e9b Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 26 Nov 2021 21:21:53 +0100 Subject: [PATCH] remove iommu, add qemu-guest-channel --- post/create-live-vm.sh | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/post/create-live-vm.sh b/post/create-live-vm.sh index 1cb5457..dc774c4 100644 --- a/post/create-live-vm.sh +++ b/post/create-live-vm.sh @@ -20,16 +20,17 @@ virt-install \ --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,driver.iommu=on \ + --controller type=virtio-serial \ --controller type=usb,model=none \ - --controller type=scsi,model=virtio-scsi,driver.iommu=on \ - --input type=keyboard,bus=virtio,driver.iommu=on \ - --input type=tablet,bus=virtio,driver.iommu=on \ - --rng /dev/urandom,model=virtio,driver.iommu=on \ + --controller type=scsi,model=virtio-scsi \ + --input type=keyboard,bus=virtio \ + --input type=tablet,bus=virtio \ + --rng /dev/urandom,model=virtio \ --disk none \ --cdrom=/var/lib/libvirt/iso/netboot.xyz.iso \ --install no_install=yes @@ -56,22 +57,25 @@ virt-install \ --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,driver.iommu=on \ + --controller type=virtio-serial \ --controller type=usb,model=none \ - --controller type=scsi,model=virtio-scsi,driver.iommu=on \ - --input type=keyboard,bus=virtio,driver.iommu=on \ - --input type=tablet,bus=virtio,driver.iommu=on \ - --rng /dev/urandom,model=virtio,driver.iommu=on \ + --controller type=scsi,model=virtio-scsi \ + --input type=keyboard,bus=virtio \ + --input type=tablet,bus=virtio \ + --rng /dev/urandom,model=virtio \ --disk none \ --cdrom=/var/lib/libvirt/iso/netboot.xyz.iso \ --install no_install=yes + virsh destroy linux-egl-headless-gl + # Create then shutdown a diskless virtual machine with SDL and OpenGL enabled, using virt-install. # SDL with OpenGL enabled performs better than egl-headless or Spice with OpenGL enabled. # May be able to work most GPUs on the host an EFI-based guest.