Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
c4ae1158
Commit
c4ae1158
authored
Dec 04, 2013
by
Phil Fenstermacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed error message and docs to match code - qemu-img options are qcow2 and raw
parent
32b480a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
builder/qemu/builder.go
builder/qemu/builder.go
+1
-1
website/source/docs/builders/qemu.html.markdown
website/source/docs/builders/qemu.html.markdown
+1
-1
No files found.
builder/qemu/builder.go
View file @
c4ae1158
...
...
@@ -217,7 +217,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
if
!
(
b
.
config
.
Format
==
"qcow2"
||
b
.
config
.
Format
==
"raw"
)
{
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"
)
{
...
...
website/source/docs/builders/qemu.html.markdown
View file @
c4ae1158
...
...
@@ -115,7 +115,7 @@ Optional:
commands or kickstart type scripts must have proper adjustments for
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".
*
`headless`
(bool) - Packer defaults to building virtual machines by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment