Skip to content

Commit 70d0177

Browse files
authored
Merge pull request #2020 from vasileknik76/qemu6-usb
fix usb-bus for qemu 6
2 parents 95af163 + 0e22abc commit 70d0177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/qemu/qemu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@ func Cmdline(cfg Config) (string, []string, error) {
786786
args = append(args, "-device", "virtio-"+input+"-pci")
787787
} else { // kernel panic with virtio and old versions of QEMU
788788
args = append(args, "-vga", "none", "-device", "ramfb")
789-
args = append(args, "-device", "usb-kbd,bus=usb-bus.0")
790-
args = append(args, "-device", "usb-"+input+",bus=usb-bus.0")
789+
args = append(args, "-device", "usb-kbd,bus=usb-bus")
790+
args = append(args, "-device", "usb-"+input+",bus=usb-bus")
791791
}
792792
args = append(args, "-device", "qemu-xhci,id=usb-bus")
793793
}

0 commit comments

Comments
 (0)