I'm not sure how you would do that, it's likely easy to tunnel kvm with
some extra qemu parameters but Packer also uses qemu-img which I think only
works with local files.

On positive side is that packer is just a statically linked binary so you
can easily create a script that you execute over ssh that uploads any
source files, downloads packer, executes it, and export any artifact, and
finally cleans up.

// Rickard

PS. If you in detail could describe how to execute qemu towards a remote
kvm host it might be worth opening a feature request and someone might
implement it.

On Wed, Aug 29, 2018, 23:32 Miguel Baquero <[email protected]> wrote:

> Hi,
> Is there any way to run Packer inside a VM without using nested
> virtualization or mounting a KVM host socket directory to it?
> I would like not to have to install anything on the bare wire host, just
> QEMU and the virtualization host packages. I'm using CentOS for the VM
> hosts and guests. CentOS doesn't support p9 FS and configuring nfs on the
> KVM is invasive to me.
> Any help would be appreciated.
> Thank you.
>
> --
> 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/a8c080ee-88fb-408b-b133-690e0f695481%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/a8c080ee-88fb-408b-b133-690e0f695481%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CALz9Rt-StHnTeTWnBxmvNp%3DY_JWk-EMSS1oJ_ComCt%2BUFjx%3Dkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to