
Hi, I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled. I've created the following file in /etc/ovirt-engine/osinfo.conf.d: 01-usb.properties with content os.other.devices.usb.controller.value = nec-xhci and have restarted ovirt-engine. If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available. If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers). Is there a way to make the controllers for usb redirection xhci controllers? Regards, Rik -- Rik Theys System Engineer KU Leuven - Dept. Elektrotechniek (ESAT) Kasteelpark Arenberg 10 bus 2440 - B-3001 Leuven-Heverlee +32(0)16/32.11.07 ---------------------------------------------------------------- <<Any errors in spelling, tact or fact are transmission errors>>

Hi Rik I got the same problem, have you got it resolved ? Thanks Zhijian
Hi,
I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled.
I've created the following file in /etc/ovirt-engine/osinfo.conf.d:
01-usb.properties with content
os.other.devices.usb.controller.value = nec-xhci
and have restarted ovirt-engine.
If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available.
If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers).
Is there a way to make the controllers for usb redirection xhci controllers?
Regards,
Rik

Hi, This is supported in newer versions of oVirt than 4.1. Back then, we used a custom hook to replace the USB controller in the xml file on VM start, but it sometimes caused other issues. Regards, Rik On 4/19/22 12:52, Li, Zhijian wrote:
Hi Rik
I got the same problem, have you got it resolved ?
Thanks
Zhijian
Hi,
I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled.
I've created the following file in /etc/ovirt-engine/osinfo.conf.d:
01-usb.properties with content
os.other.devices.usb.controller.value = nec-xhci
and have restarted ovirt-engine.
If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available.
If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers).
Is there a way to make the controllers for usb redirection xhci controllers?
Regards,
Rik
-- Rik Theys System Engineer KU Leuven - Dept. Elektrotechniek (ESAT) Kasteelpark Arenberg 10 bus 2440 - B-3001 Leuven-Heverlee +32(0)16/32.11.07 ---------------------------------------------------------------- <<Any errors in spelling, tact or fact are transmission errors>>

Hi Rik many thanks for your feedbacks on 2022/4/19 19:08, Rik Theys wrote:
Hi,
This is supported in newer versions of oVirt than 4.1.
That's strange, i was using ovirt 4.3, I just added below extra configruation. [root@d0248f99ff ~]# cat /etc/ovirt-engine/osinfo.conf.d/01-usb3.0.properties | grep -v ^# os.other.devices.usb.controller.value = nec-xhci then after i enabled *USB-support *, it becomes back to 4 ich9-usb-uhci like below. [root@d0248f99ff ~]# ps aux | grep qemu root 11466 0.0 0.0 112712 976 pts/3 S+ 20:04 0:00 grep --color=auto qemu qemu 12530 1.8 3.6 1984036 1179080 ? Sl 18:41 1:32 /usr/libexec/qemu-kvm -name guest=xxxxx,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-81-xxxxx/master-key.aes -machine pc-i440fx-rhel7.6.0,accel=kvm,usb=off,dump-guest-core=off -cpu Skylake-Client,spec-ctrl=on,ssbd=on,md-clear=on -m size=1048576k,slots=16,maxmem=4194304k -realtime mlock=off -smp 1,maxcpus=16,sockets=16,cores=1,threads=1 -object iothread,id=iothread1 -numa node,nodeid=0,cpus=0,mem=1024 -uuid 2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-7.1908.0.el7.centos,serial=b3d2fc00-07f9-11e8-af80-76c675673e00,uuid=2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=30,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2022-04-19T10:41:22,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -device virtio-scsi-pci,iothread=iothread1,id=ua-df35c3c7-4869-4255-b090-8fd8b545ebba,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22,max_ports=16,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/mnt/_data_ISO/19e68646-c43b-4269-a8f0-64b02b0f3cec/images/11111111-1111-1111-1111-111111111111/ubuntu-18.04-desktop-amd64.iso,format=raw,if=none,id=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,werror=report,rerror=report,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,id=ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,bootindex=1 -drive file=/rhev/data-center/mnt/_data/c6434b1f-c0fe-4430-a713-31bb4de88123/images/ee401e83-5729-46cc-8bfd-a787da0eb224/029452e2-d0f6-4e8c-934c-cfbe66c68769,format=raw,if=none,id=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,serial=ee401e83-5729-46cc-8bfd-a787da0eb224,werror=stop,rerror=stop,cache=none,aio=threads -device scsi-hd,bus=ua-df35c3c7-4869-4255-b090-8fd8b545ebba.0,channel=0,scsi-id=0,lun=0,drive=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,id=ua-ee401e83-5729-46cc-8bfd-a787da0eb224,bootindex=2,write-cache=on -chardev socket,id=charchannel0,fd=32,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=1,chardev=charchannel0,id=channel0,name=ovirt-guest-agent.0 -chardev socket,id=charchannel1,fd=33,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 192.168.22.59:0,password -k en-us -spice port=5901,tls-port=5902,addr=192.168.22.59,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=ua-c5f50bba-e9f7-4379-93eb-8164724977be,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -chardev spicevmc,id=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,name=usbredir -device usb-redir,chardev=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,id=ua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=2 -chardev spicevmc,id=charua-760a84f3-faea-4764-a2d2-24baf3919577,name=usbredir -device usb-redir,chardev=charua-760a84f3-faea-4764-a2d2-24baf3919577,id=ua-760a84f3-faea-4764-a2d2-24baf3919577,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=3 -chardev spicevmc,id=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,name=usbredir -device usb-redir,chardev=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,id=ua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=4 -chardev spicevmc,id=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,name=usbredir -device usb-redir,chardev=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,id=ua-a78ea535-6922-4dee-84b0-5b927d002cc3,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=5 -device virtio-balloon-pci,id=ua-ad890594-9d76-4cb8-a271-c05ee618e167,bus=pci.0,addr=0x6 -object rng-random,id=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,filename=/dev/urandom -device virtio-rng-pci,rng=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,id=ua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,bus=pci.0,addr=0x7 -object memory-backend-file,size=16M,share,mem-path=/dev/shm/nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,id=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -device ivshmem-plain,memdev=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,bus=pci.0,addr=0x1f,master=on -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Back then, we used a custom hook to replace the USB controller in the xml file on VM start, but it sometimes caused other issues.
hook could be last option. Thanks Zhijian
Regards, Rik
On 4/19/22 12:52, Li, Zhijian wrote:
Hi Rik
I got the same problem, have you got it resolved ?
Thanks
Zhijian
Hi,
I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled.
I've created the following file in /etc/ovirt-engine/osinfo.conf.d:
01-usb.properties with content
os.other.devices.usb.controller.value = nec-xhci
and have restarted ovirt-engine.
If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available.
If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers).
Is there a way to make the controllers for usb redirection xhci controllers?
Regards,
Rik

Hi, You may need to explicitly use the Q35 chipset in your VM for this to work? See https://bugzilla.redhat.com/show_bug.cgi?id=1527860 You can select the chipset of your VM in the advanced properties on the system tab. Regards, Rik On 4/19/22 14:07, Li, Zhijian wrote:
Hi Rik
many thanks for your feedbacks
on 2022/4/19 19:08, Rik Theys wrote:
Hi,
This is supported in newer versions of oVirt than 4.1.
That's strange, i was using ovirt 4.3, I just added below extra configruation.
[root@d0248f99ff ~]# cat /etc/ovirt-engine/osinfo.conf.d/01-usb3.0.properties | grep -v ^# os.other.devices.usb.controller.value = nec-xhci
then after i enabled *USB-support *, it becomes back to 4 ich9-usb-uhci like below.
[root@d0248f99ff ~]# ps aux | grep qemu root 11466 0.0 0.0 112712 976 pts/3 S+ 20:04 0:00 grep --color=auto qemu qemu 12530 1.8 3.6 1984036 1179080 ? Sl 18:41 1:32 /usr/libexec/qemu-kvm -name guest=xxxxx,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-81-xxxxx/master-key.aes -machine pc-i440fx-rhel7.6.0,accel=kvm,usb=off,dump-guest-core=off -cpu Skylake-Client,spec-ctrl=on,ssbd=on,md-clear=on -m size=1048576k,slots=16,maxmem=4194304k -realtime mlock=off -smp 1,maxcpus=16,sockets=16,cores=1,threads=1 -object iothread,id=iothread1 -numa node,nodeid=0,cpus=0,mem=1024 -uuid 2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-7.1908.0.el7.centos,serial=b3d2fc00-07f9-11e8-af80-76c675673e00,uuid=2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=30,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2022-04-19T10:41:22,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -device virtio-scsi-pci,iothread=iothread1,id=ua-df35c3c7-4869-4255-b090-8fd8b545ebba,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22,max_ports=16,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/mnt/_data_ISO/19e68646-c43b-4269-a8f0-64b02b0f3cec/images/11111111-1111-1111-1111-111111111111/ubuntu-18.04-desktop-amd64.iso,format=raw,if=none,id=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,werror=report,rerror=report,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,id=ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,bootindex=1 -drive file=/rhev/data-center/mnt/_data/c6434b1f-c0fe-4430-a713-31bb4de88123/images/ee401e83-5729-46cc-8bfd-a787da0eb224/029452e2-d0f6-4e8c-934c-cfbe66c68769,format=raw,if=none,id=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,serial=ee401e83-5729-46cc-8bfd-a787da0eb224,werror=stop,rerror=stop,cache=none,aio=threads -device scsi-hd,bus=ua-df35c3c7-4869-4255-b090-8fd8b545ebba.0,channel=0,scsi-id=0,lun=0,drive=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,id=ua-ee401e83-5729-46cc-8bfd-a787da0eb224,bootindex=2,write-cache=on -chardev socket,id=charchannel0,fd=32,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=1,chardev=charchannel0,id=channel0,name=ovirt-guest-agent.0 -chardev socket,id=charchannel1,fd=33,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 192.168.22.59:0,password -k en-us -spice port=5901,tls-port=5902,addr=192.168.22.59,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=ua-c5f50bba-e9f7-4379-93eb-8164724977be,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -chardev spicevmc,id=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,name=usbredir -device usb-redir,chardev=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,id=ua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=2 -chardev spicevmc,id=charua-760a84f3-faea-4764-a2d2-24baf3919577,name=usbredir -device usb-redir,chardev=charua-760a84f3-faea-4764-a2d2-24baf3919577,id=ua-760a84f3-faea-4764-a2d2-24baf3919577,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=3 -chardev spicevmc,id=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,name=usbredir -device usb-redir,chardev=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,id=ua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=4 -chardev spicevmc,id=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,name=usbredir -device usb-redir,chardev=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,id=ua-a78ea535-6922-4dee-84b0-5b927d002cc3,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=5 -device virtio-balloon-pci,id=ua-ad890594-9d76-4cb8-a271-c05ee618e167,bus=pci.0,addr=0x6 -object rng-random,id=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,filename=/dev/urandom -device virtio-rng-pci,rng=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,id=ua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,bus=pci.0,addr=0x7 -object memory-backend-file,size=16M,share,mem-path=/dev/shm/nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,id=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -device ivshmem-plain,memdev=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,bus=pci.0,addr=0x1f,master=on -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Back then, we used a custom hook to replace the USB controller in the xml file on VM start, but it sometimes caused other issues.
hook could be last option.
Thanks
Zhijian
Regards, Rik
On 4/19/22 12:52, Li, Zhijian wrote:
Hi Rik
I got the same problem, have you got it resolved ?
Thanks
Zhijian
Hi,
I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled.
I've created the following file in /etc/ovirt-engine/osinfo.conf.d:
01-usb.properties with content
os.other.devices.usb.controller.value = nec-xhci
and have restarted ovirt-engine.
If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available.
If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers).
Is there a way to make the controllers for usb redirection xhci controllers?
Regards,
Rik
-- Rik Theys System Engineer KU Leuven - Dept. Elektrotechniek (ESAT) Kasteelpark Arenberg 10 bus 2440 - B-3001 Leuven-Heverlee +32(0)16/32.11.07 ---------------------------------------------------------------- <<Any errors in spelling, tact or fact are transmission errors>>

on 2022/4/19 20:12, Rik Theys wrote:
Hi,
You may need to explicitly use the Q35 chipset in your VM for this to work?
I agreed it was on the right track.
You can select the chipset of your VM in the advanced properties on the system tab.
But VM cannot start if i chose Q35 machine in * in the advanced properties on the system tab* Anyway, thank you very much, your information is very helpful. i will take a look what's wrong. Thanks Zhijian
Regards, Rik
On 4/19/22 14:07, Li, Zhijian wrote:
Hi Rik
many thanks for your feedbacks
on 2022/4/19 19:08, Rik Theys wrote:
Hi,
This is supported in newer versions of oVirt than 4.1.
That's strange, i was using ovirt 4.3, I just added below extra configruation.
[root@d0248f99ff ~]# cat /etc/ovirt-engine/osinfo.conf.d/01-usb3.0.properties | grep -v ^# os.other.devices.usb.controller.value = nec-xhci
then after i enabled *USB-support *, it becomes back to 4 ich9-usb-uhci like below.
[root@d0248f99ff ~]# ps aux | grep qemu root 11466 0.0 0.0 112712 976 pts/3 S+ 20:04 0:00 grep --color=auto qemu qemu 12530 1.8 3.6 1984036 1179080 ? Sl 18:41 1:32 /usr/libexec/qemu-kvm -name guest=xxxxx,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-81-xxxxx/master-key.aes -machine pc-i440fx-rhel7.6.0,accel=kvm,usb=off,dump-guest-core=off -cpu Skylake-Client,spec-ctrl=on,ssbd=on,md-clear=on -m size=1048576k,slots=16,maxmem=4194304k -realtime mlock=off -smp 1,maxcpus=16,sockets=16,cores=1,threads=1 -object iothread,id=iothread1 -numa node,nodeid=0,cpus=0,mem=1024 -uuid 2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-7.1908.0.el7.centos,serial=b3d2fc00-07f9-11e8-af80-76c675673e00,uuid=2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=30,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2022-04-19T10:41:22,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -device virtio-scsi-pci,iothread=iothread1,id=ua-df35c3c7-4869-4255-b090-8fd8b545ebba,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22,max_ports=16,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/mnt/_data_ISO/19e68646-c43b-4269-a8f0-64b02b0f3cec/images/11111111-1111-1111-1111-111111111111/ubuntu-18.04-desktop-amd64.iso,format=raw,if=none,id=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,werror=report,rerror=report,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,id=ua-900e695f-d46a-41c3-bf8d-a8c5475ef085,bootindex=1 -drive file=/rhev/data-center/mnt/_data/c6434b1f-c0fe-4430-a713-31bb4de88123/images/ee401e83-5729-46cc-8bfd-a787da0eb224/029452e2-d0f6-4e8c-934c-cfbe66c68769,format=raw,if=none,id=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,serial=ee401e83-5729-46cc-8bfd-a787da0eb224,werror=stop,rerror=stop,cache=none,aio=threads -device scsi-hd,bus=ua-df35c3c7-4869-4255-b090-8fd8b545ebba.0,channel=0,scsi-id=0,lun=0,drive=drive-ua-ee401e83-5729-46cc-8bfd-a787da0eb224,id=ua-ee401e83-5729-46cc-8bfd-a787da0eb224,bootindex=2,write-cache=on -chardev socket,id=charchannel0,fd=32,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=1,chardev=charchannel0,id=channel0,name=ovirt-guest-agent.0 -chardev socket,id=charchannel1,fd=33,server,nowait -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=ua-304b04db-6d2b-498f-9818-1abe1e6c4f22.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 192.168.22.59:0,password -k en-us -spice port=5901,tls-port=5902,addr=192.168.22.59,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=ua-c5f50bba-e9f7-4379-93eb-8164724977be,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -chardev spicevmc,id=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,name=usbredir -device usb-redir,chardev=charua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,id=ua-0a3e648c-39e1-4dc5-8c20-e459609b40e0,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=2 -chardev spicevmc,id=charua-760a84f3-faea-4764-a2d2-24baf3919577,name=usbredir -device usb-redir,chardev=charua-760a84f3-faea-4764-a2d2-24baf3919577,id=ua-760a84f3-faea-4764-a2d2-24baf3919577,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=3 -chardev spicevmc,id=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,name=usbredir -device usb-redir,chardev=charua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,id=ua-7d4d715a-fc3f-4009-a03d-5e6e92ea82a1,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=4 -chardev spicevmc,id=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,name=usbredir -device usb-redir,chardev=charua-a78ea535-6922-4dee-84b0-5b927d002cc3,id=ua-a78ea535-6922-4dee-84b0-5b927d002cc3,filter=0x03:-1:-1:-1:0|-1:-1:-1:-1:1,bus=usb.0,port=5 -device virtio-balloon-pci,id=ua-ad890594-9d76-4cb8-a271-c05ee618e167,bus=pci.0,addr=0x6 -object rng-random,id=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,filename=/dev/urandom -device virtio-rng-pci,rng=objua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,id=ua-d42f8914-13f5-4fb8-9ea1-9486e34741fb,bus=pci.0,addr=0x7 -object memory-backend-file,size=16M,share,mem-path=/dev/shm/nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,id=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5 -device ivshmem-plain,memdev=nu_fsec-2f03e393-e58f-4a61-aa71-b9f438e5f3b5,bus=pci.0,addr=0x1f,master=on -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Back then, we used a custom hook to replace the USB controller in the xml file on VM start, but it sometimes caused other issues.
hook could be last option.
Thanks
Zhijian
Regards, Rik
On 4/19/22 12:52, Li, Zhijian wrote:
Hi Rik
I got the same problem, have you got it resolved ?
Thanks
Zhijian
Hi,
I'm trying to assign a USB3 controller to a CentOS 7.4 VM in oVirt 4.1 with USB redirection enabled.
I've created the following file in /etc/ovirt-engine/osinfo.conf.d:
01-usb.properties with content
os.other.devices.usb.controller.value = nec-xhci
and have restarted ovirt-engine.
If I disable USB-support in the web interface for the VM, the xhci controller is added to the VM (I can see it in the qemu-kvm commandline), but usb redirection is not available.
If I enable USB-support in the UI, no xhci controller is added (only 4 uhci controllers).
Is there a way to make the controllers for usb redirection xhci controllers?
Regards,
Rik
participants (3)
-
Li, Zhijian
-
Li, Zhijian
-
Rik Theys