WeBWorK 2.18 is available as a virtual machine image.
The instructions
https://webwork.maa.org/wiki/WeBWorK_2.18_Ubuntu_Server_22.04_LTS_Virtual_Machine_Image
cover the installation of Ubuntu 22.04 LTS and WeBWorK 2.17 using the WeBWorK Virtual Machine Image.
The WeBWorK Virtual Machine Image is an .ova file which is an "open, secure, portable, efficient and extensible format for the packaging and distribution of software to be run in virtual machines" (see http://en.wikipedia.org/wiki/Open_Virtualization_Format) and is supported by VMware, VirtualBox, etc.
Note that we are still working on the installation documentation but it should be mostly complete.