Changed error message and docs to match code - qemu-img options are qcow2 and raw
This commit is contained in:
parent
32b480a263
commit
c4ae11589d
|
@ -217,7 +217,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
||||||
|
|
||||||
if !(b.config.Format == "qcow2" || b.config.Format == "raw") {
|
if !(b.config.Format == "qcow2" || b.config.Format == "raw") {
|
||||||
errs = packer.MultiErrorAppend(
|
errs = packer.MultiErrorAppend(
|
||||||
errs, errors.New("invalid format, only 'qcow2' or 'img' are allowed"))
|
errs, errors.New("invalid format, only 'qcow2' or 'raw' are allowed"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen") {
|
if !(b.config.Accelerator == "kvm" || b.config.Accelerator == "xen") {
|
||||||
|
|
|
@ -115,7 +115,7 @@ Optional:
|
||||||
commands or kickstart type scripts must have proper adjustments for
|
commands or kickstart type scripts must have proper adjustments for
|
||||||
resulting device names. The Qemu builder uses "virtio" by default.
|
resulting device names. The Qemu builder uses "virtio" by default.
|
||||||
|
|
||||||
* `format` (string) - Either "qcow2" or "img", this specifies the output
|
* `format` (string) - Either "qcow2" or "raw", this specifies the output
|
||||||
format of the virtual machine image. This defaults to "qcow2".
|
format of the virtual machine image. This defaults to "qcow2".
|
||||||
|
|
||||||
* `headless` (bool) - Packer defaults to building virtual machines by
|
* `headless` (bool) - Packer defaults to building virtual machines by
|
||||||
|
|
Loading…
Reference in New Issue