Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

vmctl provision

Re-run provisioners on running VMs from VMFile.kdl.

Synopsis

vmctl provision [OPTIONS]

Options

OptionTypeDefaultDescription
--filepathPath to VMFile.kdl (auto-discovered if omitted)
--namestringOnly provision a specific VM

Details

Re-runs all provision steps defined in the VMFile on already-running VMs. The VM must be running and have an ssh block in the VMFile.

vmctl waits up to 120 seconds for SSH to become available, then runs each provisioner in sequence, streaming output to the terminal and logging to provision.log.

Useful for iterating on provision scripts without recreating the VM.

Examples

# Re-provision all VMs
vmctl provision

# Re-provision a specific VM
vmctl provision --name builder

See Also

vmctl up, vmctl reload