Boot en pxe stuck after

HI,

I just try to create a build from foreman and got stuck when the systems
boots in pxe. I try to review different fas and solutions and could not a
way to make it work;

Currently i am using to Vm under a XENSERVER6.2; One install in ubuntu
14.04 with foreman installed on it. On the foreman install dhcp, and tfpt
proxy are activated.

I try to launched an unattended install on another Vm after defining the
profile under foreman (groups, tempates, host…). The Vm boots I got the
PXE menu but then nothing happen, it just stuck for a moment and then
restart.

I try to investigate the booting processus and read through foreman
documentation and boot file. I found out that the provision file for
installation is available
at https://foremantest.intra.rdmo.com/unattended/provision?hostname=<name
of host> but nothing at "http:" instead of https.
I also edited the pxe boot files nad look at the url it was lloking for
"http://foremantest.intra.rdmo.com:80/unattended/provision?token=7d580349-968b-4752-ae4c-8d9810eb7354",
and again when I type it in a browser or curl I got nothing.

Do you know how to fix it and explain me where I misconfigured my instance.

Thanks for the help.
Joseph

Hello,

first of all make sure your host is in build mode. You should see
"Calcel build" button when in build mode. Go ahead and calcel it and put
it into build mode again.

Once in build mode, investigate your TFTP server, you should see MAC
menu entry deployed (a file with menu for this particular MAC).
Investigate what is there.

Also make sure you have your smart-proxy defined for the network you
want to build from - you need TFTP and DHCP features (DNS is not
required for this). Also make sure the proxy is assigned to the network
and subnet you assigned to the host.

Normally, your host should get it's own menu where OS installer is
defined together with token and so the installation carry on.

LZ

··· On Thu, Jun 26, 2014 at 11:44:59PM -0700, joseph-andre Guaragna wrote: > HI, > > I just try to create a build from foreman and got stuck when the systems > boots in pxe. I try to review different fas and solutions and could not a > way to make it work; > > Currently i am using to Vm under a XENSERVER6.2; One install in ubuntu > 14.04 with foreman installed on it. On the foreman install dhcp, and tfpt > proxy are activated. > > I try to launched an unattended install on another Vm after defining the > profile under foreman (groups, tempates, host..). The Vm boots I got the > PXE menu but then nothing happen, it just stuck for a moment and then > restart. > > I try to investigate the booting processus and read through foreman > documentation and boot file. I found out that the provision file for > installation is available > at https://foremantest.intra.rdmo.com/unattended/provision?hostname= of host> but nothing at "http:" instead of https. > I also edited the pxe boot files nad look at the url it was lloking for > "http://foremantest.intra.rdmo.com:80/unattended/provision?token=7d580349-968b-4752-ae4c-8d9810eb7354", > and again when I type it in a browser or curl I got nothing. > > Do you know how to fix it and explain me where I misconfigured my instance. > > Thanks for the help. > Joseph > > -- > 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 http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Hi I try to cancel the build and it tolds me "failed to cancel build for
XXX". I tried to destroy and recreate the host the same.

As for tftp server i found my mac addess in the pxelinux.cfg; I edited the
file and got the contact url. I tryed to contact it via webbrower and curl
and no answer.

th e url
is url=http://foremantest.intra.rdmo.com:80/unattended/provision?token=bb5f6b85-6ae3-4b90-a07e-c114cc24babc.
When I look through foreman interface I can see the template under host
settings, and can acces it in https, but nothing with the url refer in the
tftp part.

AS for smart proxies i have tftp and dhcp and a subnet especially
configured in the dhcp. The dhcp is working fine I tried with another Vm,
it got the right IP, routes could get on the other networks, even internet.
Thus for me It is not a networking issue.
I created a host attached os, templates (affected via templates
provisioning), subnets.

the unattended install start, load the kernel (initrd.gz) and then get
stuck and reboot after a fex seconds.

Th eonly thing in error is the build mode. I even try to copy paster the
template build from the template view of the host configuration and copy it
to a file transfert it to another web server that i can easily reach. I
corected the tftp file (mac addresess related) to point the new web server
instead of foreman (url=http://webserver/ubuntu.seed). And stil it does not
work.

The only error i can think of is bad redirection or empty seed file.leaving
the build error as a primary suspect.

··· Le vendredi 27 juin 2014 10:36:23 UTC+2, Lukas Zapletal a écrit : > > Hello, > > first of all make sure your host is in build mode. You should see > "Calcel build" button when in build mode. Go ahead and calcel it and put > it into build mode again. > > Once in build mode, investigate your TFTP server, you should see MAC > menu entry deployed (a file with menu for this particular MAC). > Investigate what is there. > > Also make sure you have your smart-proxy defined for the network you > want to build from - you need TFTP and DHCP features (DNS is not > required for this). Also make sure the proxy is assigned to the network > and subnet you assigned to the host. > > Normally, your host should get it's own menu where OS installer is > defined together with token and so the installation carry on. > > LZ > > On Thu, Jun 26, 2014 at 11:44:59PM -0700, joseph-andre Guaragna wrote: > > HI, > > > > I just try to create a build from foreman and got stuck when the systems > > boots in pxe. I try to review different fas and solutions and could not > a > > way to make it work; > > > > Currently i am using to Vm under a XENSERVER6.2; One install in ubuntu > > 14.04 with foreman installed on it. On the foreman install dhcp, and > tfpt > > proxy are activated. > > > > I try to launched an unattended install on another Vm after defining the > > profile under foreman (groups, tempates, host..). The Vm boots I got the > > PXE menu but then nothing happen, it just stuck for a moment and then > > restart. > > > > I try to investigate the booting processus and read through foreman > > documentation and boot file. I found out that the provision file for > > installation is available > > at https://foremantest.intra.rdmo.com/unattended/provision?hostname= > > of host> but nothing at "http:" instead of https. > > I also edited the pxe boot files nad look at the url it was lloking for > > " > http://foremantest.intra.rdmo.com:80/unattended/provision?token=7d580349-968b-4752-ae4c-8d9810eb7354", > > > and again when I type it in a browser or curl I got nothing. > > > > Do you know how to fix it and explain me where I misconfigured my > instance. > > > > Thanks for the help. > > Joseph > > > > -- > > 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 http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > Later, > > Lukas "lzap" Zapletal > irc: lzap #theforeman >

Hello,

> As for tftp server i found my mac addess in the pxelinux.cfg; I edited the
> file and got the contact url. I tryed to contact it via webbrower and curl
> and no answer.

No answer or 405 or other HTTP code? This is important.

If you don't have any answer, check our network and firewall settings.
Foreman must be available via http.

> th e url
> is url=http://foremantest.intra.rdmo.com:80/unattended/provision?token=bb5f6b85-6ae3-4b90-a07e-c114cc24babc.
> When I look through foreman interface I can see the template under host
> settings, and can acces it in https, but nothing with the url refer in the
> tftp part.

Https is also valid, it is used for example when you click on Template
in the UI.

> Th eonly thing in error is the build mode. I even try to copy paster the
> template build from the template view of the host configuration and copy it
> to a file transfert it to another web server that i can easily reach. I
> corected the tftp file (mac addresess related) to point the new web server
> instead of foreman (url=http://webserver/ubuntu.seed). And stil it does not
> work.

You also need to edit the seed file and change media location.

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Finally I made it work.
I had problem on my server. apparmor was bloquing some of the traffic

thanks for the help.

··· Le lundi 30 juin 2014 09:15:35 UTC+2, Lukas Zapletal a écrit : > > Hello, > > > As for tftp server i found my mac addess in the pxelinux.cfg; I edited > the > > file and got the contact url. I tryed to contact it via webbrower and > curl > > and no answer. > > No answer or 405 or other HTTP code? This is important. > > If you don't have any answer, check our network and firewall settings. > Foreman must be available via http. > > > th e url > > is url= > http://foremantest.intra.rdmo.com:80/unattended/provision?token=bb5f6b85-6ae3-4b90-a07e-c114cc24babc. > > > When I look through foreman interface I can see the template under host > > settings, and can acces it in https, but nothing with the url refer in > the > > tftp part. > > Https is also valid, it is used for example when you click on Template > in the UI. > > > Th eonly thing in error is the build mode. I even try to copy paster the > > template build from the template view of the host configuration and copy > it > > to a file transfert it to another web server that i can easily reach. I > > corected the tftp file (mac addresess related) to point the new web > server > > instead of foreman (url=http://webserver/ubuntu.seed). And stil it does > not > > work. > > You also need to edit the seed file and change media location. > > -- > Later, > > Lukas "lzap" Zapletal > irc: lzap #theforeman >