PXE boot failing while creating VM

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have created the required
hostgroups.

I am clueless what could be the issue right now.

Regards,
Kevin

Hi All,

I am really unable to figure out the correct steps to do the
Provisioning templates.

I just want to install a VM on a KVM host and its booting via gPXE.

When i create a new host i just get "Sorry but no templates were
configured" when i click on Provisioning templates button in the OS
tab. I am unable to get the exact sequence how do i go about.

Anyone who can has able to figure it out?

Regards,
Kevin

I am unable to get the correct

··· On Feb 16, 6:12 pm, linuxbsdfreak wrote: > Hi All, > > I am trying to deploy a KVM VM via foreman and i see the following in > the console of the virt-manager > > TFTP Prefix: > Unable to locate configuration file > > In provisioning template i am using Kickstart default gPXE and not > Kickstart default PXElinux. Is that right ? > > I am trying to install a Centos6.2 VM. and i have created the required > hostgroups. > > I am clueless what could be the issue right now. > > Regards, > Kevin

> Hi All,
>
> I am really unable to figure out the correct steps to do the
> Provisioning templates.
Sometimes, if the list is not responsive enough, IRC is probably the
better place to ask questions :slight_smile:

>
> I just want to install a VM on a KVM host and its booting via gPXE.

Sounds reasonable :slight_smile:
>
> When i create a new host i just get "Sorry but no templates were
> configured" when i click on Provisioning templates button in the OS
> tab. I am unable to get the exact sequence how do i go about.
>
> Anyone who can has able to figure it out?

First, make sure you are not hitting Feature #1294: Build should not require TFTP if using gPXE - Foreman.

Secondly, did you define the Provisioning Templates? normally, you
would need to:

  1. review the templates, make changes if required.
  2. associate templates to OS's --> to which OS's does this template apply to?
    Now you can choose either 3 or 4:
  3. Assign per template which Hostgroup or Env (or Both) will apply to.
  4. Define a default template in the OS settings.

Hope this helps,
Ohad

··· On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote:

Regards,
Kevin

I am unable to get the correct

On Feb 16, 6:12 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have created the required
hostgroups.

I am clueless what could be the issue right now.

Regards,
Kevin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi Ohad,

Sorry Ohad. May be i am not getting the process correctly. I am doing
the following:

I do More —> Operating systems --> Select the standard Stuff. When i
go to Templates its tells me No templates found! you probably need to
configure your templates first.

I click on the link and it opens the Provision Templates link. I see
many more templates along with the below

Kickstart default gPXE
Kickstart default PXElinux
PXE Default File

Which one do i select for a Virtulization kicksrtart install?

For Eg: I selected

Kickstart default gPXE --> Edit Config Template --> Template Kind is
gPXE(Do i select something else) , Selected the check box Centos 6.2 –
> It saves

Then i again go to Edit Operating System --> Templates --> gPXE
(Kickstart Default gPXE). Submit.

Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and
save

Then i create a Host --> OS tab --> I click on Provisioning Templates
it shows me gPXE Template — Kickstart default gPXE and build and it
starts the build and get the IP then shows me

"Unable to locate configuration file"

Boot failed: press a key to retry, or wait for reset.

Is the process correct or am i doing something wrong.

Regards,
Kevin

··· On Feb 19, 8:31 am, Ohad Levy wrote: > On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > > Hi All, > > > I am really unable to figure out the correct steps to do the > > Provisioning templates. > > Sometimes, if the list is not responsive enough, IRC is probably the > better place to ask questions :-) > > > > > I just want to install a VM on a KVM host and its booting via gPXE. > > Sounds reasonable :) > > > > > When i create a new host i just get "Sorry but no templates were > > configured" when i click on Provisioning templates button in the OS > > tab. I am unable to get the exact sequence how do i go about. > > > Anyone who can has able to figure it out? > > First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > Secondly, did you define the Provisioning Templates? normally, you > would need to: > 1. review the templates, make changes if required. > 2. associate templates to OS's --> to which OS's does this template apply to? > Now you can choose either 3 or 4: > 3. Assign per template which Hostgroup or Env (or Both) will apply to. > 4. Define a default template in the OS settings. > > Hope this helps, > Ohad > > > > > > > > > > > Regards, > > Kevin > > > I am unable to get the correct > > > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > >> Hi All, > > >> I am trying to deploy a KVM VM via foreman and i see the following in > >> the console of the virt-manager > > >> TFTP Prefix: > >> Unable to locate configuration file > > >> In provisioning template i am using Kickstart default gPXE and not > >> Kickstart default PXElinux. Is that right ? > > >> I am trying to install a Centos6.2 VM. and i have created the required > >> hostgroups. > > >> I am clueless what could be the issue right now. > > >> Regards, > >> Kevin > > > -- > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

Just to add to the above. foreman is a centos6 VM running on the
same KVM host which is a fedora 16 host with bridging br0 setup and
has an internal net of 192.168.122.0 through which the IPs are
assigned.

Regards,
kevin

··· On Feb 20, 6:17 pm, linuxbsdfreak wrote: > Hi Ohad, > > Sorry Ohad. May be i am not getting the process correctly. I am doing > the following: > > I do More ---> Operating systems --> Select the standard Stuff. When i > go to Templates its tells me No templates found! you probably need to > configure your templates first. > > I click on the link and it opens the Provision Templates link. I see > many more templates along with the below > > Kickstart default gPXE > Kickstart default PXElinux > PXE Default File > > Which one do i select for a Virtulization kicksrtart install? > > For Eg: I selected > > Kickstart default gPXE --> Edit Config Template --> Template Kind is > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > > > It saves > > Then i again go to Edit Operating System --> Templates --> gPXE > (Kickstart Default gPXE). Submit. > > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > save > > Then i create a Host --> OS tab --> I click on Provisioning Templates > it shows me gPXE Template --- Kickstart default gPXE and build and it > starts the build and get the IP then shows me > > "Unable to locate configuration file" > > Boot failed: press a key to retry, or wait for reset. > > Is the process correct or am i doing something wrong. > > Regards, > Kevin > > On Feb 19, 8:31 am, Ohad Levy wrote: > > > > > On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > > > Hi All, > > > > I am really unable to figure out the correct steps to do the > > > Provisioning templates. > > > Sometimes, if the list is not responsive enough, IRC is probably the > > better place to ask questions :-) > > > > I just want to install a VM on a KVM host and its booting via gPXE. > > > Sounds reasonable :) > > > > When i create a new host i just get "Sorry but no templates were > > > configured" when i click on Provisioning templates button in the OS > > > tab. I am unable to get the exact sequence how do i go about. > > > > Anyone who can has able to figure it out? > > > First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > > Secondly, did you define the Provisioning Templates? normally, you > > would need to: > > 1. review the templates, make changes if required. > > 2. associate templates to OS's --> to which OS's does this template apply to? > > Now you can choose either 3 or 4: > > 3. Assign per template which Hostgroup or Env (or Both) will apply to. > > 4. Define a default template in the OS settings. > > > Hope this helps, > > Ohad > > > > Regards, > > > Kevin > > > > I am unable to get the correct > > > > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > > >> Hi All, > > > >> I am trying to deploy a KVM VM via foreman and i see the following in > > >> the console of the virt-manager > > > >> TFTP Prefix: > > >> Unable to locate configuration file > > > >> In provisioning template i am using Kickstart default gPXE and not > > >> Kickstart default PXElinux. Is that right ? > > > >> I am trying to install a Centos6.2 VM. and i have created the required > > >> hostgroups. > > > >> I am clueless what could be the issue right now. > > > >> Regards, > > >> Kevin > > > > -- > > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > > To post to this group, send email to foreman-users@googlegroups.com. > > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

> Hi Ohad,
>
> Sorry Ohad. May be i am not getting the process correctly. I am doing
> the following:
>
> I do More —> Operating systems --> Select the standard Stuff. When i
> go to Templates its tells me No templates found! you probably need to
> configure your templates first.
>
> I click on the link and it opens the Provision Templates link. I see
> many more templates along with the below
>
> Kickstart default gPXE
> Kickstart default PXElinux
> PXE Default File
>
> Which one do i select for a Virtulization kicksrtart install?
>
> For Eg: I selected
>
> Kickstart default gPXE --> Edit Config Template --> Template Kind is
> gPXE(Do i select something else) , Selected the check box Centos 6.2 –
>> It saves
>
> Then i again go to Edit Operating System --> Templates --> gPXE
> (Kickstart Default gPXE). Submit.
>
> Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and
> save
>
> Then i create a Host --> OS tab --> I click on Provisioning Templates
> it shows me gPXE Template — Kickstart default gPXE and build and it
> starts the build and get the IP then shows me
>
> "Unable to locate configuration file"

where do you get that response from?

in order to debug, can you try:
once your gpxe starts, press ctrl-b to enter its prompt and type

dhcp net0
kernel http://foreman/unattended/gPXE
autoboot

does that work?

··· On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote:

Boot failed: press a key to retry, or wait for reset.

Is the process correct or am i doing something wrong.

Regards,
Kevin

On Feb 19, 8:31 am, Ohad Levy ohadl...@gmail.com wrote:

On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am really unable to figure out the correct steps to do the
Provisioning templates.

Sometimes, if the list is not responsive enough, IRC is probably the
better place to ask questions :slight_smile:

I just want to install a VM on a KVM host and its booting via gPXE.

Sounds reasonable :slight_smile:

When i create a new host i just get “Sorry but no templates were
configured” when i click on Provisioning templates button in the OS
tab. I am unable to get the exact sequence how do i go about.

Anyone who can has able to figure it out?

First, make sure you are not hittinghttp://theforeman.org/issues/1294.

Secondly, did you define the Provisioning Templates? normally, you
would need to:

  1. review the templates, make changes if required.
  2. associate templates to OS’s --> to which OS’s does this template apply to?
    Now you can choose either 3 or 4:
  3. Assign per template which Hostgroup or Env (or Both) will apply to.
  4. Define a default template in the OS settings.

Hope this helps,
Ohad

Regards,
Kevin

I am unable to get the correct

On Feb 16, 6:12 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have created the required
hostgroups.

I am clueless what could be the issue right now.

Regards,
Kevin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)

Green IT and Datacenter Automation Specialist

> Just to add to the above. foreman is a centos6 VM running on the
> same KVM host which is a fedora 16 host with bridging br0 setup and
> has an internal net of 192.168.122.0 through which the IPs are
> assigned.
>
> Regards,
> kevin
>
>> Hi Ohad,
>>
>> Sorry Ohad. May be i am not getting the process correctly. I am doing
>> the following:
>>
>> I do More —> Operating systems --> Select the standard Stuff. When i
>> go to Templates its tells me No templates found! you probably need to
>> configure your templates first.

I think you have to associate the templates to the operating system and then assign them to the hostgroup.

··· On Feb 20, 2012, at 9:36 AM, linuxbsdfreak wrote: > On Feb 20, 6:17 pm, linuxbsdfreak wrote:

I click on the link and it opens the Provision Templates link. I see
many more templates along with the below

Kickstart default gPXE
Kickstart default PXElinux
PXE Default File

Which one do i select for a Virtulization kicksrtart install?

For Eg: I selected

Kickstart default gPXE --> Edit Config Template --> Template Kind is
gPXE(Do i select something else) , Selected the check box Centos 6.2 –

It saves

Then i again go to Edit Operating System --> Templates --> gPXE
(Kickstart Default gPXE). Submit.

Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and
save

Then i create a Host --> OS tab --> I click on Provisioning Templates
it shows me gPXE Template — Kickstart default gPXE and build and it
starts the build and get the IP then shows me

“Unable to locate configuration file”

Boot failed: press a key to retry, or wait for reset.

Is the process correct or am i doing something wrong.

Regards,
Kevin

On Feb 19, 8:31 am, Ohad Levy ohadl...@gmail.com wrote:

On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am really unable to figure out the correct steps to do the
Provisioning templates.

Sometimes, if the list is not responsive enough, IRC is probably the
better place to ask questions :slight_smile:

I just want to install a VM on a KVM host and its booting via gPXE.

Sounds reasonable :slight_smile:

When i create a new host i just get “Sorry but no templates were
configured” when i click on Provisioning templates button in the OS
tab. I am unable to get the exact sequence how do i go about.

Anyone who can has able to figure it out?

First, make sure you are not hittinghttp://theforeman.org/issues/1294.

Secondly, did you define the Provisioning Templates? normally, you
would need to:

  1. review the templates, make changes if required.
  2. associate templates to OS’s --> to which OS’s does this template apply to?
    Now you can choose either 3 or 4:
  3. Assign per template which Hostgroup or Env (or Both) will apply to.
  4. Define a default template in the OS settings.

Hope this helps,
Ohad

Regards,
Kevin

I am unable to get the correct

On Feb 16, 6:12 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have created the required
hostgroups.

I am clueless what could be the issue right now.

Regards,
Kevin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi Ohad,

I get that error after the gPXE gets the DHCP ip.

I get the following after typing at the gpxe prompt

>dhcp net0
DHCP (macid) …ok
>kernel http://192.168.122.26/unattender/gPXE
http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b)

I also did http://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5
and it gives me

Missing template unattended/provision.erb in view path app/views.

I am not sure if i am setting up gPXE correctly. i was following this
document

Regards,
Kevin

Regards,
Kevin

··· On Feb 21, 10:54 am, Ohad Levy wrote: > On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > > Hi Ohad, > > > Sorry Ohad. May be i am not getting the process correctly. I am doing > > the following: > > > I do More ---> Operating systems --> Select the standard Stuff. When i > > go to Templates its tells me No templates found! you probably need to > > configure your templates first. > > > I click on the link and it opens the Provision Templates link. I see > > many more templates along with the below > > > Kickstart default gPXE > > Kickstart default PXElinux > > PXE Default File > > > Which one do i select for a Virtulization kicksrtart install? > > > For Eg: I selected > > > Kickstart default gPXE --> Edit Config Template --> Template Kind is > > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > >> It saves > > > Then i again go to Edit Operating System --> Templates --> gPXE > > (Kickstart Default gPXE). Submit. > > > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > > save > > > Then i create a Host --> OS tab --> I click on Provisioning Templates > > it shows me gPXE Template --- Kickstart default gPXE and build and it > > starts the build and get the IP then shows me > > > "Unable to locate configuration file" > > where do you get that response from? > > in order to debug, can you try: > once your gpxe starts, press ctrl-b to enter its prompt and type > > dhcp net0 > kernelhttp://foreman/unattended/gPXE > autoboot > > does that work? > > > > > > > > > > > Boot failed: press a key to retry, or wait for reset. > > > Is the process correct or am i doing something wrong. > > > Regards, > > Kevin > > > On Feb 19, 8:31 am, Ohad Levy wrote: > >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > >> > Hi All, > > >> > I am really unable to figure out the correct steps to do the > >> > Provisioning templates. > > >> Sometimes, if the list is not responsive enough, IRC is probably the > >> better place to ask questions :-) > > >> > I just want to install a VM on a KVM host and its booting via gPXE. > > >> Sounds reasonable :) > > >> > When i create a new host i just get "Sorry but no templates were > >> > configured" when i click on Provisioning templates button in the OS > >> > tab. I am unable to get the exact sequence how do i go about. > > >> > Anyone who can has able to figure it out? > > >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > >> Secondly, did you define the Provisioning Templates? normally, you > >> would need to: > >> 1. review the templates, make changes if required. > >> 2. associate templates to OS's --> to which OS's does this template apply to? > >> Now you can choose either 3 or 4: > >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > >> 4. Define a default template in the OS settings. > > >> Hope this helps, > >> Ohad > > >> > Regards, > >> > Kevin > > >> > I am unable to get the correct > > >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > >> >> Hi All, > > >> >> I am trying to deploy a KVM VM via foreman and i see the following in > >> >> the console of the virt-manager > > >> >> TFTP Prefix: > >> >> Unable to locate configuration file > > >> >> In provisioning template i am using Kickstart default gPXE and not > >> >> Kickstart default PXElinux. Is that right ? > > >> >> I am trying to install a Centos6.2 VM. and i have created the required > >> >> hostgroups. > > >> >> I am clueless what could be the issue right now. > > >> >> Regards, > >> >> Kevin > > >> > -- > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> > To post to this group, send email to foreman-users@googlegroups.com. > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

> Hi Ohad,
>
> I get that error after the gPXE gets the DHCP ip.
>
> I get the following after typing at the gpxe prompt
>
> >dhcp net0
> DHCP (macid) …ok
> >kernel http://192.168.122.26/unattender/gPXE
> http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b)
~~ note a typo above.

··· On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote:

I also did http://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5
and it gives me

Missing template unattended/provision.erb in view path app/views.

I am not sure if i am setting up gPXE correctly. i was following this
document

https://sites.google.com/site/richardgroux/infrastructure-1/Network/pxe-boot/what-is-gpxe-1

Regards,
Kevin

Regards,
Kevin

On Feb 21, 10:54 am, Ohad Levy ohadl...@gmail.com wrote:

On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

Sorry Ohad. May be i am not getting the process correctly. I am doing
the following:

I do More —> Operating systems --> Select the standard Stuff. When i
go to Templates its tells me No templates found! you probably need to
configure your templates first.

I click on the link and it opens the Provision Templates link. I see
many more templates along with the below

Kickstart default gPXE
Kickstart default PXElinux
PXE Default File

Which one do i select for a Virtulization kicksrtart install?

For Eg: I selected

Kickstart default gPXE --> Edit Config Template --> Template Kind is
gPXE(Do i select something else) , Selected the check box Centos 6.2 –

It saves

Then i again go to Edit Operating System --> Templates --> gPXE
(Kickstart Default gPXE). Submit.

Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and
save

Then i create a Host --> OS tab --> I click on Provisioning Templates
it shows me gPXE Template — Kickstart default gPXE and build and it
starts the build and get the IP then shows me

“Unable to locate configuration file”

where do you get that response from?

in order to debug, can you try:
once your gpxe starts, press ctrl-b to enter its prompt and type

dhcp net0
kernelhttp://foreman/unattended/gPXE
autoboot

does that work?

Boot failed: press a key to retry, or wait for reset.

Is the process correct or am i doing something wrong.

Regards,
Kevin

On Feb 19, 8:31 am, Ohad Levy ohadl...@gmail.com wrote:

On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am really unable to figure out the correct steps to do the
Provisioning templates.

Sometimes, if the list is not responsive enough, IRC is probably the
better place to ask questions :slight_smile:

I just want to install a VM on a KVM host and its booting via gPXE.

Sounds reasonable :slight_smile:

When i create a new host i just get “Sorry but no templates were
configured” when i click on Provisioning templates button in the OS
tab. I am unable to get the exact sequence how do i go about.

Anyone who can has able to figure it out?

First, make sure you are not hittinghttp://theforeman.org/issues/1294.

Secondly, did you define the Provisioning Templates? normally, you
would need to:

  1. review the templates, make changes if required.
  2. associate templates to OS’s --> to which OS’s does this template apply to?
    Now you can choose either 3 or 4:
  3. Assign per template which Hostgroup or Env (or Both) will apply to.
  4. Define a default template in the OS settings.

Hope this helps,
Ohad

Regards,
Kevin

I am unable to get the correct

On Feb 16, 6:12 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have created the required
hostgroups.

I am clueless what could be the issue right now.

Regards,
Kevin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi Ohad,

I did the following

> >dhcp net0
DHCP (macid) …ok
> >kernel http://192.168.122.26:7000/unattended/gPXE
> http://192.168.122.26:7000/unattended/gPXE. …ok
autoboot

Then it says Trying to load: pxelinux.cfg/
Trying to load: pxelinux.cfg/default
unable to load configuration file

Boot failed: press a key to retry , or wait for reset

Regards,
kevin

··· On Feb 21, 12:30 pm, Ohad Levy wrote: > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: > > Hi Ohad, > > > I get that error after the gPXE gets the DHCP ip. > > > I get the following after typing at the gpxe prompt > > > >dhcp net0 > > DHCP (macid) ...ok > > >kernelhttp://192.168.122.26/unattender/gPXE > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) > > ~~ note a typo above. > > > > > > > > > > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 > > and it gives me > > > Missing template unattended/provision.erb in view path app/views. > > > I am not sure if i am setting up gPXE correctly. i was following this > > document > > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... > > > Regards, > > Kevin > > > Regards, > > Kevin > > > On Feb 21, 10:54 am, Ohad Levy wrote: > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > >> > Hi Ohad, > > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing > >> > the following: > > >> > I do More ---> Operating systems --> Select the standard Stuff. When i > >> > go to Templates its tells me No templates found! you probably need to > >> > configure your templates first. > > >> > I click on the link and it opens the Provision Templates link. I see > >> > many more templates along with the below > > >> > Kickstart default gPXE > >> > Kickstart default PXElinux > >> > PXE Default File > > >> > Which one do i select for a Virtulization kicksrtart install? > > >> > For Eg: I selected > > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > >> >> It saves > > >> > Then i again go to Edit Operating System --> Templates --> gPXE > >> > (Kickstart Default gPXE). Submit. > > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > >> > save > > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it > >> > starts the build and get the IP then shows me > > >> > "Unable to locate configuration file" > > >> where do you get that response from? > > >> in order to debug, can you try: > >> once your gpxe starts, press ctrl-b to enter its prompt and type > > >> dhcp net0 > >> kernelhttp://foreman/unattended/gPXE > >> autoboot > > >> does that work? > > >> > Boot failed: press a key to retry, or wait for reset. > > >> > Is the process correct or am i doing something wrong. > > >> > Regards, > >> > Kevin > > >> > On Feb 19, 8:31 am, Ohad Levy wrote: > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > >> >> > Hi All, > > >> >> > I am really unable to figure out the correct steps to do the > >> >> > Provisioning templates. > > >> >> Sometimes, if the list is not responsive enough, IRC is probably the > >> >> better place to ask questions :-) > > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. > > >> >> Sounds reasonable :) > > >> >> > When i create a new host i just get "Sorry but no templates were > >> >> > configured" when i click on Provisioning templates button in the OS > >> >> > tab. I am unable to get the exact sequence how do i go about. > > >> >> > Anyone who can has able to figure it out? > > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > >> >> Secondly, did you define the Provisioning Templates? normally, you > >> >> would need to: > >> >> 1. review the templates, make changes if required. > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? > >> >> Now you can choose either 3 or 4: > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > >> >> 4. Define a default template in the OS settings. > > >> >> Hope this helps, > >> >> Ohad > > >> >> > Regards, > >> >> > Kevin > > >> >> > I am unable to get the correct > > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > >> >> >> Hi All, > > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in > >> >> >> the console of the virt-manager > > >> >> >> TFTP Prefix: > >> >> >> Unable to locate configuration file > > >> >> >> In provisioning template i am using Kickstart default gPXE and not > >> >> >> Kickstart default PXElinux. Is that right ? > > >> >> >> I am trying to install a Centos6.2 VM. and i have created the required > >> >> >> hostgroups. > > >> >> >> I am clueless what could be the issue right now. > > >> >> >> Regards, > >> >> >> Kevin > > >> >> > -- > >> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> >> > To post to this group, send email to foreman-users@googlegroups.com. > >> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > >> > -- > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> > To post to this group, send email to foreman-users@googlegroups.com. > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

Hi Ohad,

I have gone past that error message and the machine is booting. Fixed
some permission issues with /var/lib/tftpboot. However how does it do
the kickstart?. Right now its asking me to enter data like Language –
> Keyboard Type —> Installation method --> I select URL as
http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir
where the OS files are copied. After that it gives me an error saying
"The following problem occured on line 1 of kickstart file" Unknown
command: Failed

When i create the host in the OS tab. When i click Provision Templates
i get the following

PXELinux – Template Kickstart default PXElinux
gPXE Template – Kickstart default gPXE
provision – Template Kickstart Default

Is the above correct? Or do i have to change the kickstart. I am
trying to install centos6.0.

Regards,
kevin

··· On Feb 21, 1:42 pm, linuxbsdfreak wrote: > Hi Ohad, > > I did the following > > > >dhcp net0 > > DHCP (macid) ...ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE > >http://192.168.122.26:7000/unattended/gPXE. ..ok > > autoboot > > Then it says Trying to load: pxelinux.cfg/ > Trying to load: pxelinux.cfg/default > unable to load configuration file > > Boot failed: press a key to retry , or wait for reset > > Regards, > kevin > > On Feb 21, 12:30 pm, Ohad Levy wrote: > > > > > > > > > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: > > > Hi Ohad, > > > > I get that error after the gPXE gets the DHCP ip. > > > > I get the following after typing at the gpxe prompt > > > > >dhcp net0 > > > DHCP (macid) ...ok > > > >kernelhttp://192.168.122.26/unattender/gPXE > > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) > > > ~~ note a typo above. > > > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 > > > and it gives me > > > > Missing template unattended/provision.erb in view path app/views. > > > > I am not sure if i am setting up gPXE correctly. i was following this > > > document > > > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... > > > > Regards, > > > Kevin > > > > Regards, > > > Kevin > > > > On Feb 21, 10:54 am, Ohad Levy wrote: > > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > > >> > Hi Ohad, > > > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing > > >> > the following: > > > >> > I do More ---> Operating systems --> Select the standard Stuff. When i > > >> > go to Templates its tells me No templates found! you probably need to > > >> > configure your templates first. > > > >> > I click on the link and it opens the Provision Templates link. I see > > >> > many more templates along with the below > > > >> > Kickstart default gPXE > > >> > Kickstart default PXElinux > > >> > PXE Default File > > > >> > Which one do i select for a Virtulization kicksrtart install? > > > >> > For Eg: I selected > > > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is > > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > > >> >> It saves > > > >> > Then i again go to Edit Operating System --> Templates --> gPXE > > >> > (Kickstart Default gPXE). Submit. > > > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > > >> > save > > > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates > > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it > > >> > starts the build and get the IP then shows me > > > >> > "Unable to locate configuration file" > > > >> where do you get that response from? > > > >> in order to debug, can you try: > > >> once your gpxe starts, press ctrl-b to enter its prompt and type > > > >> dhcp net0 > > >> kernelhttp://foreman/unattended/gPXE > > >> autoboot > > > >> does that work? > > > >> > Boot failed: press a key to retry, or wait for reset. > > > >> > Is the process correct or am i doing something wrong. > > > >> > Regards, > > >> > Kevin > > > >> > On Feb 19, 8:31 am, Ohad Levy wrote: > > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > > >> >> > Hi All, > > > >> >> > I am really unable to figure out the correct steps to do the > > >> >> > Provisioning templates. > > > >> >> Sometimes, if the list is not responsive enough, IRC is probably the > > >> >> better place to ask questions :-) > > > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. > > > >> >> Sounds reasonable :) > > > >> >> > When i create a new host i just get "Sorry but no templates were > > >> >> > configured" when i click on Provisioning templates button in the OS > > >> >> > tab. I am unable to get the exact sequence how do i go about. > > > >> >> > Anyone who can has able to figure it out? > > > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > > >> >> Secondly, did you define the Provisioning Templates? normally, you > > >> >> would need to: > > >> >> 1. review the templates, make changes if required. > > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? > > >> >> Now you can choose either 3 or 4: > > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > > >> >> 4. Define a default template in the OS settings. > > > >> >> Hope this helps, > > >> >> Ohad > > > >> >> > Regards, > > >> >> > Kevin > > > >> >> > I am unable to get the correct > > > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > > >> >> >> Hi All, > > > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in > > >> >> >> the console of the virt-manager > > > >> >> >> TFTP Prefix: > > >> >> >> Unable to locate configuration file > > > >> >> >> In provisioning template i am using Kickstart default gPXE and not > > >> >> >> Kickstart default PXElinux. Is that right ? > > > >> >> >> I am trying to install a Centos6.2 VM. and i have created the required > > >> >> >> hostgroups. > > > >> >> >> I am clueless what could be the issue right now. > > > >> >> >> Regards, > > >> >> >> Kevin > > > >> >> > -- > > >> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > >> >> > To post to this group, send email to foreman-users@googlegroups.com. > > >> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > >> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > >> > -- > > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > >> > To post to this group, send email to foreman-users@googlegroups.com. > > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > > To post to this group, send email to foreman-users@googlegroups.com. > > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

> Hi Ohad,
>
> I have gone past that error message and the machine is booting. Fixed
> some permission issues with /var/lib/tftpboot. However how does it do
> the kickstart?. Right now its asking me to enter data like Language –
>> Keyboard Type —> Installation method --> I select URL as
> http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir
> where the OS files are copied. After that it gives me an error saying
> "The following problem occured on line 1 of kickstart file" Unknown
> command: Failed
>
> When i create the host in the OS tab. When i click Provision Templates
> i get the following
>
> PXELinux – Template Kickstart default PXElinux
> gPXE Template – Kickstart default gPXE
> provision – Template Kickstart Default
>
> Is the above correct? Or do i have to change the kickstart. I am
> trying to install centos6.0.

do you see a request to fetch the kickstart in foreman logs?

Ohad

··· On Wed, Feb 22, 2012 at 4:08 PM, linuxbsdfreak wrote: > > > Regards, > kevin > > > > > > On Feb 21, 1:42 pm, linuxbsdfreak wrote: >> Hi Ohad, >> >> I did the following >> >> > >dhcp net0 >> >> DHCP (macid) ...ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE >> >http://192.168.122.26:7000/unattended/gPXE. ..ok >> >> autoboot >> >> Then it says Trying to load: pxelinux.cfg/ >> Trying to load: pxelinux.cfg/default >> unable to load configuration file >> >> Boot failed: press a key to retry , or wait for reset >> >> Regards, >> kevin >> >> On Feb 21, 12:30 pm, Ohad Levy wrote: >> >> >> >> >> >> >> >> > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: >> > > Hi Ohad, >> >> > > I get that error after the gPXE gets the DHCP ip. >> >> > > I get the following after typing at the gpxe prompt >> >> > > >dhcp net0 >> > > DHCP (macid) ...ok >> > > >kernelhttp://192.168.122.26/unattender/gPXE >> > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) >> >> > ~~ note a typo above. >> >> > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 >> > > and it gives me >> >> > > Missing template unattended/provision.erb in view path app/views. >> >> > > I am not sure if i am setting up gPXE correctly. i was following this >> > > document >> >> > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... >> >> > > Regards, >> > > Kevin >> >> > > Regards, >> > > Kevin >> >> > > On Feb 21, 10:54 am, Ohad Levy wrote: >> > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: >> > >> > Hi Ohad, >> >> > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing >> > >> > the following: >> >> > >> > I do More ---> Operating systems --> Select the standard Stuff. When i >> > >> > go to Templates its tells me No templates found! you probably need to >> > >> > configure your templates first. >> >> > >> > I click on the link and it opens the Provision Templates link. I see >> > >> > many more templates along with the below >> >> > >> > Kickstart default gPXE >> > >> > Kickstart default PXElinux >> > >> > PXE Default File >> >> > >> > Which one do i select for a Virtulization kicksrtart install? >> >> > >> > For Eg: I selected >> >> > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is >> > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- >> > >> >> It saves >> >> > >> > Then i again go to Edit Operating System --> Templates --> gPXE >> > >> > (Kickstart Default gPXE). Submit. >> >> > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and >> > >> > save >> >> > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates >> > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it >> > >> > starts the build and get the IP then shows me >> >> > >> > "Unable to locate configuration file" >> >> > >> where do you get that response from? >> >> > >> in order to debug, can you try: >> > >> once your gpxe starts, press ctrl-b to enter its prompt and type >> >> > >> dhcp net0 >> > >> kernelhttp://foreman/unattended/gPXE >> > >> autoboot >> >> > >> does that work? >> >> > >> > Boot failed: press a key to retry, or wait for reset. >> >> > >> > Is the process correct or am i doing something wrong. >> >> > >> > Regards, >> > >> > Kevin >> >> > >> > On Feb 19, 8:31 am, Ohad Levy wrote: >> > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: >> > >> >> > Hi All, >> >> > >> >> > I am really unable to figure out the correct steps to do the >> > >> >> > Provisioning templates. >> >> > >> >> Sometimes, if the list is not responsive enough, IRC is probably the >> > >> >> better place to ask questions :-) >> >> > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. >> >> > >> >> Sounds reasonable :) >> >> > >> >> > When i create a new host i just get "Sorry but no templates were >> > >> >> > configured" when i click on Provisioning templates button in the OS >> > >> >> > tab. I am unable to get the exact sequence how do i go about. >> >> > >> >> > Anyone who can has able to figure it out? >> >> > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. >> >> > >> >> Secondly, did you define the Provisioning Templates? normally, you >> > >> >> would need to: >> > >> >> 1. review the templates, make changes if required. >> > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? >> > >> >> Now you can choose either 3 or 4: >> > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. >> > >> >> 4. Define a default template in the OS settings. >> >> > >> >> Hope this helps, >> > >> >> Ohad >> >> > >> >> > Regards, >> > >> >> > Kevin >> >> > >> >> > I am unable to get the correct >> >> > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: >> > >> >> >> Hi All, >> >> > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in >> > >> >> >> the console of the virt-manager >> >> > >> >> >> TFTP Prefix: >> > >> >> >> Unable to locate configuration file >> >> > >> >> >> In provisioning template i am using Kickstart default gPXE and not >> > >> >> >> Kickstart default PXElinux. Is that right ? >> >> > >> >> >> I am trying to install a Centos6.2 VM. and i have created the required >> > >> >> >> hostgroups. >> >> > >> >> >> I am clueless what could be the issue right now. >> >> > >> >> >> Regards, >> > >> >> >> Kevin >> >> > >> >> > -- >> > >> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. >> > >> >> > To post to this group, send email to foreman-users@googlegroups.com. >> > >> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. >> > >> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. >> >> > >> > -- >> > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. >> > >> > To post to this group, send email to foreman-users@googlegroups.com. >> > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. >> > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. >> >> > > -- >> > > You received this message because you are subscribed to the Google Groups "Foreman users" group. >> > > To post to this group, send email to foreman-users@googlegroups.com. >> > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. >> > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en. >

Hi Ohad,

Nothing. I checked /var/log/foreman/production.log and i found nothing
related to kickstart

This comes only while creating the hosts.

Processing UnattendedController#provision (for 192.168.122.239 at
2012-02-22 14:41:29) [GET]
Found zak.domain.local
DEPRECATION WARNING* Managing Puppet CA without a smart-proxy will
not be supported in the next release
PuppetCA: SSL/CA or puppetca unavailable on this machine
Filter chain halted as [:handle_ca] rendered_or_redirected.
Completed in 7ms (View: 0, DB: 24) | 200 OK [http://192.168.122.26/
unattended/provision]

Processing OperatingsystemsController#index (for 192.168.122.1 at
2012-02-22 14:42:07) [GET]
Rendering template within layouts/application
Rendering operatingsystems/index
Completed in 34ms (View: 25, DB: 2) | 200 OK [http://192.168.122.26/
operatingsystems]

Processing OperatingsystemsController#edit (for 192.168.122.1 at
2012-02-22 14:42:08) [GET]
Parameters: {"id"=>"16"}
Rendering template within layouts/application
Rendering operatingsystems/edit
Completed in 189ms (View: 162, DB: 63) | 200 OK [http://192.168.122.26/
operatingsystems/16/edit]

Processing MediaController#index (for 192.168.122.1 at 2012-02-22
14:42:15) [GET]
Rendering template within layouts/application
Rendering media/index
Completed in 130ms (View: 113, DB: 11) | 200 OK [http://192.168.122.26/
media]

Regards,
Kevin

··· On Feb 22, 3:28 pm, Ohad Levy wrote: > On Wed, Feb 22, 2012 at 4:08 PM, linuxbsdfreak wrote: > > Hi Ohad, > > > I have gone past that error message and the machine is booting. Fixed > > some permission issues with /var/lib/tftpboot. However how does it do > > the kickstart?. Right now its asking me to enter data like Language -- > >> Keyboard Type ---> Installation method --> I select URL as > >http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir > > where the OS files are copied. After that it gives me an error saying > > "The following problem occured on line 1 of kickstart file" Unknown > > command: Failed > > > When i create the host in the OS tab. When i click Provision Templates > > i get the following > > > PXELinux -- Template Kickstart default PXElinux > > gPXE Template -- Kickstart default gPXE > > provision -- Template Kickstart Default > > > Is the above correct? Or do i have to change the kickstart. I am > > trying to install centos6.0. > > do you see a request to fetch the kickstart in foreman logs? > > Ohad > > > > > > > > > > > Regards, > > kevin > > > On Feb 21, 1:42 pm, linuxbsdfreak wrote: > >> Hi Ohad, > > >> I did the following > > >> > >dhcp net0 > > >> DHCP (macid) ...ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE > >> >http://192.168.122.26:7000/unattended/gPXE. ..ok > > >> autoboot > > >> Then it says Trying to load: pxelinux.cfg/ > >> Trying to load: pxelinux.cfg/default > >> unable to load configuration file > > >> Boot failed: press a key to retry , or wait for reset > > >> Regards, > >> kevin > > >> On Feb 21, 12:30 pm, Ohad Levy wrote: > > >> > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: > >> > > Hi Ohad, > > >> > > I get that error after the gPXE gets the DHCP ip. > > >> > > I get the following after typing at the gpxe prompt > > >> > > >dhcp net0 > >> > > DHCP (macid) ...ok > >> > > >kernelhttp://192.168.122.26/unattender/gPXE > >> > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) > > >> > ~~ note a typo above. > > >> > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 > >> > > and it gives me > > >> > > Missing template unattended/provision.erb in view path app/views. > > >> > > I am not sure if i am setting up gPXE correctly. i was following this > >> > > document > > >> > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... > > >> > > Regards, > >> > > Kevin > > >> > > Regards, > >> > > Kevin > > >> > > On Feb 21, 10:54 am, Ohad Levy wrote: > >> > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > >> > >> > Hi Ohad, > > >> > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing > >> > >> > the following: > > >> > >> > I do More ---> Operating systems --> Select the standard Stuff. When i > >> > >> > go to Templates its tells me No templates found! you probably need to > >> > >> > configure your templates first. > > >> > >> > I click on the link and it opens the Provision Templates link. I see > >> > >> > many more templates along with the below > > >> > >> > Kickstart default gPXE > >> > >> > Kickstart default PXElinux > >> > >> > PXE Default File > > >> > >> > Which one do i select for a Virtulization kicksrtart install? > > >> > >> > For Eg: I selected > > >> > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is > >> > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > >> > >> >> It saves > > >> > >> > Then i again go to Edit Operating System --> Templates --> gPXE > >> > >> > (Kickstart Default gPXE). Submit. > > >> > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > >> > >> > save > > >> > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates > >> > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it > >> > >> > starts the build and get the IP then shows me > > >> > >> > "Unable to locate configuration file" > > >> > >> where do you get that response from? > > >> > >> in order to debug, can you try: > >> > >> once your gpxe starts, press ctrl-b to enter its prompt and type > > >> > >> dhcp net0 > >> > >> kernelhttp://foreman/unattended/gPXE > >> > >> autoboot > > >> > >> does that work? > > >> > >> > Boot failed: press a key to retry, or wait for reset. > > >> > >> > Is the process correct or am i doing something wrong. > > >> > >> > Regards, > >> > >> > Kevin > > >> > >> > On Feb 19, 8:31 am, Ohad Levy wrote: > >> > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > >> > >> >> > Hi All, > > >> > >> >> > I am really unable to figure out the correct steps to do the > >> > >> >> > Provisioning templates. > > >> > >> >> Sometimes, if the list is not responsive enough, IRC is probably the > >> > >> >> better place to ask questions :-) > > >> > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. > > >> > >> >> Sounds reasonable :) > > >> > >> >> > When i create a new host i just get "Sorry but no templates were > >> > >> >> > configured" when i click on Provisioning templates button in the OS > >> > >> >> > tab. I am unable to get the exact sequence how do i go about. > > >> > >> >> > Anyone who can has able to figure it out? > > >> > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > >> > >> >> Secondly, did you define the Provisioning Templates? normally, you > >> > >> >> would need to: > >> > >> >> 1. review the templates, make changes if required. > >> > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? > >> > >> >> Now you can choose either 3 or 4: > >> > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > >> > >> >> 4. Define a default template in the OS settings. > > >> > >> >> Hope this helps, > >> > >> >> Ohad > > >> > >> >> > Regards, > >> > >> >> > Kevin > > >> > >> >> > I am unable to get the correct > > >> > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > >> > >> >> >> Hi All, > > >> > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in > >> > >> >> >> the console of the virt-manager > > >> > >> >> >> TFTP Prefix: > >> > >> >> >> Unable to locate configuration file > > >> > >> >> >> In provisioning template i am using Kickstart default gPXE and not > >> > >> >> >> Kickstart default PXElinux. Is that right ? > > >> > >> >> >> I am trying to install a Centos6.2 VM. and i have created the required > >> > >> >> >> hostgroups. > > >> > >> >> >> I am clueless what could be the issue right now. > > >> > >> >> >> Regards, > >> > >> >> >> Kevin > > >> > >> >> > -- > >> > >> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> > >> >> > To post to this group, send email to foreman-users@googlegroups.com. > >> > >> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> > >> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > >> > >> > -- > >> > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> > >> > To post to this group, send email to foreman-users@googlegroups.com. > >> > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > >> > > -- > >> > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > >> > > To post to this group, send email to foreman-users@googlegroups.com. > >> > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > >> > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

Hi Ohad,

I think i might have found the issue with the kickstart file. However
i am not getting how i can go about it.

I see the kickstart link like this
http://192.168.122.26:7000/unattended/template/Kickstart%20Default/centos6-hostgroup

  • This is defined in the default file

DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0

LABEL Kickstart Default - centos6-hostgroup
kernel boot/Centos-6.0-x86_64-vmlinuz
append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http://
192.168.122.26:7000/unattended/template/Kickstart%20Default/centos6-
hostgroup ksdevice=bootif network kssendmac

and i also see the following in 01-52-54-00-9c-47-ba

default linux
label linux
kernel boot/Centos-6.0-x86_64-vmlinuz
append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http://
192.168.122.26:7000/unattended/provision ksdevice=bootif network
kssendmac

http://192.168.122.26:7000/unattended/provision - This gives no
output.

However when i do http://192.168.122.26:7000/unattended/provision?spoof=192.168.122.2
. I get the output of the kickstart file. Is there some config i am
missing?

Regards,
Kevin

··· On Feb 22, 3:49 pm, linuxbsdfreak wrote: > Hi Ohad, > > Nothing. I checked /var/log/foreman/production.log and i found nothing > related to kickstart > > This comes only while creating the hosts. > > Processing UnattendedController#provision (for 192.168.122.239 at > 2012-02-22 14:41:29) [GET] > Found zak.domain.local > **DEPRECATION WARNING*** Managing Puppet CA without a smart-proxy will > not be supported in the next release > PuppetCA: SSL/CA or puppetca unavailable on this machine > Filter chain halted as [:handle_ca] rendered_or_redirected. > Completed in 7ms (View: 0, DB: 24) | 200 OK [http://192.168.122.26/ > unattended/provision] > > Processing OperatingsystemsController#index (for 192.168.122.1 at > 2012-02-22 14:42:07) [GET] > Rendering template within layouts/application > Rendering operatingsystems/index > Completed in 34ms (View: 25, DB: 2) | 200 OK [http://192.168.122.26/ > operatingsystems] > > Processing OperatingsystemsController#edit (for 192.168.122.1 at > 2012-02-22 14:42:08) [GET] > Parameters: {"id"=>"16"} > Rendering template within layouts/application > Rendering operatingsystems/edit > Completed in 189ms (View: 162, DB: 63) | 200 OK [http://192.168.122.26/ > operatingsystems/16/edit] > > Processing MediaController#index (for 192.168.122.1 at 2012-02-22 > 14:42:15) [GET] > Rendering template within layouts/application > Rendering media/index > Completed in 130ms (View: 113, DB: 11) | 200 OK [http://192.168.122.26/ > media] > > Regards, > Kevin > > On Feb 22, 3:28 pm, Ohad Levy wrote: > > > > > > > > > On Wed, Feb 22, 2012 at 4:08 PM, linuxbsdfreak wrote: > > > Hi Ohad, > > > > I have gone past that error message and the machine is booting. Fixed > > > some permission issues with /var/lib/tftpboot. However how does it do > > > the kickstart?. Right now its asking me to enter data like Language -- > > >> Keyboard Type ---> Installation method --> I select URL as > > >http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir > > > where the OS files are copied. After that it gives me an error saying > > > "The following problem occured on line 1 of kickstart file" Unknown > > > command: Failed > > > > When i create the host in the OS tab. When i click Provision Templates > > > i get the following > > > > PXELinux -- Template Kickstart default PXElinux > > > gPXE Template -- Kickstart default gPXE > > > provision -- Template Kickstart Default > > > > Is the above correct? Or do i have to change the kickstart. I am > > > trying to install centos6.0. > > > do you see a request to fetch the kickstart in foreman logs? > > > Ohad > > > > Regards, > > > kevin > > > > On Feb 21, 1:42 pm, linuxbsdfreak wrote: > > >> Hi Ohad, > > > >> I did the following > > > >> > >dhcp net0 > > > >> DHCP (macid) ...ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE > > >> >http://192.168.122.26:7000/unattended/gPXE. ..ok > > > >> autoboot > > > >> Then it says Trying to load: pxelinux.cfg/ > > >> Trying to load: pxelinux.cfg/default > > >> unable to load configuration file > > > >> Boot failed: press a key to retry , or wait for reset > > > >> Regards, > > >> kevin > > > >> On Feb 21, 12:30 pm, Ohad Levy wrote: > > > >> > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: > > >> > > Hi Ohad, > > > >> > > I get that error after the gPXE gets the DHCP ip. > > > >> > > I get the following after typing at the gpxe prompt > > > >> > > >dhcp net0 > > >> > > DHCP (macid) ...ok > > >> > > >kernelhttp://192.168.122.26/unattender/gPXE > > >> > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) > > > >> > ~~ note a typo above. > > > >> > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 > > >> > > and it gives me > > > >> > > Missing template unattended/provision.erb in view path app/views. > > > >> > > I am not sure if i am setting up gPXE correctly. i was following this > > >> > > document > > > >> > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... > > > >> > > Regards, > > >> > > Kevin > > > >> > > Regards, > > >> > > Kevin > > > >> > > On Feb 21, 10:54 am, Ohad Levy wrote: > > >> > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > > >> > >> > Hi Ohad, > > > >> > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing > > >> > >> > the following: > > > >> > >> > I do More ---> Operating systems --> Select the standard Stuff. When i > > >> > >> > go to Templates its tells me No templates found! you probably need to > > >> > >> > configure your templates first. > > > >> > >> > I click on the link and it opens the Provision Templates link. I see > > >> > >> > many more templates along with the below > > > >> > >> > Kickstart default gPXE > > >> > >> > Kickstart default PXElinux > > >> > >> > PXE Default File > > > >> > >> > Which one do i select for a Virtulization kicksrtart install? > > > >> > >> > For Eg: I selected > > > >> > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is > > >> > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > > >> > >> >> It saves > > > >> > >> > Then i again go to Edit Operating System --> Templates --> gPXE > > >> > >> > (Kickstart Default gPXE). Submit. > > > >> > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > > >> > >> > save > > > >> > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates > > >> > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it > > >> > >> > starts the build and get the IP then shows me > > > >> > >> > "Unable to locate configuration file" > > > >> > >> where do you get that response from? > > > >> > >> in order to debug, can you try: > > >> > >> once your gpxe starts, press ctrl-b to enter its prompt and type > > > >> > >> dhcp net0 > > >> > >> kernelhttp://foreman/unattended/gPXE > > >> > >> autoboot > > > >> > >> does that work? > > > >> > >> > Boot failed: press a key to retry, or wait for reset. > > > >> > >> > Is the process correct or am i doing something wrong. > > > >> > >> > Regards, > > >> > >> > Kevin > > > >> > >> > On Feb 19, 8:31 am, Ohad Levy wrote: > > >> > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > > >> > >> >> > Hi All, > > > >> > >> >> > I am really unable to figure out the correct steps to do the > > >> > >> >> > Provisioning templates. > > > >> > >> >> Sometimes, if the list is not responsive enough, IRC is probably the > > >> > >> >> better place to ask questions :-) > > > >> > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. > > > >> > >> >> Sounds reasonable :) > > > >> > >> >> > When i create a new host i just get "Sorry but no templates were > > >> > >> >> > configured" when i click on Provisioning templates button in the OS > > >> > >> >> > tab. I am unable to get the exact sequence how do i go about. > > > >> > >> >> > Anyone who can has able to figure it out? > > > >> > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > > >> > >> >> Secondly, did you define the Provisioning Templates? normally, you > > >> > >> >> would need to: > > >> > >> >> 1. review the templates, make changes if required. > > >> > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? > > >> > >> >> Now you can choose either 3 or 4: > > >> > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > > >> > >> >> 4. Define a default template in the OS settings. > > > >> > >> >> Hope this helps, > > >> > >> >> Ohad > > > >> > >> >> > Regards, > > >> > >> >> > Kevin > > > >> > >> >> > I am unable to get the correct > > > >> > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > > >> > >> >> >> Hi All, > > > >> > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in > > >> > >> >> >> the console of the virt-manager > > > >> > >> >> >> TFTP Prefix: > > >> > >> >> >> Unable to locate configuration file > > > >> > >> >> >> In provisioning template i am using Kickstart default gPXE and not > > >> > >> >> >> Kickstart default PXElinux. Is that right ? > > > >> > >> >> >> I am trying to install a Centos6.2 VM. and i have created the required > > >> > >> >> >> hostgroups. > > > >> > >> >> >> I am clueless what could be the issue right now. > > > >> > >> >> >> Regards, > > >> > >> >> >> Kevin > > > >> > >> >> > -- > > >> > >> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > >> > >> >> > To post to this group, send email to foreman-users@googlegroups.com. > > >> > >> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > >> > >> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > >> > >> > -- > > >> > >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > >> > >> > To post to this group, send email to foreman-users@googlegroups.com. > > >> > >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > >> > >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > >> > > -- > > >> > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > >> > > To post to this group, send email to foreman-users@googlegroups.com. > > >> > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > >> > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > > To post to this group, send email to foreman-users@googlegroups.com. > > > To unsubscribe from this group, send... > > read more »

Hi Ohad,

I figured it out. The kickstart is working now. One thing that i
noticed is that the "PXE Default File" in Provision template somehow
does not work. Is that something thats broken?. I have the following
in the Provisioning templates that are assigned to the hostgroups.

PXELinux – Template Kickstart default PXElinux
gPXE Template – Kickstart default gPXE
provision – Template Kickstart Default

Regards,
Kevin

··· On Feb 23, 1:56 pm, linuxbsdfreak wrote: > Hi Ohad, > > I think i might have found the issue with the kickstart file. However > i am not getting how i can go about it. > > I see the kickstart link like thishttp://192.168.122.26:7000/unattended/template/Kickstart%20Default/ce... > - This is defined in the default file > > DEFAULT menu > PROMPT 0 > MENU TITLE PXE Menu > TIMEOUT 200 > TOTALTIMEOUT 6000 > ONTIMEOUT local > > LABEL local > MENU LABEL (local) > MENU DEFAULT > LOCALBOOT 0 > > LABEL Kickstart Default - centos6-hostgroup > kernel boot/Centos-6.0-x86_64-vmlinuz > append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http:// > 192.168.122.26:7000/unattended/template/Kickstart%20Default/centos6- > hostgroup ksdevice=bootif network kssendmac > > and i also see the following in 01-52-54-00-9c-47-ba > > default linux > label linux > kernel boot/Centos-6.0-x86_64-vmlinuz > append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http:// > 192.168.122.26:7000/unattended/provision ksdevice=bootif network > kssendmac > > http://192.168.122.26:7000/unattended/provision- This gives no > output. > > However when i dohttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.2 > . I get the output of the kickstart file. Is there some config i am > missing? > > Regards, > Kevin > > On Feb 22, 3:49 pm, linuxbsdfreak wrote: > > > > > > > > > Hi Ohad, > > > Nothing. I checked /var/log/foreman/production.log and i found nothing > > related to kickstart > > > This comes only while creating the hosts. > > > Processing UnattendedController#provision (for 192.168.122.239 at > > 2012-02-22 14:41:29) [GET] > > Found zak.domain.local > > **DEPRECATION WARNING*** Managing Puppet CA without a smart-proxy will > > not be supported in the next release > > PuppetCA: SSL/CA or puppetca unavailable on this machine > > Filter chain halted as [:handle_ca] rendered_or_redirected. > > Completed in 7ms (View: 0, DB: 24) | 200 OK [http://192.168.122.26/ > > unattended/provision] > > > Processing OperatingsystemsController#index (for 192.168.122.1 at > > 2012-02-22 14:42:07) [GET] > > Rendering template within layouts/application > > Rendering operatingsystems/index > > Completed in 34ms (View: 25, DB: 2) | 200 OK [http://192.168.122.26/ > > operatingsystems] > > > Processing OperatingsystemsController#edit (for 192.168.122.1 at > > 2012-02-22 14:42:08) [GET] > > Parameters: {"id"=>"16"} > > Rendering template within layouts/application > > Rendering operatingsystems/edit > > Completed in 189ms (View: 162, DB: 63) | 200 OK [http://192.168.122.26/ > > operatingsystems/16/edit] > > > Processing MediaController#index (for 192.168.122.1 at 2012-02-22 > > 14:42:15) [GET] > > Rendering template within layouts/application > > Rendering media/index > > Completed in 130ms (View: 113, DB: 11) | 200 OK [http://192.168.122.26/ > > media] > > > Regards, > > Kevin > > > On Feb 22, 3:28 pm, Ohad Levy wrote: > > > > On Wed, Feb 22, 2012 at 4:08 PM, linuxbsdfreak wrote: > > > > Hi Ohad, > > > > > I have gone past that error message and the machine is booting. Fixed > > > > some permission issues with /var/lib/tftpboot. However how does it do > > > > the kickstart?. Right now its asking me to enter data like Language -- > > > >> Keyboard Type ---> Installation method --> I select URL as > > > >http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir > > > > where the OS files are copied. After that it gives me an error saying > > > > "The following problem occured on line 1 of kickstart file" Unknown > > > > command: Failed > > > > > When i create the host in the OS tab. When i click Provision Templates > > > > i get the following > > > > > PXELinux -- Template Kickstart default PXElinux > > > > gPXE Template -- Kickstart default gPXE > > > > provision -- Template Kickstart Default > > > > > Is the above correct? Or do i have to change the kickstart. I am > > > > trying to install centos6.0. > > > > do you see a request to fetch the kickstart in foreman logs? > > > > Ohad > > > > > Regards, > > > > kevin > > > > > On Feb 21, 1:42 pm, linuxbsdfreak wrote: > > > >> Hi Ohad, > > > > >> I did the following > > > > >> > >dhcp net0 > > > > >> DHCP (macid) ...ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE > > > >> >http://192.168.122.26:7000/unattended/gPXE. ..ok > > > > >> autoboot > > > > >> Then it says Trying to load: pxelinux.cfg/ > > > >> Trying to load: pxelinux.cfg/default > > > >> unable to load configuration file > > > > >> Boot failed: press a key to retry , or wait for reset > > > > >> Regards, > > > >> kevin > > > > >> On Feb 21, 12:30 pm, Ohad Levy wrote: > > > > >> > On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak wrote: > > > >> > > Hi Ohad, > > > > >> > > I get that error after the gPXE gets the DHCP ip. > > > > >> > > I get the following after typing at the gpxe prompt > > > > >> > > >dhcp net0 > > > >> > > DHCP (macid) ...ok > > > >> > > >kernelhttp://192.168.122.26/unattender/gPXE > > > >> > >http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b) > > > > >> > ~~ note a typo above. > > > > >> > > I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5 > > > >> > > and it gives me > > > > >> > > Missing template unattended/provision.erb in view path app/views. > > > > >> > > I am not sure if i am setting up gPXE correctly. i was following this > > > >> > > document > > > > >> > >https://sites.google.com/site/richardgroux/infrastructure-1/Network/p... > > > > >> > > Regards, > > > >> > > Kevin > > > > >> > > Regards, > > > >> > > Kevin > > > > >> > > On Feb 21, 10:54 am, Ohad Levy wrote: > > > >> > >> On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak wrote: > > > >> > >> > Hi Ohad, > > > > >> > >> > Sorry Ohad. May be i am not getting the process correctly. I am doing > > > >> > >> > the following: > > > > >> > >> > I do More ---> Operating systems --> Select the standard Stuff. When i > > > >> > >> > go to Templates its tells me No templates found! you probably need to > > > >> > >> > configure your templates first. > > > > >> > >> > I click on the link and it opens the Provision Templates link. I see > > > >> > >> > many more templates along with the below > > > > >> > >> > Kickstart default gPXE > > > >> > >> > Kickstart default PXElinux > > > >> > >> > PXE Default File > > > > >> > >> > Which one do i select for a Virtulization kicksrtart install? > > > > >> > >> > For Eg: I selected > > > > >> > >> > Kickstart default gPXE --> Edit Config Template --> Template Kind is > > > >> > >> > gPXE(Do i select something else) , Selected the check box Centos 6.2 -- > > > >> > >> >> It saves > > > > >> > >> > Then i again go to Edit Operating System --> Templates --> gPXE > > > >> > >> > (Kickstart Default gPXE). Submit. > > > > >> > >> > Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and > > > >> > >> > save > > > > >> > >> > Then i create a Host --> OS tab --> I click on Provisioning Templates > > > >> > >> > it shows me gPXE Template --- Kickstart default gPXE and build and it > > > >> > >> > starts the build and get the IP then shows me > > > > >> > >> > "Unable to locate configuration file" > > > > >> > >> where do you get that response from? > > > > >> > >> in order to debug, can you try: > > > >> > >> once your gpxe starts, press ctrl-b to enter its prompt and type > > > > >> > >> dhcp net0 > > > >> > >> kernelhttp://foreman/unattended/gPXE > > > >> > >> autoboot > > > > >> > >> does that work? > > > > >> > >> > Boot failed: press a key to retry, or wait for reset. > > > > >> > >> > Is the process correct or am i doing something wrong. > > > > >> > >> > Regards, > > > >> > >> > Kevin > > > > >> > >> > On Feb 19, 8:31 am, Ohad Levy wrote: > > > >> > >> >> On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak wrote: > > > >> > >> >> > Hi All, > > > > >> > >> >> > I am really unable to figure out the correct steps to do the > > > >> > >> >> > Provisioning templates. > > > > >> > >> >> Sometimes, if the list is not responsive enough, IRC is probably the > > > >> > >> >> better place to ask questions :-) > > > > >> > >> >> > I just want to install a VM on a KVM host and its booting via gPXE. > > > > >> > >> >> Sounds reasonable :) > > > > >> > >> >> > When i create a new host i just get "Sorry but no templates were > > > >> > >> >> > configured" when i click on Provisioning templates button in the OS > > > >> > >> >> > tab. I am unable to get the exact sequence how do i go about. > > > > >> > >> >> > Anyone who can has able to figure it out? > > > > >> > >> >> First, make sure you are not hittinghttp://theforeman.org/issues/1294. > > > > >> > >> >> Secondly, did you define the Provisioning Templates? normally, you > > > >> > >> >> would need to: > > > >> > >> >> 1. review the templates, make changes if required. > > > >> > >> >> 2. associate templates to OS's --> to which OS's does this template apply to? > > > >> > >> >> Now you can choose either 3 or 4: > > > >> > >> >> 3. Assign per template which Hostgroup or Env (or Both) will apply to. > > > >> > >> >> 4. Define a default template in the OS settings. > > > > >> > >> >> Hope this helps, > > > >> > >> >> Ohad > > > > >> > >> >> > Regards, > > > >> > >> >> > Kevin > > > > >> > >> >> > I am unable to get the correct > > > > >> > >> >> > On Feb 16, 6:12 pm, linuxbsdfreak wrote: > > > >> > >> >> >> Hi All, > > > > >> > >> >> >> I am trying to deploy a KVM VM via foreman and i see the following in > > > >> > >> >> >> the console of the virt-manager > > > > >> > >> >> >> TFTP Prefix: > > > >> > >> >> >> Unable to locate configuration file > > > > >> > >> >> >> In provisioning template i am using Kickstart default gPXE and not > > > >> > >> >> >> Kickstart default PXElinux. Is that right ? > > > > >> > >> >> >> I am trying to install a Centos6.2 VM. and i have... > > read more »

> Hi Ohad,
>
> I figured it out. The kickstart is working now.

Great, what were your issues, is there something in the documentation
which could be improved?

> One thing that i
> noticed is that the "PXE Default File" in Provision template somehow
> does not work. Is that something thats broken?. I have the following
> in the Provisioning templates that are assigned to the hostgroups.

PXE default file is the default file, e.g. when you want to put in
menus etc, it is not intended for automatic provisioning at all.
One could set his host to always boot from the network, and when
building the host, you would get the relevant pxe configuration, but
afterwards it would be replaced with the default file (which might do
something like boot from disk).
this allows you to reprovision, without changing the boot order.

Ohad

··· On Thu, Feb 23, 2012 at 5:04 PM, linuxbsdfreak wrote:

PXELinux – Template Kickstart default PXElinux
gPXE Template – Kickstart default gPXE
provision – Template Kickstart Default

Regards,
Kevin

On Feb 23, 1:56 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

I think i might have found the issue with the kickstart file. However
i am not getting how i can go about it.

I see the kickstart link like thishttp://192.168.122.26:7000/unattended/template/Kickstart%20Default/ce…

  • This is defined in the default file

DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0

LABEL Kickstart Default - centos6-hostgroup
kernel boot/Centos-6.0-x86_64-vmlinuz
append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http://
192.168.122.26:7000/unattended/template/Kickstart%20Default/centos6-
hostgroup ksdevice=bootif network kssendmac

and i also see the following in 01-52-54-00-9c-47-ba

default linux
label linux
kernel boot/Centos-6.0-x86_64-vmlinuz
append initrd=boot/Centos-6.0-x86_64-initrd.img ks=http://
192.168.122.26:7000/unattended/provision ksdevice=bootif network
kssendmac

http://192.168.122.26:7000/unattended/provision- This gives no
output.

However when i dohttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.2
. I get the output of the kickstart file. Is there some config i am
missing?

Regards,
Kevin

On Feb 22, 3:49 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

Nothing. I checked /var/log/foreman/production.log and i found nothing
related to kickstart

This comes only while creating the hosts.

Processing UnattendedController#provision (for 192.168.122.239 at
2012-02-22 14:41:29) [GET]
Found zak.domain.local
DEPRECATION WARNING* Managing Puppet CA without a smart-proxy will
not be supported in the next release
PuppetCA: SSL/CA or puppetca unavailable on this machine
Filter chain halted as [:handle_ca] rendered_or_redirected.
Completed in 7ms (View: 0, DB: 24) | 200 OK [http://192.168.122.26/
unattended/provision]

Processing OperatingsystemsController#index (for 192.168.122.1 at
2012-02-22 14:42:07) [GET]
Rendering template within layouts/application
Rendering operatingsystems/index
Completed in 34ms (View: 25, DB: 2) | 200 OK [http://192.168.122.26/
operatingsystems]

Processing OperatingsystemsController#edit (for 192.168.122.1 at
2012-02-22 14:42:08) [GET]
Parameters: {“id”=>“16”}
Rendering template within layouts/application
Rendering operatingsystems/edit
Completed in 189ms (View: 162, DB: 63) | 200 OK [http://192.168.122.26/
operatingsystems/16/edit]

Processing MediaController#index (for 192.168.122.1 at 2012-02-22
14:42:15) [GET]
Rendering template within layouts/application
Rendering media/index
Completed in 130ms (View: 113, DB: 11) | 200 OK [http://192.168.122.26/
media]

Regards,
Kevin

On Feb 22, 3:28 pm, Ohad Levy ohadl...@gmail.com wrote:

On Wed, Feb 22, 2012 at 4:08 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

I have gone past that error message and the machine is booting. Fixed
some permission issues with /var/lib/tftpboot. However how does it do
the kickstart?. Right now its asking me to enter data like Language –

Keyboard Type —> Installation method --> I select URL as
http://192.168.122.20/os/links/Centos6-x86_64. This is a remote dir
where the OS files are copied. After that it gives me an error saying
"The following problem occured on line 1 of kickstart file" Unknown
command: Failed

When i create the host in the OS tab. When i click Provision Templates
i get the following

PXELinux – Template Kickstart default PXElinux
gPXE Template – Kickstart default gPXE
provision – Template Kickstart Default

Is the above correct? Or do i have to change the kickstart. I am
trying to install centos6.0.

do you see a request to fetch the kickstart in foreman logs?

Ohad

Regards,
kevin

On Feb 21, 1:42 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

I did the following

dhcp net0

DHCP (macid) …ok> gPXE>kernelhttp://192.168.122.26:7000/unattended/gPXE

http://192.168.122.26:7000/unattended/gPXE. …ok

autoboot

Then it says Trying to load: pxelinux.cfg/
Trying to load: pxelinux.cfg/default
unable to load configuration file

Boot failed: press a key to retry , or wait for reset

Regards,
kevin

On Feb 21, 12:30 pm, Ohad Levy ohadl...@gmail.com wrote:

On Tue, Feb 21, 2012 at 12:26 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

I get that error after the gPXE gets the DHCP ip.

I get the following after typing at the gpxe prompt

dhcp net0
DHCP (macid) …ok
kernelhttp://192.168.122.26/unattender/gPXE
http://192.168.122.26/unattender/gPXE. File not found (0x2d0c603b)

~~ note a typo above.

I also didhttp://192.168.122.26:7000/unattended/provision?spoof=192.168.122.5
and it gives me

Missing template unattended/provision.erb in view path app/views.

I am not sure if i am setting up gPXE correctly. i was following this
document

https://sites.google.com/site/richardgroux/infrastructure-1/Network/p

Regards,
Kevin

Regards,
Kevin

On Feb 21, 10:54 am, Ohad Levy ohadl...@gmail.com wrote:

On Mon, Feb 20, 2012 at 7:17 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi Ohad,

Sorry Ohad. May be i am not getting the process correctly. I am doing
the following:

I do More —> Operating systems --> Select the standard Stuff. When i
go to Templates its tells me No templates found! you probably need to
configure your templates first.

I click on the link and it opens the Provision Templates link. I see
many more templates along with the below

Kickstart default gPXE
Kickstart default PXElinux
PXE Default File

Which one do i select for a Virtulization kicksrtart install?

For Eg: I selected

Kickstart default gPXE --> Edit Config Template --> Template Kind is
gPXE(Do i select something else) , Selected the check box Centos 6.2 –

It saves

Then i again go to Edit Operating System --> Templates --> gPXE
(Kickstart Default gPXE). Submit.

Then i go to Edit Hostgroup --> OS --> Select the OS (Centos 6.2) and
save

Then i create a Host --> OS tab --> I click on Provisioning Templates
it shows me gPXE Template — Kickstart default gPXE and build and it
starts the build and get the IP then shows me

“Unable to locate configuration file”

where do you get that response from?

in order to debug, can you try:
once your gpxe starts, press ctrl-b to enter its prompt and type

dhcp net0
kernelhttp://foreman/unattended/gPXE
autoboot

does that work?

Boot failed: press a key to retry, or wait for reset.

Is the process correct or am i doing something wrong.

Regards,
Kevin

On Feb 19, 8:31 am, Ohad Levy ohadl...@gmail.com wrote:

On Fri, Feb 17, 2012 at 6:12 PM, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am really unable to figure out the correct steps to do the
Provisioning templates.

Sometimes, if the list is not responsive enough, IRC is probably the
better place to ask questions :slight_smile:

I just want to install a VM on a KVM host and its booting via gPXE.

Sounds reasonable :slight_smile:

When i create a new host i just get “Sorry but no templates were
configured” when i click on Provisioning templates button in the OS
tab. I am unable to get the exact sequence how do i go about.

Anyone who can has able to figure it out?

First, make sure you are not hittinghttp://theforeman.org/issues/1294.

Secondly, did you define the Provisioning Templates? normally, you
would need to:

  1. review the templates, make changes if required.
  2. associate templates to OS’s --> to which OS’s does this template apply to?
    Now you can choose either 3 or 4:
  3. Assign per template which Hostgroup or Env (or Both) will apply to.
  4. Define a default template in the OS settings.

Hope this helps,
Ohad

Regards,
Kevin

I am unable to get the correct

On Feb 16, 6:12 pm, linuxbsdfreak linuxbsdfr...@gmail.com wrote:

Hi All,

I am trying to deploy a KVM VM via foreman and i see the following in
the console of the virt-manager

TFTP Prefix:
Unable to locate configuration file

In provisioning template i am using Kickstart default gPXE and not
Kickstart default PXElinux. Is that right ?

I am trying to install a Centos6.2 VM. and i have…

read more »


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.