# USB redirection using clientPassthrough

**URL:** <https://forums.suse.com/t/usb-redirection-using-clientpassthrough/39801>\
**Category:** SUSE Virtualization\
**Created:** [January 8, 2023, 12:58pm UTC](https://forums.suse.com/t/usb-redirection-using-clientpassthrough/39801 "2023-01-08T12:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maas](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/maas/32/7502_2.png) [@maas](https://forums.suse.com/u/maas)\
**Post date:** [January 8, 2023, 12:58pm UTC](https://forums.suse.com/t/usb-redirection-using-clientpassthrough/39801/1 "2023-01-08T12:58:09Z")

</div>

On the node I can see the USB drives that I would like to “redirect” to one of my VM’s:

```auto
sh-4.4# lsusb
Bus 004 Device 004: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE
Bus 004 Device 008: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE
Bus 004 Device 007: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE
Bus 004 Device 006: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE
Bus 004 Device 005: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE

```

And I also know that this should be possible:

```auto
❯ k explain vmis.spec.domain.devices.clientPassthrough
KIND: VirtualMachineInstance
VERSION: kubevirt.io/v1

DESCRIPTION:
     To configure and access client devices such as redirecting USB

     To configure and access client devices such as redirecting USB

```

But I’m at a loss of how to actually put it in the yaml/config:

```auto
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
<snipped>
  domain:
<snipped>
    devices:
      clientPassthrough:
        disk1: 1058:25ee
  <snipped>

```

But that’s not it. Anyone have an example of how this should work?

Thanks!  
Maas

p.s.  
Links I’ve used / found:

- [https://github.com/kubevirt/kubevirt/pull/4089](https://github.com/kubevirt/kubevirt/pull/4089)
- [Host Devices Assignment - KubeVirt User-Guide](https://kubevirt.io/user-guide/virtual_machines/host-devices/#nvme-pci-passthrough)
