Redirect USB device to a VZVirtualMachine with Virtualization framework

Hello,

I am working on a macOS Virtualization framework project on Xcode. Is there a way to redirect an USB device connected to the host mac, to a virtual machine. I know this is possible with lower layers but i would like to do it with a VZVirtualMachine object. Is it possible ?

Thanks

Answered by DTS Engineer in 772765022

While there are affordances for specific device types — keyboards, say — Virtualization framework has no general mechanism for USB pass through.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

While there are affordances for specific device types — keyboards, say — Virtualization framework has no general mechanism for USB pass through.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Oh man, that's severely disappointing. It wasn't mentioned as an option in Sonoma, either ☹️

VMWare Fusion supports “USB pass through” or at least the appearance of it

Right. But it long predates Virtualization framework.

For the sake of those reading along at home, here’s a link to a thread from last week where we explained this to W1EBR.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is it possible with the new macOS Sequoia Beta 2 Host to have a macOS VM (Sonoma or Sequoia) guest VM getting USB passthrough from the host? I am looking for very basic USB2 device passthrough, thanks

I am looking for very basic USB2 device passthrough

The Virtualization framework USB pass through story has not changed in macOS 15 beta.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Redirect USB device to a VZVirtualMachine with Virtualization framework
 
 
Q