E
emnaea
Newbie
Hmm I get these with lsusb:
my keyboard xml file is:
mouse:
and script:
Hmm typing
works manually in the terminal.
---
Actually now that I was able to use a keyboard, I encountered a new problem: when I press enter on continue, the ovmf loops. Selecting Boot Manager or Boot Maintenance Manager leads to a black screen.
One part of the xml file I tried to follow (for nvidia GPUs) is:
as well as:
Code:
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1532:0037 Razer USA, Ltd
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0480:a006 Toshiba America Info. Systems, Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 046d:c326 Logitech, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
my keyboard xml file is:
Code:
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x046d'/>
<product id='0xc326'/>
</source>
</hostdev>
mouse:
Code:
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x1532'/>
<product id='0x0037'/>
</source>
</hostdev>
and script:
Code:
#!/bin/bash
if [[ $(virsh list | grep gamingvm) != "" ]]
then
vm=gamingvm
fi
virsh attach-device $vm /home/emnaea/Documents/win10mouse.xml
virsh attach-device $vm /home/emnaea/Documents/win10keyboard.xml
Hmm typing
Code:
virsh attach-device gamingvm /home/emnaea/Documents/win10keyboard.xml
---
Actually now that I was able to use a keyboard, I encountered a new problem: when I press enter on continue, the ovmf loops. Selecting Boot Manager or Boot Maintenance Manager leads to a black screen.
One part of the xml file I tried to follow (for nvidia GPUs) is:
Code:
<qemu:arg value="-cpu" />
<qemu:arg value="host,kvm=off" />
Code:
<os>
<type arch="x86_64" machine="q35">hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
<nvram template='/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd'/>
<bootmenu enable="yes" />
</os>
<features>
<hyperv>
<relaxed state="off" />
<vapic state="off" />
<spinlocks state="off" />
</hyperv>
<kvm>
<hidden state='on'/>
</kvm>
<acpi />
</features>
<clock offset="localtime">
<timer name="hypervclock" present="no" />
</clock>
Last edited: