Installing kvm based VM using Foreman

Hello,

I am a new user to Foreman and Puppet and currently I am configuring it. I
want to do KVM based VM installation via Foreman using Libvirt. I wanted to
know whether it's possible to Run the foreman server in a VM and do these
things. If yes, how?

I have already refered the link

http://theforeman.org/projects/foreman/wiki/Virtual_Machine_Provisioning

Thanks in advance.

-Chandan

Moreover, whenever I am trying to add a new hypervisor manually using the
link /hypervisors/

Its showing following error

Oops, we're sorry but something went wrong
x <http://foreman:3000/hypervisors/#> undefined local variable or
method `hash_for_new_hypervisor_path' for
#<ActionView::Base:0x2b2dca38c7f0>

If you feel this is an error with Foreman itself, please open a new issue
with Foreman ticketing system<Issues - Foreman>,
You would probably need to attach the Full
trace<http://foreman:3000/hypervisors/#>and relevant log entries.
ActionView::TemplateError
undefined local variable or method `hash_for_new_hypervisor_path' for #
app/views/hypervisors/index.html.erb:3

I am sure there is something missing in my setting may be someone can help
in in that. I words with Bengaden on IRC but I was not able to resolve the
problem.

My configuration:

Fedora 16 host machine.
Centos Guest machine KVM libvirt.

The foreman is running on a Centos 5.7 VM and I am trying to install a new
VM on the host machine (F16) using the foreman. Not sure whether such
configuration works. If does not let me know in case I need to run both
hypervisor and foreman both on Real hard ware machine.

Moreover, I am able to connect to the remote hypervisor using
qemu+tcp://foreman/.

Thanks
Chandan

··· On Mon, Apr 30, 2012 at 3:33 PM, Chandan wrote:

Hello,

I am a new user to Foreman and Puppet and currently I am configuring it. I
want to do KVM based VM installation via Foreman using Libvirt. I wanted to
know whether it’s possible to Run the foreman server in a VM and do these
things. If yes, how?

I have already refered the link

Virtual Machine Provisioning - Foreman

Thanks in advance.

-Chandan


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/pf35lL8SzHgJ.
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.

>
> Moreover, whenever I am trying to add a new hypervisor manually using the
> link /hypervisors/
>
> Its showing following error
>
> Oops, we're sorry but something went wrong
> x <http://foreman:3000/hypervisors/#> undefined local variable or
> method hash_for_new_hypervisor_path&#39; for &gt; #&lt;ActionView::Base:0x2b2dca38c7f0&gt; &gt; &gt; If you feel this is an error with Foreman itself, please open a new issue &gt; with Foreman ticketing system&lt;http://theforeman.org/projects/foreman/issues&gt;, &gt; You would probably need to attach the Full trace&lt;http://foreman:3000/hypervisors/#&gt;and relevant log entries. &gt; *ActionView::TemplateError* &gt; *undefined local variable or methodhash_for_new_hypervisor_path' for #*
> app/views/hypervisors/index.html.erb:3
>
>
> I am sure there is something missing in my setting may be someone can help
> in in that. I words with Bengaden on IRC but I was not able to resolve the
> problem.
>
> My configuration:
>
> Fedora 16 host machine.
> Centos Guest machine KVM libvirt.
>
> The foreman is running on a Centos 5.7 VM and I am trying to install a new
> VM on the host machine (F16) using the foreman. Not sure whether such
> configuration works. If does not let me know in case I need to run both
> hypervisor and foreman both on Real hard ware machine.
>
> Do you have libvirt installed on the foreman host? how did you install
foreman?

kvm provisioning using libvirt works quite well, since version 0.3 or so,
in the recent development version we also support provisioning using ovirt
(see ovirt.org) if that fits your usage case betters.

Ohad

··· On Tue, May 1, 2012 at 3:45 AM, Chandan Kumar wrote:

Moreover, I am able to connect to the remote hypervisor using
qemu+tcp://foreman/.

Thanks
Chandan

On Mon, Apr 30, 2012 at 3:33 PM, Chandan chandank.kumar@gmail.com wrote:

Hello,

I am a new user to Foreman and Puppet and currently I am configuring it.
I want to do KVM based VM installation via Foreman using Libvirt. I wanted
to know whether it’s possible to Run the foreman server in a VM and do
these things. If yes, how?

I have already refered the link

Virtual Machine Provisioning - Foreman

Thanks in advance.

-Chandan


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/pf35lL8SzHgJ.
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.


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,

Yes libvirt is installed in the VM where I am running foreman. I installed
foreman using YUM. I guess its your article only at how2centos. I followed
those steps to install and do initial configuration for foreman such as
importing the DB and puppet manifest files.

As of now I am able to see puppet host informations on foreman. And now to
see whether things work I wanted to install/build on VM using foreman's
webgui. So I followed the provisioning VM on the foreman wiki page.

Later I learned that I am not able to even open/create/ a new hypervisor in
my foreman installation.

Do I need to install foreman on a physical machine rather than on a VM? Let
me know if am doing anything wrong.

Thanks
Chandan

··· On Tue, May 1, 2012 at 1:05 AM, Ohad Levy wrote:

On Tue, May 1, 2012 at 3:45 AM, Chandan Kumar chandank.kumar@gmail.comwrote:

Moreover, whenever I am trying to add a new hypervisor manually using the
link /hypervisors/

Its showing following error

Oops, we’re sorry but something went wrong
x http://foreman:3000/hypervisors/# undefined local variable or
method `hash_for_new_hypervisor_path’ for
#ActionView::Base:0x2b2dca38c7f0

If you feel this is an error with Foreman itself, please open a new issue
with Foreman ticketing systemhttp://theforeman.org/projects/foreman/issues,
You would probably need to attach the Full tracehttp://foreman:3000/hypervisors/#and relevant log entries.
ActionView::TemplateError
undefined local variable or method `hash_for_new_hypervisor_path’ for #
app/views/hypervisors/index.html.erb:3

I am sure there is something missing in my setting may be someone can
help in in that. I words with Bengaden on IRC but I was not able to resolve
the problem.

My configuration:

Fedora 16 host machine.
Centos Guest machine KVM libvirt.

The foreman is running on a Centos 5.7 VM and I am trying to install a
new VM on the host machine (F16) using the foreman. Not sure whether such
configuration works. If does not let me know in case I need to run both
hypervisor and foreman both on Real hard ware machine.

Do you have libvirt installed on the foreman host? how did you install
foreman?

kvm provisioning using libvirt works quite well, since version 0.3 or so,
in the recent development version we also support provisioning using ovirt
(see ovirt.org) if that fits your usage case betters.

Ohad

Moreover, I am able to connect to the remote hypervisor using
qemu+tcp://foreman/.

Thanks
Chandan

On Mon, Apr 30, 2012 at 3:33 PM, Chandan chandank.kumar@gmail.comwrote:

Hello,

I am a new user to Foreman and Puppet and currently I am configuring it.
I want to do KVM based VM installation via Foreman using Libvirt. I wanted
to know whether it’s possible to Run the foreman server in a VM and do
these things. If yes, how?

I have already refered the link

Virtual Machine Provisioning - Foreman

Thanks in advance.

-Chandan


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/pf35lL8SzHgJ.
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.


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.


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,

Thanks for the help, now I am able to see the hypervisor and control
(poweroff, destroy, poweron) the guest VMs on that hypervisor. However, I
am still not able to get a fresh new host build(installed) using foreman.

Using the web inteface I did created a host and it tells the host has been
created, but I dont see any files created at my /tfttpboot directory or
anywhere that could signify and something is working.

Moreover, I have installed foreman-proxy using yum. and did the
configuration as per how2s already available on wiki and other links.

Thanks
Chandan

··· On Tue, May 1, 2012 at 9:23 AM, Chandan Kumar wrote:

Hi Ohad,

Yes libvirt is installed in the VM where I am running foreman. I installed
foreman using YUM. I guess its your article only at how2centos. I followed
those steps to install and do initial configuration for foreman such as
importing the DB and puppet manifest files.

As of now I am able to see puppet host informations on foreman. And now to
see whether things work I wanted to install/build on VM using foreman’s
webgui. So I followed the provisioning VM on the foreman wiki page.

Later I learned that I am not able to even open/create/ a new hypervisor
in my foreman installation.

Do I need to install foreman on a physical machine rather than on a VM?
Let me know if am doing anything wrong.

Thanks
Chandan

On Tue, May 1, 2012 at 1:05 AM, Ohad Levy ohadlevy@gmail.com wrote:

On Tue, May 1, 2012 at 3:45 AM, Chandan Kumar chandank.kumar@gmail.comwrote:

Moreover, whenever I am trying to add a new hypervisor manually using
the link /hypervisors/

Its showing following error

Oops, we’re sorry but something went wrong
x http://foreman:3000/hypervisors/# undefined local variable or
method `hash_for_new_hypervisor_path’ for
#ActionView::Base:0x2b2dca38c7f0

If you feel this is an error with Foreman itself, please open a new
issue with Foreman ticketing systemhttp://theforeman.org/projects/foreman/issues,
You would probably need to attach the Full tracehttp://foreman:3000/hypervisors/#and relevant log entries.
ActionView::TemplateError
*undefined local variable or method `hash_for_new_hypervisor_path’ for #
*
app/views/hypervisors/index.html.erb:3

I am sure there is something missing in my setting may be someone can
help in in that. I words with Bengaden on IRC but I was not able to resolve
the problem.

My configuration:

Fedora 16 host machine.
Centos Guest machine KVM libvirt.

The foreman is running on a Centos 5.7 VM and I am trying to install a
new VM on the host machine (F16) using the foreman. Not sure whether such
configuration works. If does not let me know in case I need to run both
hypervisor and foreman both on Real hard ware machine.

Do you have libvirt installed on the foreman host? how did you install
foreman?

kvm provisioning using libvirt works quite well, since version 0.3 or so,
in the recent development version we also support provisioning using ovirt
(see ovirt.org) if that fits your usage case betters.

Ohad

Moreover, I am able to connect to the remote hypervisor using
qemu+tcp://foreman/.

Thanks
Chandan

On Mon, Apr 30, 2012 at 3:33 PM, Chandan chandank.kumar@gmail.comwrote:

Hello,

I am a new user to Foreman and Puppet and currently I am configuring
it. I want to do KVM based VM installation via Foreman using Libvirt. I
wanted to know whether it’s possible to Run the foreman server in a VM and
do these things. If yes, how?

I have already refered the link

Virtual Machine Provisioning - Foreman

Thanks in advance.

-Chandan


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/pf35lL8SzHgJ.
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.


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.


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.