You should use reboot in your kickstart file.

The general way packer is supposed to work is:
1) boot strap installation with kickstart/preseed
2) Reboot with sshd enabled and the user used by packer to connect setup.
3) After the reboot packer connects over ssh and run every provisioner
4) Packer runs the shutdown_command and after that packages the VM into an
image.

For some high quality reference templates see [1]. Generally it's
recommended to start with a known working packer template and then evolve
it to what you need.

[1]
https://github.com/chef/bento/blob/master/centos/centos-7.6-x86_64.json#L132-L151

On Thu, May 30, 2019 at 1:00 AM Mike <[email protected]> wrote:

> I changed reboot to shutdown. Now qemu exits but Packer continues,
> constantly logging about SSH.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/d0973d72-9057-44a1-957a-a6b94eab8aa7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8DKa6-%3DcoqJFrRimkmM2Ygs%3D%3DdqLHp96R1fn35Ss1e5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to