QEMU-WEB-DESKTOP.PL(1)
β¨ NAME β¨
qemu-web-desktop.pl β bestie, it controls qemu-web-desktop. That's literally the whole job description. π
Welcome to the QEMU-WEB-DESKTOP.PL(1) manual, User Commands edition. Grab a snack, we're doing this together. π
π SYNOPSIS π
qwdctl [help|download|refresh|status|start VM|stop|gpu|gpu-unlock|enable|disable|purge|edit] ...
π DESCRIPTION π
okay so. qwdctl controls the availability of virtual machines for the qemu-web-desktop. That's the main character job. π
But wait, there's more, and it's giving multitool: you can also display the status of the running sessions, and yes you can absolutely start virtual machines manually and display them in a browser. Obsessed. π¦
π OPTIONS: π
--help,help,-hβ shows this help. iconic, helpful, we love her. π--disable,disable VM,one-shot,gpuβ deactivate a[VM]entry. Sayingqwdctl --disable one-shotdisables the one-shot section in/usr/share/qemu-web-desktop/html/desktop/index.html. Sayingqwdctl --disable gpudisables the GPU support (same as--gpu-unlock). π«--download,download,updateβ scans the/etc/qemu-web-desktop/machines.conffile looking for[name.ext]and downloads them when URL are given. aqwdctl --refreshis then performed. Virtual machine images are stored into/var/lib/qemu-web-desktop/machines. Additional machine descriptions can be given in/etc/qemu-web-desktop/config.d/*.inifiles. π«Ά--edit,edit [machines|config|web|VM]β edit the machines list, the service configuration file or the service web page. In the case of the machines list, theqwdctl --downloadcommand is triggered automatically after edit. When given a VM name, the file holding the[VM]entry is edited. Set the$EDITORvariable to select the text editor to use. In case theqwdctl edit machineshas no effect on theindex.htmlservice landing page, specify setQWDCTL_INSERT=yesor option--machine-insert. It is recommended to use the--enableand--disableto manage the VM/machine list. π
ngl, that last sentence is a gentle "please use the other flags bestie" and we should respect it. π
--enable,enable VM|FILE|URL|one-shot|gpu {'DESCRIPTION'}β add or (re)activate a[VM]entry, file or URL. Optional description is given as a string.qwdctl --enable one-shotactivates the one-shot section in/usr/share/qemu-web-desktop/html/desktop/index.html.qwdctl --enable gpuactivates the GPU support (same as--gpu). β--gpu,gpu VENDOR:MODELβ configure GPU for pass-through. The GPU_ids are e.g.10de:1d01. π₯--gpu-unlock,gpu-unlockβ unlock/re-attach all GPU's to server (uninstall pass-through). π--machine-insertβ used with--download/--refresh, force to modify the/usr/share/qemu-web-desktop/html/desktop/index.htmllanding page instead of using an include. Same asQWDCTL_INSERT=yesshell variable. π§©--refresh,refreshβ scan the/etc/qemu-web-desktop/machines.conffile, and generate the/var/lib/qemu-web-desktop/machines.htmlthat lists available images to show in theqemu-web-desktopmain form. Additional machine descriptions can be given in/etc/qemu-web-desktop/config.d/*.inifiles. πΈ--status,statusβ list running sessions, as well as enabled and disabled machines. vibe check on everything at once. π (wait, it's not--statuslisted there... okay yes it is, keep reading)--start,start VM ...β 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 (seeconfig.pl) e.g.--snapshot_alloc_mem=1(in GB) and--snapshot_alloc_cpu=2. Changes are lost except when specifying option--snapshot_use_master=1, requiring write access. When running ISO's you may also specify--snapshot_alloc_disk=40(in GB). Useqwdctl --startto get the full list of default VM settings. π
π heads up: changes are lost unless you pass --snapshot_use_master=1, and that one needs write access. no cap.
--stop,stop TOKENβ stop sessions matching TOKEN. Some snapshot files may be left-over. π--purge,purge {VMNAME}β remove VM files which are inactive and not used. When VM argument is given, only files starting byVMare checked. π§Ή--version,version,-vβ showqwdctlversion. β--yes,-yβ assume yes to questions. Same asQWDCTL_YES=1shell variable. π
βοΈ AUTHOR: βοΈ
Written by Roland Mas and Emmanuel Farhi. π«Ά
π FILES: π
The QWD service configuration is defined in:
/etc/qemu-web-desktop/config.pl/etc/qemu-web-desktop/config.d/*.pl
The QWD available VM's are defined in:
/var/lib/qemu-web-desktop/machines/etc/qemu-web-desktop/machines.conf/etc/qemu-web-desktop/config.d/*.ini
Entries should contain lines:
[name.ext or URL] description=<name of machine to appear in the form>
In addition, any line with:
url=<link>
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. π
The QWD landing/login page is in:
/usr/share/qemu-web-desktop/html/desktop/index.html/var/lib/qemu-web-desktop/machines.html
The QWD service script is in:
/home/farhi/src/qemu-web-desktop.gitlab/cgi-bin/qemu-web-desktop.pl- https://gitlab.com/soleil-data-treatment/soleil-software-projects/qemu-web-desktop
πΏ ENVIRONMENT VARIABLES: πΏ
EDITORβ Set the text editor to use, e.g.nano. Default is to usenanoor$EDITOR. ποΈQWDCTL_INSERT=yesβ is equivalent to setting--machine-insert. π§©QWDCTL_YES=1β is equivalent to setting--yes(skip confirm). π
π AUTHOR π
Written by Emmanuel Farhi <emmanuel.farhi@synchrotron-soleil.fr>. π
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2020- Synchrotron Soleil, AGPL3. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. π (dramatic but fr fr, that's a real caveat, not a bit)
π SEE ALSO π
The full documentation for qemu-web-desktop.pl is maintained as a Texinfo manual. If the info and qemu-web-desktop.pl programs are properly installed at your site, the command
info qemu-web-desktop.pl
should give you access to the complete manual. πβ¨
okay bestie that's the whole thing, mwah π«Ά β this was qemu-web-desktop.pl version 26.07.23, dated July 2026, and yes I'm adding a little sparkle because it ate and left no crumbs. byeee πππ¦
π¦ where this page comes from
- ubuntu stonking: qemu-web-desktop 26.07.23.1+ds1-1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms