-
Notifications
You must be signed in to change notification settings - Fork 119
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
Provide usbs into VMs #996
Conversation
@@ -151,5 +157,10 @@ exec qemu-system-x86_64 -enable-kvm -drive format=qcow2,file=${next},if=virtio,c | |||
-vnc :${n} -cpu host,migratable=no,+invtsc -m ${MEMORY} -smp ${CPU} \ | |||
-serial pty -M q35,accel=kvm,kernel_irqchip=split \ | |||
-device intel-iommu,intremap=on,caching-mode=on -device intel-hda -device hda-duplex -device AC97 \ | |||
-device qemu-xhci,id=bus1 -device qemu-xhci,id=bus2 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to have it always enabled? Otherwise, we could add an option as its the case for SCSI and NVMe emulation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do it on demand I don't have a problem with it.
As Alice mentioend, not sure if we want it always enabled but 3 usb storage devices with xhci controller should be enough to basic tests of usb passthrough. |
In order to test usb pass-through we need few usb devices available in the VM. In order to use it, export following before cluster-up: export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 30M" Signed-off-by: L. Pivarc <[email protected]>
@victortoso @alicefr PTAL |
@xpivarc: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better than previous version
Looks good, thanks @xpivarc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brianmcarey The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[f661bfe Provide usbs into VMs](kubevirt/kubevirtci#996) [013718a Bump provisioning image to fedora 38](kubevirt/kubevirtci#1024) [0d63ec2 pman: Update info about BYPASS_PMAN_CHANGE_CHECK](kubevirt/kubevirtci#1030) [0c6367c Fix duplicate mount error during provisioning](kubevirt/kubevirtci#1032) ```release-note NONE ``` Signed-off-by: kubevirt-bot <[email protected]>
[f661bfe Provide usbs into VMs](kubevirt/kubevirtci#996) [013718a Bump provisioning image to fedora 38](kubevirt/kubevirtci#1024) [0d63ec2 pman: Update info about BYPASS_PMAN_CHANGE_CHECK](kubevirt/kubevirtci#1030) [0c6367c Fix duplicate mount error during provisioning](kubevirt/kubevirtci#1032) ```release-note NONE ``` Signed-off-by: kubevirt-bot <[email protected]>
[f661bfe Provide usbs into VMs](kubevirt/kubevirtci#996) [013718a Bump provisioning image to fedora 38](kubevirt/kubevirtci#1024) [0d63ec2 pman: Update info about BYPASS_PMAN_CHANGE_CHECK](kubevirt/kubevirtci#1030) [0c6367c Fix duplicate mount error during provisioning](kubevirt/kubevirtci#1032) ```release-note NONE ``` Signed-off-by: kubevirt-bot <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfi. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfi. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host passthrough using NodeConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
This is possible since: kubevirt/kubevirtci#996 The follow CI would benefit from it: kubevirt/kubevirt#10015 Signed-off-by: Victor Toso <[email protected]>
For sig-compute in 1.26 and 1.27 only. This is possible since: kubevirt/kubevirtci#996 The follow CI would benefit from it: kubevirt/kubevirt#10015 Signed-off-by: Victor Toso <[email protected]>
For sig-compute in 1.26 and 1.27 only. This is possible since: kubevirt/kubevirtci#996 The follow CI would benefit from it: kubevirt/kubevirt#10015 Signed-off-by: Victor Toso <[email protected]>
For sig-compute in 1.26 and 1.27 only. This is possible since: kubevirt/kubevirtci#996 The follow CI would benefit from it: kubevirt/kubevirt#10015 Signed-off-by: Victor Toso <[email protected]>
This commit adds basic functional testing to USB host pass through using USBDevicesConfig. Thanks to KubeVirtCI kubevirt#996 [0], we can create emulated USB storage devices in the node to use for functional test. > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
[f661bfe Provide usbs into VMs](kubevirt/kubevirtci#996) [013718a Bump provisioning image to fedora 38](kubevirt/kubevirtci#1024) [0d63ec2 pman: Update info about BYPASS_PMAN_CHANGE_CHECK](kubevirt/kubevirtci#1030) [0c6367c Fix duplicate mount error during provisioning](kubevirt/kubevirtci#1032) ```release-note NONE ``` Signed-off-by: kubevirt-bot <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
[f661bfe Provide usbs into VMs](kubevirt/kubevirtci#996) [013718a Bump provisioning image to fedora 38](kubevirt/kubevirtci#1024) [0d63ec2 pman: Update info about BYPASS_PMAN_CHANGE_CHECK](kubevirt/kubevirtci#1030) [0c6367c Fix duplicate mount error during provisioning](kubevirt/kubevirtci#1032) ```release-note NONE ``` Signed-off-by: kubevirt-bot <[email protected]>
The test takes inspiration on PCI's tests/vmi_hostdev_test.go Since the introduction of emulated USB devices [0], this can be tested locally with: > export KUBEVIRT_PROVIDER=k8s-1.26-centos9 > export KUBEVIRTCI_TAG=latest > export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 40M" > make cluster-up [0] kubevirt/kubevirtci#996 Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
In order to test usb pass-through we need
few usb devices available in the VM.
Usage:
export KUBEVIRT_PROVIDER_EXTRA_ARGS="--usb 20M --usb 30M"