Packer for Xenserver

387 views
Skip to first unread message

Kiran

unread,
Jun 6, 2018, 12:43:27 PM6/6/18
to Packer
Hello there,

I want to use packer to create images for XenServer.
I see that there is a packer builder for Xenserver available at: https://github.com/xenserver/packer-builder-xenserver

The instructions at the above github link ask us to install and build a development version of packer.
Is it absolutely necessary to build a development version of packer? Or can i just install packer for my windows environment and try to build the packer-builder for xenserver?

Also, has anyone been successful with building packer on Windows 10 x64 environments?

Regards,
Kiran Hegde

Rickard von Essen

unread,
Jun 6, 2018, 2:10:11 PM6/6/18
to packe...@googlegroups.com
I'm pretty sure you should be fine with just installing the latest version of Packer (1.2.4) and then skip directly to https://github.com/xenserver/packer-builder-xenserver#compile-the-plugin

The plugin looks a bit dated, so check issues and PR's if you have any problems. It should be possible to build on Win 10 even though the docs is mostly for ~nix (https://github.com/hashicorp/packer/blob/master/.github/CONTRIBUTING.md#setting-up-go-to-work-on-packer). If you have troubles just get back here, there are people on the list that develop on Windows.

// Rickard

--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/42db5521-6d52-4f9b-8a6b-4856170abac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kiran

unread,
Jun 8, 2018, 9:58:59 AM6/8/18
to Packer
Hello Rickard,

You were right. I just downloaded packer and i was able to build the tool.
It seems to me that its not really required to have packer available on the system to be able to build. I just followed the instructions in the below link of yours and the builders for xenserver were created.

My other question is, packer is just an executable and i can copy it anywhere on the system. Is that a correct understanding?
How does it go about locating the Xenserver builders? Should the builders be available in a certain path?

Also, do you know of any examples of building XenServer images hosting Windows using Packer? Are there any templates that i could refer to?

Regards,
Kiran Hegde

On Wednesday, June 6, 2018 at 11:40:11 PM UTC+5:30, Rickard von Essen wrote:
I'm pretty sure you should be fine with just installing the latest version of Packer (1.2.4) and then skip directly to https://github.com/xenserver/packer-builder-xenserver#compile-the-plugin

The plugin looks a bit dated, so check issues and PR's if you have any problems. It should be possible to build on Win 10 even though the docs is mostly for ~nix (https://github.com/hashicorp/packer/blob/master/.github/CONTRIBUTING.md#setting-up-go-to-work-on-packer). If you have troubles just get back here, there are people on the list that develop on Windows.

// Rickard
On 6 June 2018 at 18:43, Kiran <kirann...@gmail.com> wrote:
Hello there,

I want to use packer to create images for XenServer.
I see that there is a packer builder for Xenserver available at: https://github.com/xenserver/packer-builder-xenserver

The instructions at the above github link ask us to install and build a development version of packer.
Is it absolutely necessary to build a development version of packer? Or can i just install packer for my windows environment and try to build the packer-builder for xenserver?

Also, has anyone been successful with building packer on Windows 10 x64 environments?

Regards,
Kiran Hegde

--
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 packer-tool...@googlegroups.com.

Rickard von Essen

unread,
Jun 8, 2018, 10:45:20 AM6/8/18
to packe...@googlegroups.com
These templates should be good:

Yes packer is a statically linked binary that you can put anywhere.

Packer looks up plugins according to this:

Reply all
Reply to author
Forward
0 new messages