From 96ac6d6ec865b79a5fa77048d634a2a904b43721 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 17 Sep 2020 18:46:23 -0300 Subject: Feat: adds usb_attach command --- kvmxfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'kvmxfile') diff --git a/kvmxfile b/kvmxfile index 60353e5..cf945d7 100644 --- a/kvmxfile +++ b/kvmxfile @@ -209,14 +209,23 @@ bootloader="grub" # See http://www.reactos.org/wiki/QEMU#Setting_up_network #nic_model="ne2k_pci" +# USB support +# +# Allowed values: +# +# 0 - No USB support +# 1 - Support for USB 1.0 +# 2 - Support for USB 1.0 and 2.0 +# 3 - Support for USB 1.0, 2.0 and 3.0 +# +#usb="0" + # Additional qemu opts # Example: http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest # See also: https://qemu.readthedocs.io/en/latest/system/usb.html # https://wiki.gentoo.org/wiki/QEMU/Windows_guest -#qemu_opts="-usb" # Basic USB support -#qemu_opts="-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452" # USB support with 1.0 and 2.0 hub -#qemu_opts="-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 -device qemu-xhci,id=xhci" # USB support with 1.0, 2.0 and 3.0 hubs -#qemu_opts="-usb -device usb-ehci,id=ehci -device usb-host,hostbus=2,hostaddr=3" # USB support, attaching an specific device +#qemu_opts="-device usb-host,hostbus=2,hostaddr=3" # Automatically attach an specific USB device +#qemu_opts="" # Number of CPUs #smp="4" -- cgit v1.2.3