Switch to using a combination of the GetVNCPort step and the ForwardPortOverSSH step.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
This commit is contained in:
Rob Dobson 2014-11-18 18:49:02 +00:00
parent 16a8be4fb0
commit 269ec2f3c9

View File

@ -343,7 +343,14 @@ func (self *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (pa
// new(stepUploadIso),
new(stepCreateInstance),
new(stepStartVmPaused),
new(stepForwardVncPortOverSsh),
new(stepGetVNCPort),
&stepForwardPortOverSSH{
RemotePort: instanceVNCPort,
RemoteDest: instanceVNCIP,
HostPortMin: self.config.HostPortMin,
HostPortMax: self.config.HostPortMax,
ResultKey: "local_vnc_port",
},
new(stepBootWait),
new(stepTypeBootCommand),
new(stepWait),