Merge pull request #8098 from bbrala/hyper-v-package-documentation
Hyper-V package documentation
This commit is contained in:
commit
3dae881ddb
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
||||||
o.separator "Options:"
|
o.separator "Options:"
|
||||||
o.separator ""
|
o.separator ""
|
||||||
|
|
||||||
o.on("--base NAME", "Name of a VM in virtualbox to package as a base box") do |b|
|
o.on("--base NAME", "Name of a VM in VirtualBox to package as a base box (VirtualBox Only)") do |b|
|
||||||
options[:base] = b
|
options[:base] = b
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,25 +4,24 @@ page_title: "vagrant package - Command-Line Interface"
|
||||||
sidebar_current: "cli-package"
|
sidebar_current: "cli-package"
|
||||||
description: |-
|
description: |-
|
||||||
The "vagrant package" command is used to package a currently-running
|
The "vagrant package" command is used to package a currently-running
|
||||||
VirtualBox vagrant environment into a reusable Vagrant box.
|
VirtualBox or Hyper-V vagrant environment into a reusable Vagrant box.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
**Command: `vagrant package [name|id]`**
|
**Command: `vagrant package [name|id]`**
|
||||||
|
|
||||||
This packages a currently running _VirtualBox_ environment into a
|
This packages a currently running _VirtualBox_ or _Hyper-V_ environment into a
|
||||||
re-usable [box](/docs/boxes.html). This command can only be used with
|
re-usable [box](/docs/boxes.html). This command can only be used with
|
||||||
other [providers](/docs/providers/) based on the provider implementation
|
other [providers](/docs/providers/) based on the provider implementation
|
||||||
and if the provider supports it. A future version of Vagrant will
|
and if the provider supports it.
|
||||||
address packaging boxes for other providers. Until then, they must
|
|
||||||
be made by hand.
|
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
* `--base NAME` - Instead of packaging a VirtualBox machine that Vagrant
|
* `--base NAME` - Instead of packaging a VirtualBox machine that Vagrant
|
||||||
manages, this will package a VirtualBox machine that VirtualBox manages.
|
manages, this will package a VirtualBox machine that VirtualBox manages.
|
||||||
`NAME` should be the name or UUID of the machine from the VirtualBox GUI.
|
`NAME` should be the name or UUID of the machine from the VirtualBox GUI.
|
||||||
|
Currently this option is only available for VirtualBox.
|
||||||
|
|
||||||
* `--output NAME` - The resulting package will be saved as `NAME`. By default,
|
* `--output NAME` - The resulting package will be saved as `NAME`. By default,
|
||||||
it will be saved as `package.box`.
|
it will be saved as `package.box`.
|
||||||
|
|
|
@ -28,12 +28,6 @@ However, the IP address of the machine will be reported as part of
|
||||||
the `vagrant up`, and you can use that IP address as if it were
|
the `vagrant up`, and you can use that IP address as if it were
|
||||||
a host only network.
|
a host only network.
|
||||||
|
|
||||||
## Packaging
|
|
||||||
|
|
||||||
Vagrant does not implement the `vagrant package` command for Hyper-V
|
|
||||||
yet, though this should be fairly straightforward to add in a Vagrant
|
|
||||||
release in the near future.
|
|
||||||
|
|
||||||
## Snapshots
|
## Snapshots
|
||||||
|
|
||||||
Restoring snapshot VMs using `vagrant snapshot pop` or
|
Restoring snapshot VMs using `vagrant snapshot pop` or
|
||||||
|
|
Loading…
Reference in New Issue