diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-10-26 17:56:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-10-26 17:56:03 -0300 |
commit | 1227c79c21d7a89e8a13bd62a0626ee38027d887 (patch) | |
tree | 15de038f4fac298efd823e7c7a13396063ef2e7b | |
parent | b89de78ee226d0617d70385d4ba3297246ec06e0 (diff) | |
download | kvmx-1227c79c21d7a89e8a13bd62a0626ee38027d887.tar.gz kvmx-1227c79c21d7a89e8a13bd62a0626ee38027d887.tar.bz2 |
Commented: USB redirect
-rwxr-xr-x | kvmx | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -486,6 +486,19 @@ function kvmx_up { image_opts="-drive file=$image,if=$drive_interface" fi + # USB redirect support + # See https://people.freedesktop.org/~teuf/spice-doc/html/ch02s06.html + #usb_opts="-device ich9-usb-ehci1,id=usb" + #usb_opts="$usb_opts -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,multifunction=on" + #usb_opts="$usb_opts -device ich9-usb-uhci2,masterbus=usb.0,firstport=2" + #usb_opts="$usb_opts -device ich9-usb-uhci3,masterbus=usb.0,firstport=4" + #usb_opts="$usb_opts -chardev spicevmc,name=usbredir,id=usbredirchardev1" + #usb_opts="$usb_opts -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1" + #usb_opts="$usb_opts -chardev spicevmc,name=usbredir,id=usbredirchardev2" + #usb_opts="$usb_opts -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2" + #usb_opts="$usb_opts -chardev spicevmc,name=usbredir,id=usbredirchardev3" + #usb_opts="$usb_opts -device usb-redir,chardev=usbredirchardev3,id=usbredirdev3" + # Run virtual machine, nohup approach # See https://en.wikipedia.org/wiki/Nohup#Overcoming_hanging #nohup setsid kvm -m $memory -name $VM \ |