File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ Arguments:
61
61
"bridge", defaults to "user")
62
62
--netdump Save network activity to a file
63
63
--kvm Enable Linux KVM (much faster virtualization)
64
+ --pcspk Enable PCSpeaker emulation (if you haven't native)
65
+ --usb Enable usb (ehci) device emulation (for testing)
64
66
--curses Use text-mode graphics
65
67
--port Redirect TCP/UDP connections on the host port to the runtime.js
66
68
--append Append string to runtime.js command line
Original file line number Diff line number Diff line change @@ -77,6 +77,18 @@ var runArgs = [{
77
77
default : false ,
78
78
description : 'Enable Linux KVM (much faster virtualization)'
79
79
} ,
80
+ {
81
+ name : 'usb' ,
82
+ type : 'boolean' ,
83
+ default : false ,
84
+ description : 'Enable usb (ehci) device emulation (for testing)'
85
+ } ,
86
+ {
87
+ name : 'pcspk' ,
88
+ type : 'boolean' ,
89
+ default : false ,
90
+ description : 'Enable PCSpeaker emulation (if you haven\'t native)'
91
+ } ,
80
92
{
81
93
name : 'curses' ,
82
94
type : 'boolean' ,
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ module.exports = function(args, cb) {
47
47
var qemuNetdump = ! ! args . netdump ;
48
48
var qemuCurses = ! ! args . curses ;
49
49
var qemuKVM = ! ! args . kvm ;
50
+ var qemuUSB = ! ! args . usb ;
51
+ var qemuPCSpk = ! ! args . pcspk ;
50
52
var qemuAppend = args . append || '' ;
51
53
var qemuNographic = ! ! args . nographic ;
52
54
var qemuVirtioRng = ! ! args [ 'virtio-rng' ] ;
@@ -78,6 +80,8 @@ module.exports = function(args, cb) {
78
80
netdump : qemuNetdump ,
79
81
curses : qemuCurses ,
80
82
kvm : qemuKVM ,
83
+ usb : qemuUSB ,
84
+ pcspk : qemuPCSpk ,
81
85
qemuCommandAppend : qemuCommandAppend ,
82
86
append : qemuAppend ,
83
87
dryRun : dryRun ,
Original file line number Diff line number Diff line change @@ -96,6 +96,14 @@ function getQemuArgs(opts) {
96
96
a . push ( '-no-kvm-irqchip' ) ;
97
97
}
98
98
99
+ if ( opts . usb ) {
100
+ a . push ( '-usb -device usb-ehci,id=ehci -device usb-tablet,bus=usb-bus.0' ) ;
101
+ }
102
+
103
+ if ( opts . pcspk ) {
104
+ a . push ( '-soundhw pcspk' ) ;
105
+ }
106
+
99
107
if ( opts . qemuCommandAppend ) {
100
108
a . push ( String ( opts . qemuCommandAppend ) ) ;
101
109
}
You can’t perform that action at this time.
0 commit comments