.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH QEMU-WEB-DESKTOP.PL "1" "July 2026" "qemu-web-desktop.pl 26.07.23" "User Commands" .SH NAME qemu-web-desktop.pl \- control qemu-web-desktop .SH SYNOPSIS .B qwdctl [\fI\,help|download|refresh|status|start VM|stop|gpu|gpu-unlock|enable|disable|purge|edit\/\fR] ... .SH DESCRIPTION .IP controls the availability of virtual machines for the qemu\-web\-desktop. In addition, the status of the running sessions can be displayed and it is possible to start virtual machines manually and display them in a browser. .SS "OPTIONS:" .HP \fB\-\-help\fR|help|\-h .IP show this help. .HP \fB\-\-disable\fR|disable VM|one\-shot|gpu .IP deactivate a [VM] entry. \&'qwdctl \fB\-\-disable\fR one\-shot' disables the one\-shot section in \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP. \&'qwdctl \fB\-\-disable\fR gpu' disables the GPU support (same as \fB\-\-gpu\-unlock\fR). .HP \fB\-\-download\fR|download|update .IP scan the \fI\,/etc/qemu\-web\-desktop/machines.conf\/\fP file for [name.ext] and download them when URL are given. a 'qwdctl \fB\-\-refresh\fR' is then performed. Virtual machine images are stored into \fI\,/var/lib/qemu\-web\-desktop/machines\/\fP. Additional machine descriptions can be given in \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini files. .HP \fB\-\-edit\fR|edit [machines|config|web|VM] .IP edit the machines list, the service configuration file or the service web page. In the case of the machines list, the 'qwdctl \fB\-\-download\fR' command is triggered automatically after edit. When given a VM name, the file holding the [VM] entry is edited. Set the $EDITOR variable to select the text editor to use. In case the 'qwdctl edit machines' has no effect on the index.html service landing page, specify set 'QWDCTL_INSERT=yes' or option \fB\-\-machine\-insert\fR. It is recommended to use the \fB\-\-enable\fR and \fB\-\-disable\fR to manage the VM/machine list. .HP \fB\-\-enable\fR|enable VM|FILE|URL|one\-shot|gpu {'DESCRIPTION'} .IP add or (re)activate a [VM] entry, file or URL. Optional description is given as a string. \&'qwdctl \fB\-\-enable\fR one\-shot' activates the one\-shot section in \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP. \&'qwdctl \fB\-\-enable\fR gpu' activates the GPU support (same as \fB\-\-gpu\fR). .HP \fB\-\-gpu\fR|gpu VENDOR:MODEL .IP configure GPU for pass\-through. The GPU_ids are e.g. '10de:1d01'. .HP \fB\-\-gpu\-unlock\fR|gpu\-unlock .IP unlock/re\-attach all GPU's to server (uninstall pass\-through). .HP \fB\-\-machine\-insert\fR .IP used with \fB\-\-download\fR/\-\-refresh, force to modify the \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP landing page instead of using an include. Same as QWDCTL_INSERT=yes shell variable. .HP \fB\-\-refresh\fR|refresh .IP 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 available images to show in the qemu\-web\-desktop main form. Additional machine descriptions can be given in \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini files. .HP \fB\-\-status\fR|status .IP list running sessions, as well as enabled and disabled machines. .HP \fB\-\-start\fR|start VM ... .IP start the given VM or ISO file (full path) in a browser. Connect to it with the displayed URL. Further arguments are passed to the service (see config.pl) e.g. \fB\-\-snapshot_alloc_mem\fR=\fI\,1\/\fR (in GB) and \fB\-\-snapshot_alloc_cpu\fR=\fI\,2\/\fR. Changes are lost except when specifying option \fB\-\-snapshot_use_master\fR=\fI\,1\/\fR, requiring write access. When running ISO's you may also specify \fB\-\-snapshot_alloc_disk\fR=\fI\,40\/\fR (in GB). Use 'qwdctl \fB\-\-start\fR' to get the full list of default VM settings. .HP \fB\-\-stop\fR|stop TOKEN .IP stop sessions matching TOKEN. Some snapshot files may be left\-over. .HP \fB\-\-purge\fR|purge {VMNAME} .IP remove VM files which are inactive and not used. When VM argument is given, only files starting by 'VM' are checked. .HP \fB\-\-version\fR|version|\-v .IP show qwdctl version. .HP \fB\-\-yes\fR|\-y .IP assume yes to questions. Same as QWDCTL_YES=1 shell variable. .SS "AUTHOR:" .IP Written by Roland Mas and Emmanuel Farhi. .SS "FILES:" .IP The QWD service configuration is defined in: \- \fI\,/etc/qemu\-web\-desktop/config.pl\/\fP \- \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.pl .IP The QWD available VM's are defined in: \- \fI\,/var/lib/qemu\-web\-desktop/machines\/\fP \- \fI\,/etc/qemu\-web\-desktop/machines.conf\/\fP \- \fI\,/etc/qemu\-web\-desktop/config\/\fP.d/*.ini Entries should contain lines: .IP [name.ext or URL] description= .IP In addition, any line with: .IP url= .IP will retrieve the given file with: qwdctl download When the description is missing, the VM file name is used. Supported virtual machine formats: ISO, QCOW2, VDI, VMDK, RAW, VHD/VHDX, QED .IP The QWD landing/login page is in: \- \fI\,/usr/share/qemu\-web\-desktop/html/desktop/index.html\/\fP \- \fI\,/var/lib/qemu\-web\-desktop/machines.html\/\fP .IP The QWD service script is in: \- \fI\,/home/farhi/src/qemu\-web\-desktop.gitlab/cgi\-bin/qemu\-web\-desktop.pl\/\fP .IP \- https://gitlab.com/soleil\-data\-treatment/soleil\-software\-projects/qemu\-web\-desktop .SS "ENVIRONMENT VARIABLES:" .TP EDITOR Set the text editor to use, e.g. nano. Default is to use 'nano' or $EDITOR. .IP QWDCTL_INSERT=yes is equivalent to setting \fB\-\-machine\-insert\fR. QWDCTL_YES=1 is equivalent to setting \fB\-\-yes\fR (skip confirm). .SH AUTHOR Written by Emmanuel Farhi .SH COPYRIGHT Copyright \(co 2020\- Synchrotron Soleil, AGPL3. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .SH "SEE ALSO" The full documentation for .B qemu-web-desktop.pl is maintained as a Texinfo manual. If the .B info and .B qemu-web-desktop.pl programs are properly installed at your site, the command .IP .B info qemu-web-desktop.pl .PP should give you access to the complete manual.