Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use virtio gpu 3d acceleration #977

Closed
lcax200000 opened this issue Dec 19, 2024 · 2 comments
Closed

How can I use virtio gpu 3d acceleration #977

lcax200000 opened this issue Dec 19, 2024 · 2 comments

Comments

@lcax200000
Copy link

Operating system

ubuntu 22.04

Description

I try to use gpu virtualization by virtio gpu
github.com/virtio-win/kvm-guest-drivers-windows
When I add "-device virtio-gpu-gl-pci" in the boot parameters I get the error

Docker compose

version: "3"
services:
windows:
image: dockurr/windows
build: .
container_name: windows
privileged: true
environment:
VERSION: "http://winiso/win11x64.iso"
MANUAL: "N"
TPM: "N"
DEBUG: Y
ARGUMENTS: "-device virtio-gpu -device virtio-gpu-gl-pci "
RAM_SIZE: "32G"
CPU_CORES: "16"
DISK_SIZE: "128G"
DISK_FMT: "qcow2"
#DISK2_SIZE: "256G"
devices:
- /dev/dri
- /dev/kvm
group_add:
- "0"
cap_add:
- NET_ADMIN
- SYS_ADMIN

Docker log

windows | ❯ Starting Windows for Docker v4.00...
windows | ❯ For support visit https://github.com/dockur/windows
windows | ❯ CPU: AMD EPYC 7K62 48 Core Processor | RAM: 496/504 GB | DISK: 689 GB (ext4) | HOST: 5.15.0-125...
windows |
windows | ❯ Host: aacf60f9f827 IP: 172.18.0.3 Gateway: 172.18.0.1 Interface: eth0 MAC: 02:D7:18:D5:10:67
windows | nameserver 127.0.0.11
windows |
windows | swtpm: Could not open UnixIO socket: Permission denied
windows | ❯ ERROR: Failed to start TPM emulator, reason: 0
windows | Arguments:
windows |
windows | -nodefaults
windows | -cpu host,kvm=on,l3-cache=on,+hypervisor,migratable=no,+invtsc,hv_passthrough,-hv-evmcs
windows | -smp 16,sockets=1,dies=1,cores=16,threads=1
windows | -m 32G
windows | -machine type=q35,smm=on,graphics=off,vmport=off,dump-guest-core=off,hpet=off,accel=kvm
windows | -enable-kvm
windows | -global kvm-pit.lost_tick_policy=discard
windows | -display vnc=:0,websocket=5700
windows | -vga virtio
windows | -monitor telnet:localhost:7100,server,nowait,nodelay
windows | -daemonize
windows | -D /run/shm/qemu.log
windows | -pidfile /run/shm/qemu.pid
windows | -name windows,process=windows,debug-threads=on
windows | -serial pty
windows | -device qemu-xhci,id=xhci
windows | -device usb-tablet
windows | -netdev tap,id=hostnet0,ifname=qemu,vhost=on,vhostfd=40,script=no,downscript=no
windows | -device virtio-net-pci,romfile=,netdev=hostnet0,mac=02:D7:18:D5:10:67,id=net0
windows | -drive file=/storage/data.qcow2,id=data3,format=qcow2,cache=none,aio=native,discard=on,detect-zeroes=on,if=none
windows | -device virtio-scsi-pci,id=data3b,bus=pcie.0,addr=0xa,iothread=io2
windows | -device scsi-hd,drive=data3,bus=data3b.0,channel=0,scsi-id=0,lun=0,rotation_rate=1,bootindex=3
windows | -object iothread,id=io2
windows | -rtc base=localtime
windows | -global ICH9-LPC.disable_s3=1
windows | -global ICH9-LPC.disable_s4=1
windows | -global driver=cfi.pflash01,property=secure,value=on
windows | -drive file=/storage/windows_secure.rom,if=pflash,unit=0,format=raw,readonly=on
windows | -drive file=/storage/windows_secure.vars,if=pflash,unit=1,format=raw
windows | -object rng-random,id=objrng0,filename=/dev/urandom
windows | -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pcie.0,addr=0x1c
windows | -device virtio-gpu
windows | -device virtio-gpu-gl-pci
windows | ❯ Booting Windows securely using QEMU v9.1.0...
windows | ❯ ERROR: qemu-system-x86_64: -device virtio-gpu-gl-pci: 'virtio-gpu-gl-pci' is not a valid device model name
windows exited with code 15

Screenshots (optional)

No response

@kroese
Copy link
Contributor

kroese commented Dec 19, 2024

See #22

@kroese kroese closed this as completed Dec 19, 2024
@lcax200000
Copy link
Author

See #22

I thought after so much time there would be some improvements in convenience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants