Merge pull request #20540 from victortoso/usb-host-passthrough

qemu: add usb host passthrough
This commit is contained in:
openshift-merge-bot[bot]
2023-11-13 16:03:30 +00:00
committed by GitHub
15 changed files with 260 additions and 0 deletions

View File

@ -113,6 +113,10 @@ func (v AppleHVVirtualization) LoadVMByName(name string) (machine.VM, error) {
func (v AppleHVVirtualization) NewMachine(opts machine.InitOptions) (machine.VM, error) {
m := MacMachine{Name: opts.Name}
if len(opts.USBs) > 0 {
return nil, fmt.Errorf("USB host passtrough not supported for applehv machines")
}
configDir, err := machine.GetConfDir(machine.AppleHvVirt)
if err != nil {
return nil, err