Xenserver PXE boot

Hey there, Just started using foreman and I had a question about using it
to deploy Xenserver. Anyone done this successfully? I see there are
templates…

From the various issues I've browsed, I can see it supports it through the
pxe and the answefile.

I am also wondering if I can just host the ISO on http on a server
somewhere and pull from that? And does the Smart proxy auto-cache it from
that point on?

I browsed the documentation and there was no clear way on how to approach
this but seeing the templates is exciting.

I am happy to contribute documentation to make it clear.

Definitely possible, and yes, it will work to pull in and sync the OS to
your proxies. Are you using Katello as well?

It should be noted it will only work with xenserver >7.

Let me throw together some notes when I get into the office and Ill share
:slight_smile:

··· On Mar 24, 2017 03:54, wrote:

Hey there, Just started using foreman and I had a question about using it
to deploy Xenserver. Anyone done this successfully? I see there are
templates…

From the various issues I’ve browsed, I can see it supports it through the
pxe and the answefile.

I am also wondering if I can just host the ISO on http on a server
somewhere and pull from that? And does the Smart proxy auto-cache it from
that point on?

I browsed the documentation and there was no clear way on how to approach
this but seeing the templates is exciting.

I am happy to contribute documentation to make it clear.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Sorry! I almost forgot about this!

Basically what you need to do is extract the ISO to a directory inside your
HTML root on some server. Then, create a file inside it called .treeinfo

This file is essentially what pulp uses to figure out what the KS tree for
an operating system is. It'll only work with XenServer 7 right now because
XenServer 6 does not follow the normal KStree guidelines.

This is what I have in my .treeinfo:

[platform]
name = XCP
version = 2.1.0

[branding]
name = XenServer
version = 7.0.0

[general]
name = XenServer-7
family = XenServer
timestamp = 1449700442.21
variant =
version = 7
packagedir =
arch = x86_64

[images-x86_64]
kernel = boot/vmlinuz
initrd = install.img
boot.iso = boot/xen.gz

[images-xen]
kernel = boot/vmlinuz
initrd = install.img
boot.iso = boot/xen.gz

··· On Fri, Mar 24, 2017 at 7:47 AM Neil Hanlon wrote:

Definitely possible, and yes, it will work to pull in and sync the OS to
your proxies. Are you using Katello as well?

It should be noted it will only work with xenserver >7.

Let me throw together some notes when I get into the office and Ill share
:slight_smile:

On Mar 24, 2017 03:54, seankloeckner@gmail.com wrote:

Hey there, Just started using foreman and I had a question about using it
to deploy Xenserver. Anyone done this successfully? I see there are
templates…

From the various issues I’ve browsed, I can see it supports it through the
pxe and the answefile.

I am also wondering if I can just host the ISO on http on a server
somewhere and pull from that? And does the Smart proxy auto-cache it from
that point on?

I browsed the documentation and there was no clear way on how to approach
this but seeing the templates is exciting.

I am happy to contribute documentation to make it clear.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks for the reply Neil.

Yes, what you described helped a lot. It was only necessary to host the ISO
and extract it to the root of an apache server. I did not need to modify
anything further.

I tried with 6.5 and it seemed to work just fine. We are not using 7 yet.

··· On Friday, March 24, 2017 at 1:52:51 PM UTC-7, Neil Hanlon wrote: > > Sorry! I almost forgot about this! > > Basically what you need to do is extract the ISO to a directory inside > your HTML root on some server. Then, create a file inside it called > .treeinfo > > This file is essentially what pulp uses to figure out what the KS tree for > an operating system is. It'll only work with XenServer 7 right now because > XenServer 6 does not follow the normal KStree guidelines. > > This is what I have in my .treeinfo: > > [platform] > name = XCP > version = 2.1.0 > > [branding] > name = XenServer > version = 7.0.0 > > [general] > name = XenServer-7 > family = XenServer > timestamp = 1449700442.21 > variant = > version = 7 > packagedir = > arch = x86_64 > > [images-x86_64] > kernel = boot/vmlinuz > initrd = install.img > boot.iso = boot/xen.gz > > [images-xen] > kernel = boot/vmlinuz > initrd = install.img > boot.iso = boot/xen.gz > > > On Fri, Mar 24, 2017 at 7:47 AM Neil Hanlon > wrote: > >> Definitely possible, and yes, it will work to pull in and sync the OS to >> your proxies. Are you using Katello as well? >> >> It should be noted it will only work with xenserver >7. >> >> Let me throw together some notes when I get into the office and Ill share >> :) >> >> On Mar 24, 2017 03:54, <seankl...@gmail.com > wrote: >> >>> Hey there, Just started using foreman and I had a question about using >>> it to deploy Xenserver. Anyone done this successfully? I see there are >>> templates... >>> >>> From the various issues I've browsed, I can see it supports it through >>> the pxe and the answefile. >>> >>> I am also wondering if I can just host the ISO on http on a server >>> somewhere and pull from that? And does the Smart proxy auto-cache it from >>> that point on? >>> >>> I browsed the documentation and there was no clear way on how to >>> approach this but seeing the templates is exciting. >>> >>> I am happy to contribute documentation to make it clear. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to foreman-user...@googlegroups.com . >>> To post to this group, send email to forema...@googlegroups.com >>> . >>> Visit this group at https://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >>