Debian Codegraph @

doc/qwdctl.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH QEMU-WEB-DESKTOP.PL "1" "July 2026" "qemu-web-desktop.pl 26.07.23" "User Commands"
3 .SH NAME
4 qemu-web-desktop.pl \- control qemu-web-desktop
5 .SH SYNOPSIS
6 .B qwdctl
7 [\fI\,help|download|refresh|status|start VM|stop|gpu|gpu-unlock|enable|disable|purge|edit\/\fR] ...
8 .SH DESCRIPTION
9 .IP
10 controls the availability of virtual machines for the
11 qemu\-web\-desktop.
12 In addition, the status of the running sessions can be displayed
13 and it is possible to start virtual machines manually and display
14 them in a browser.
15 .SS "OPTIONS:"
16 .HP
17 \fB\-\-help\fR|help|\-h
18 .IP
19 show this help.
20 .HP
21 \fB\-\-disable\fR|disable VM|one\-shot|gpu
22 .IP
23 deactivate a [VM] entry.
24 \&'qwdctl \fB\-\-disable\fR one\-shot' disables the one\-shot section in \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP.
25 \&'qwdctl \fB\-\-disable\fR gpu' disables the GPU support (same as \fB\-\-gpu\-unlock\fR).
26 .HP
27 \fB\-\-download\fR|download|update
28 .IP
29 scan the \fI\,/etc/qemu\-web\-desktop/machines.conf\/\fP file for [name.ext] and download them when URL are given.
30 a 'qwdctl \fB\-\-refresh\fR' is then performed. Virtual machine images are stored into \fI\,/var/lib/qemu\-web\-desktop/machines\/\fP.
31 Additional machine descriptions can be given in \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini files.
32 .HP
33 \fB\-\-edit\fR|edit [machines|config|web|VM]
34 .IP
35 edit the machines list, the service configuration file or the service web page.
36 In the case of the machines list, the 'qwdctl \fB\-\-download\fR' command is triggered automatically after edit.
37 When given a VM name, the file holding the [VM] entry is edited.
38 Set the $EDITOR variable to select the text editor to use.
39 In case the 'qwdctl edit machines' has no effect on the index.html service landing page,
40 specify set 'QWDCTL_INSERT=yes' or option \fB\-\-machine\-insert\fR.
41 It is recommended to use the \fB\-\-enable\fR and \fB\-\-disable\fR to manage the VM/machine list.
42 .HP
43 \fB\-\-enable\fR|enable VM|FILE|URL|one\-shot|gpu {'DESCRIPTION'}
44 .IP
45 add or (re)activate a [VM] entry, file or URL. Optional description is given as a string.
46 \&'qwdctl \fB\-\-enable\fR one\-shot' activates the one\-shot section in \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP.
47 \&'qwdctl \fB\-\-enable\fR gpu' activates the GPU support (same as \fB\-\-gpu\fR).
48 .HP
49 \fB\-\-gpu\fR|gpu VENDOR:MODEL
50 .IP
51 configure GPU for pass\-through. The GPU_ids are e.g. '10de:1d01'.
52 .HP
53 \fB\-\-gpu\-unlock\fR|gpu\-unlock
54 .IP
55 unlock/re\-attach all GPU's to server (uninstall pass\-through).
56 .HP
57 \fB\-\-machine\-insert\fR
58 .IP
59 used with \fB\-\-download\fR/\-\-refresh, force to modify the \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP
60 landing page instead of using an include.
61 Same as QWDCTL_INSERT=yes shell variable.
62 .HP
63 \fB\-\-refresh\fR|refresh
64 .IP
65 scan the \fI\,/etc/qemu\-web\-desktop/machines.conf\/\fP file, and generate the \fI\,/var/lib/qemu\-web\-desktop/machines.html\/\fP that lists
66 available images to show in the qemu\-web\-desktop main form.
67 Additional machine descriptions can be given in \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini files.
68 .HP
69 \fB\-\-status\fR|status
70 .IP
71 list running sessions, as well as enabled and disabled machines.
72 .HP
73 \fB\-\-start\fR|start VM ...
74 .IP
75 start the given VM or ISO file (full path) in a browser. Connect to it with
76 the displayed URL. Further arguments are passed to the service (see config.pl)
77 e.g. \fB\-\-snapshot_alloc_mem\fR=\fI\,1\/\fR (in GB) and \fB\-\-snapshot_alloc_cpu\fR=\fI\,2\/\fR.
78 Changes are lost except when specifying option \fB\-\-snapshot_use_master\fR=\fI\,1\/\fR,
79 requiring write access. When running ISO's you may also specify
80 \fB\-\-snapshot_alloc_disk\fR=\fI\,40\/\fR (in GB).
81 Use 'qwdctl \fB\-\-start\fR' to get the full list of default VM settings.
82 .HP
83 \fB\-\-stop\fR|stop TOKEN
84 .IP
85 stop sessions matching TOKEN. Some snapshot files may be left\-over.
86 .HP
87 \fB\-\-purge\fR|purge {VMNAME}
88 .IP
89 remove VM files which are inactive and not used. When VM argument is
90 given, only files starting by 'VM' are checked.
91 .HP
92 \fB\-\-version\fR|version|\-v
93 .IP
94 show qwdctl version.
95 .HP
96 \fB\-\-yes\fR|\-y
97 .IP
98 assume yes to questions. Same as QWDCTL_YES=1 shell variable.
99 .SS "AUTHOR:"
100 .IP
101 Written by Roland Mas and Emmanuel Farhi.
102 .SS "FILES:"
103 .IP
104 The QWD service configuration is defined in:
105 \- \fI\,/etc/qemu\-web\-desktop/config.pl\/\fP
106 \- \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.pl
107 .IP
108 The QWD available VM's are defined in:
109 \- \fI\,/var/lib/qemu\-web\-desktop/machines\/\fP
110 \- \fI\,/etc/qemu\-web\-desktop/machines.conf\/\fP
111 \- \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini
112 Entries should contain lines:
113 .IP
114 [name.ext or URL]
115 description=<name of machine to appear in the form>
116 .IP
117 In addition, any line with:
118 .IP
119 url=<link>
120 .IP
121 will retrieve the given file with: qwdctl download
122 When the description is missing, the VM file name is used.
123 Supported virtual machine formats: ISO, QCOW2, VDI, VMDK, RAW, VHD/VHDX, QED
124 .IP
125 The QWD landing/login page is in:
126 \- \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP
127 \- \fI\,/var/lib/qemu\-web\-desktop/machines.html\/\fP
128 .IP
129 The QWD service script is in:
130 \- \fI\,/home/farhi/src/qemu\-web\-desktop.gitlab/cgi\-bin/qemu\-web\-desktop.pl\/\fP
131 .IP
132 \- https://gitlab.com/soleil\-data\-treatment/soleil\-software\-projects/qemu\-web\-desktop
133 .SS "ENVIRONMENT VARIABLES:"
134 .TP
135 EDITOR
136 Set the text editor to use, e.g. nano. Default is to use 'nano' or $EDITOR.
137 .IP
138 QWDCTL_INSERT=yes is equivalent to setting \fB\-\-machine\-insert\fR.
139 QWDCTL_YES=1 is equivalent to setting \fB\-\-yes\fR (skip confirm).
140 .SH AUTHOR
141 Written by Emmanuel Farhi <emmanuel.farhi@synchrotron\-soleil.fr>
142 .SH COPYRIGHT
143 Copyright \(co 2020\- Synchrotron Soleil, AGPL3.
144 .br
145 This is free software; see the source for copying conditions. There is NO
146 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
147 .SH "SEE ALSO"
148 The full documentation for
149 .B qemu-web-desktop.pl
150 is maintained as a Texinfo manual. If the
151 .B info
152 and
153 .B qemu-web-desktop.pl
154 programs are properly installed at your site, the command
155 .IP
156 .B info qemu-web-desktop.pl
157 .PP
158 should give you access to the complete manual.