diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index 7f54adae5..d664dade9 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -217,6 +217,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { } errs = packer.MultiErrorAppend(errs, b.config.FloppyConfig.Prepare(&b.config.ctx)...) + errs = packer.MultiErrorAppend(errs, b.config.VNCConfig.Prepare(&b.config.ctx)...) if b.config.NetDevice == "" { b.config.NetDevice = "virtio-net" diff --git a/builder/qemu/step_type_boot_command.go b/builder/qemu/step_type_boot_command.go index da3eb48aa..a21256b6b 100644 --- a/builder/qemu/step_type_boot_command.go +++ b/builder/qemu/step_type_boot_command.go @@ -48,7 +48,7 @@ func (s *stepTypeBootCommand) Run(ctx context.Context, state multistep.StateBag) } // Wait the for the vm to boot. - if int64(config.BootConfig.BootWait) > 0 { + if int64(config.BootWait) > 0 { ui.Say(fmt.Sprintf("Waiting %s for boot...", config.BootWait.String())) select { case <-time.After(config.BootWait):