You are not logged in.

#1 2016-04-23 23:24:31

dexter74
Member
Registered: 2016-04-22
Posts: 8

VFIO + Qemu + Mouse & Keyboard (Grab)

Hello,
After some research and some development I managed:
- Fix iommu (M5A99X Evo R0)
- VFIO PCI (Asus R9 270x)


My Script:

echo a | sudo -S sudo qemu-system-x86_64 \
-enable-kvm \
-name Windows_10 \
-alt-grab \
-vga none \
-parallel none \
-serial none \
-nodefaults \
-nodefconfig \
-cpu host,kvm=off \
-smp 8,sockets=2,cores=4,threads=1 \
-m 4096 \
-net nic \
-net user \
-device vfio-pci,host=02:00.0,multifunction=on,romfile=/home/drthrax/Téléchargements/Asus.R9270X.2048.131210.rom,x-vga=on \
-device vfio-pci,host=02:00.1 \
-drive id=disk,file='/home/drthrax/VM/Windows_10.img' \
-drive file='/mnt/Black/OS/Microsoft/Windows_10/Windows_10_x64.iso',media=cdrom \
-drive file='/home/drthrax/Téléchargements/virtio-win-0.1.117.iso',media=cdrom \
-boot c

My problem is that I unable to bind mouse & keyboard.

I Tried

-usbdevice "host:008.003" \
-usbdevice "host:008.002" \

Not work ! Help please !

lsusb:

Bus 010 Device 003: ID 1bcf:0002 Sunplus Innovation Technology Inc. 
Bus 010 Device 002: ID 04d9:a055 Holtek Semiconductor, Inc. Keyboard

Bus 008 Device 002: ID 1bcf:0002 Sunplus Innovation Technology Inc. 
Bus 008 Device 003: ID 046d:c31c Logitech, Inc. Keyboard K120

Last edited by dexter74 (2016-04-23 23:43:47)

Offline

#2 2016-04-24 08:29:36

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: VFIO + Qemu + Mouse & Keyboard (Grab)

Check the permissions on e.g. /dev/bus/usb/008/003

You'd want the "file"'s group, to be a group that your user is in.

Last edited by brebs (2016-04-24 08:30:44)

Offline

#3 2016-04-26 19:25:08

dexter74
Member
Registered: 2016-04-22
Posts: 8

Re: VFIO + Qemu + Mouse & Keyboard (Grab)

Topic resolve !

Offline

Board footer

Powered by FluxBB