NON-PXE kiskstart setup

I cannot use PXE in my environment because we are already using one for
another application system. Because of this I have not installed the
smartproxy.

I am trying to figure out how to setup provision a server from an install
disc. What media should I be using and how do I point it to the foreman?

This is Katello and trying to install RedHat OS.

Take a look at the Foreman-Bootdisk plugin, which allows you to generate an
iPXE USB image for a given server (or a generic image if you at least have
DHCP on the network). You can write that to a USB stick, boot from it, and
the server should provision as normal.

Greg

··· On 21 January 2014 13:49, Chad Camp wrote:

I cannot use PXE in my environment because we are already using one for
another application system. Because of this I have not installed the
smartproxy.

I am trying to figure out how to setup provision a server from an install
disc. What media should I be using and how do I point it to the foreman?

And getting the same error when trying it from the webpage.

Can you run this on another subnet. I am farily certain you can use PXE,
but maybe you need to enable the smartproxy, with dhcp. Setup dhcp for the
range of ips you want to use.

This sounds like an option I will look into it.

··· On Wednesday, January 22, 2014 5:51:14 AM UTC-5, Greg Sutcliffe wrote:

Take a look at the Foreman-Bootdisk plugin, which allows you to generate
an iPXE USB image for a given server (or a generic image if you at least
have DHCP on the network). You can write that to a USB stick, boot from it,
and the server should provision as normal.

Greg

Got it, but that USB not thing sounds cool. Must check that out myself.

··· On Jan 22, 2014 10:17 PM, "Chad Camp" wrote:

On Wednesday, January 22, 2014 5:51:14 AM UTC-5, Greg Sutcliffe wrote:

Take a look at the Foreman-Bootdisk plugin, which allows you to generate
an iPXE USB image for a given server (or a generic image if you at least
have DHCP on the network). You can write that to a USB stick, boot from it,
and the server should provision as normal.

Greg

This sounds like an option I will look into it.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/e3eVZRQ4o78/unsubscribe.
To unsubscribe from this group and all its topics, 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/groups/opt_out.

Is there any website for this? The instructions are a little on the thin
side. I think i have everything setup but I am getting an error when try
to build an iso.

foreman-rake bootdisk:generate:host NAME=servername OUTPUT=/root/

server.iso --trace ## yes I replaced the stuff in italics proper names ##
** Invoke bootdisk:generate:host (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute bootdisk:generate:host
rake aborted!
undefined method 'mask' for Safemode::Jail (NilClass)
/opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/jail.rb:17:in
method_missing' /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:79:inbind'
/opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:in
eval' /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:ineval'
/usr/share/foreman/lib/foreman/renderer.rb:9:in render_safe' /usr/share/foreman/lib/foreman/renderer.rb:52:inunattended_render'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/app/models/concerns/bootdisk/host_ext.rb:10:in
bootdisk_template_render&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/lib/tasks/bootdisk.rake:6:inblock (3 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:inblock in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:inexecute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain&#39; /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run&#39; /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
Tasks: TOP => bootdisk:generate:host

··· On Wednesday, January 22, 2014 5:51:14 AM UTC-5, Greg Sutcliffe wrote: > > On 21 January 2014 13:49, Chad Camp <ata...@gmail.com >wrote: > >> I cannot use PXE in my environment because we are already using one for >> another application system. Because of this I have not installed the >> smartproxy. >> >> I am trying to figure out how to setup provision a server from an install >> disc. What media should I be using and how do I point it to the foreman? >> >> > Take a look at the Foreman-Bootdisk plugin, which allows you to generate > an iPXE USB image for a given server (or a generic image if you at least > have DHCP on the network). You can write that to a USB stick, boot from it, > and the server should provision as normal. > > Greg >

Hmmm
Make sure you have all those gems mentioned installed. That's one of the
things I don't like about gems. Go through these errors and make sure all
the gems mentioned are installed one the system.

··· On Jan 25, 2014 12:48 AM, "Chad Camp" wrote:

And getting the same error when trying it from the webpage.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/e3eVZRQ4o78/unsubscribe.
To unsubscribe from this group and all its topics, 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/groups/opt_out.

The problem with this is I (the network guys actually) would have to set up
a different network vlan that is separate from the rest of the network just
for building servers then move the network to the regular vlan after it is
built.

··· On Tuesday, January 21, 2014 7:22:58 PM UTC-5, Robert Vernon wrote: > > Can you run this on another subnet. I am farily certain you can use PXE, > but maybe you need to enable the smartproxy, with dhcp. Setup dhcp for the > range of ips you want to use. >

I have the two gems listed in the errors:
safemode-1.2.0
foreman_bootdisk-1.2.1

and as for the dependancies I have:
syslinux.x86_64 4.02-8.el6
@rhel-6-server-rpms
ipxe-bootimgs.noarch 20130517-7.1fm.gitc4bce43.el6sat

When I look for mkisofs I don't have it specifically and when I try to
install it I get:
Package genisoimage-1.1.9-12.el6.x86_64 already installed and latest version

RedHat doens't have a package for isohybrid in the repositories yet. I
believe this is just for creating USB boot drives.

··· On Friday, January 24, 2014 8:05:27 PM UTC-5, Robert Vernon wrote: > > Hmmm > Make sure you have all those gems mentioned installed. That's one of the > things I don't like about gems. Go through these errors and make sure all > the gems mentioned are installed one the system. > On Jan 25, 2014 12:48 AM, "Chad Camp" <ata...@gmail.com > > wrote: > >> And getting the same error when trying it from the webpage. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Foreman users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/foreman-users/e3eVZRQ4o78/unsubscribe. >> To unsubscribe from this group and all its topics, 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/groups/opt_out. >> >

ah found /usr/bin/mkisofs

guess I will try to find isohybrid and see if that helps.

Actually /usr/bin/isohybrid is there so I have everything. so I wonder what
is not setup right. or it doesn't like RedHat Katello.

··· On Saturday, January 25, 2014 9:43:27 AM UTC-5, Chad Camp wrote: > > ah found /usr/bin/mkisofs > > guess I will try to find isohybrid and see if that helps. >

>
>>
>>>
>>> I cannot use PXE in my environment because we are already using one for
another application system. Because of this I have not installed the
smartproxy.
>>>
>>> I am trying to figure out how to setup provision a server from an
install disc. What media should I be using and how do I point it to the
foreman?
>>>
>>
>> Take a look at the Foreman-Bootdisk plugin, which allows you to generate
an iPXE USB image for a given server (or a generic image if you at least
have DHCP on the network). You can write that to a USB stick, boot from it,
and the server should provision as normal.
>>
>> Greg
>
>
> Is there any website for this? The instructions are a little on the thin
side. I think i have everything setup but I am getting an error when try
to build an iso.
>
> # foreman-rake bootdisk:generate:host NAME=servername
OUTPUT=/root/server.iso --trace ## yes I replaced the stuff in italics
proper names ##
> ** Invoke bootdisk:generate:host (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute bootdisk:generate:host
> rake aborted!
> undefined method 'mask' for Safemode::Jail (NilClass)

Try turning off safe mode rendering under settings.

Also, make sure your subnet has a valid netmask.

Ohad

>
/opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/jail.rb:17:in
method_missing&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:79:inbind'
>
/opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:in
eval&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode.rb:51:ineval'
> /usr/share/foreman/lib/foreman/renderer.rb:9:in render_safe&#39; &gt; /usr/share/foreman/lib/foreman/renderer.rb:52:inunattended_render'
>
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/app/models/concerns/bootdisk/host_ext.rb:10:in
bootdisk_template_render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-1.2.1/lib/tasks/bootdisk.rake:6:inblock (3 levels) in <top (required)>'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:inblock in execute'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:inexecute'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in
invoke_task&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run&#39; &gt; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run&#39; &gt; /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
> Tasks: TOP => bootdisk:generate:host
>
> –
> 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.

··· On Jan 24, 2014 6:24 PM, "Chad Camp" wrote: > On Wednesday, January 22, 2014 5:51:14 AM UTC-5, Greg Sutcliffe wrote: >> On 21 January 2014 13:49, Chad Camp wrote: > 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/groups/opt_out.