Changes between Version 119 and Version 120 of VboxApps


Ignore:
Timestamp:
Feb 18, 2022, 6:25:25 AM (2 years ago)
Author:
computezrmle
Comment:

Added the description how to use multiattach_vdi_file

Legend:

Unmodified
Added
Removed
Modified
  • VboxApps

    v119 v120  
    9797Typically you can use the same VM image for multiple applications.
    9898This reduces network traffic and client disk usage.
     99
     100=== Multiattach mode disk images ===
     101
     102{{{
     103#!comment
     104The vboxwrapper version number needs to be added once the new version is available.
     105}}}
     106As of version xxxxx '''vboxwrapper''' can deal with multiattach-mode/differencing disk images as described in the ​[https://www.virtualbox.org/manual/ch05.html#diffimages VirtualBox manual]. This avoids the need to copy a huge "vm_image.vdi" file to the worker slot each time a fresh WU starts. Instead the vdi image remains in the project directory, is opened read-only and used for all WUs referring to it. !VirtualBox transparently ensures that all disk '''writes''' go to a separate vdi file within the slot directory of a WU. That "differencing image" is usually much smaller than the parent vdi image.
     107
     108To enable this mode add '''<multiattach_vdi_file>filename_version.vdi</multiattach_vdi_file>''' to vbox_job.xml with filename_version.vdi being the name of the parent vdi image in the project directory.
     109Compared to the setup above the app version needs to be configured slightly different:
     110
     111 * The VM image, in !VirtualBox format.
     112  * The logical name "vm_image.vdi" should not be set.
     113  * The copy_file attribute should '''not''' be set to avoid copying the vdi file to the slot directory.
     114  * Should have the sticky attribute set.
     115 * During contextualization/creation of the vdi image this mode must not be used
    99116
    100117=== The Vbox job description file ===
     
    134151   [ <vm_disk_controller_model>LSILogic|LSILogicSAS|BusLogic|IntelAHCI|PIIX3|PIIX4|ICH6|I82078</vm_disk_controller_model> ]
    135152   [ <vm_disk_controller_type>ide|sata|scsi|floppy|sas</vm_disk_controller_type> ]
     153   [ <multiattach_vdi_file>filename_version.vdi</multiattach_vdi_file> ]
    136154</vbox_job>
    137155}}}
     
    208226 '''vm_disk_controller_model''':: Which disk controller model to emulate.
    209227 '''vm_disk_controller_type''':: Which disk controller type to emulate.
     228 '''multiattach_vdi_file''':: Enables multiattach-mode/differencing vdi images to be used.
     229   The filename given here becomes the parent image. It is expected to be in the projects directory.
     230   The filename should have a version number to avoid conflicts when an app version gets updated.
    210231
    211232== Vboxwrapper command-line options ==