Skip to main content

Module boxes

Module boxes 

Source
Expand description

Vagrant’s boxes on this computer: which are held for a provider and this CPU (vagrant box list), and a box added (vagrant box add), its download handed back for a caller that keeps a record of its downloads, or a box file saved here added under a name (add_file: a run’s machine saved by Running::package). What uses a box (a self-test’s, a project’s) picks it.

Functions§

add_box
Adds box name for p (vagrant box add --force), each line Vagrant prints said to line; past half an hour it is given up on. The box as added, for a caller that keeps a record of its downloads (none when its version can’t be read back).
add_file
Adds the box file file as box name for p (vagrant box add --name <name> <file> --force), each line Vagrant prints said to line: a run’s machine saved by Running::package, which a later run boots by that name. The box as added, for a caller that keeps a record of what it added (none when its version can’t be read back).
box_provider
The Vagrant box provider a box is added and listed under for p. QEMU is the exception: the vagrant-qemu plugin boots a libvirt-format box’s qcow2 directly, so its box is stored as libvirt, never qemu. generic/alpine319’s own “qemu” box is a libvirt image mislabeled (box add --provider qemu fetches it and then rejects it), while its libvirt box bakes in the vagrant user and key, so the test VM gets SSH without cloud-init (which vagrant-qemu does not seed).
held_here
The version of box name Vagrant holds here for p and this computer’s CPU (vagrant box list); none when it holds none, or Vagrant can’t be read.