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
d2fe49d6
Commit
d2fe49d6
authored
Feb 21, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/qemu: document run_once is gone (but keep it around for compat)
parent
854a8c45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
builder/qemu/builder.go
builder/qemu/builder.go
+3
-6
website/source/docs/builders/qemu.html.markdown
website/source/docs/builders/qemu.html.markdown
+0
-10
No files found.
builder/qemu/builder.go
View file @
d2fe49d6
...
...
@@ -80,6 +80,8 @@ type config struct {
VNCPortMin
uint
`mapstructure:"vnc_port_min"`
VNCPortMax
uint
`mapstructure:"vnc_port_max"`
VMName
string
`mapstructure:"vm_name"`
// TODO(mitchellh): deprecate
RunOnce
bool
`mapstructure:"run_once"`
RawBootWait
string
`mapstructure:"boot_wait"`
...
...
@@ -397,11 +399,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
},
&
stepBootWait
{},
&
stepTypeBootCommand
{},
}
steps
=
append
(
steps
,
&
common
.
StepConnectSSH
{
SSHAddress
:
sshAddress
,
SSHConfig
:
sshConfig
,
...
...
@@ -409,7 +406,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
},
new
(
common
.
StepProvision
),
new
(
stepShutdown
),
)
}
// Setup the state bag
state
:=
new
(
multistep
.
BasicStateBag
)
...
...
website/source/docs/builders/qemu.html.markdown
View file @
d2fe49d6
...
...
@@ -199,16 +199,6 @@ Optional:
By default this is "output-BUILDNAME" where "BUILDNAME" is the name
of the build.
*
`run_once`
(boolean) - When set to true, run_once causes the builder to run
Qemu only once, rather than twice. Normally (default false) the builder
will run Qemu once for an initial OS install, then switch the CDROM device
and boot device for a second run. In that case, Packer does not wait for
SSH connections until the second power up of the VM. This approach is often
necessary in Linux distribution installs. However, in many Windows unattended
installs, the setup handles reboots and dealing with the CDROM as the boot
device. With care, a power-down/power-up setting (run_once is set to false)
could work if the unattended install is set to restart into audit mode.
*
`shutdown_command`
(string) - The command to use to gracefully shut down
the machine once all the provisioning is done. By default this is an empty
string, which tells Packer to just forcefully shut down the machine.
...
...
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