[Foreman] Provision a KVM VM from a Foreman KVM VM

Hi,

I have a test foreman server KVM VM (192.168.122.10) on my linux notebook
(Fedora 22).
I would like to use this setup and configure my Fedora KVM host as a
Compute Resource.
So, I could use my foreman VM to deploy other VM's inside of my Fedora
notebook.

Is it possible?

Thank you,

Regards,

Fernando

It's certainly possible, but not sure how far you'll get with Fedora 22. I
have a working setup on my RHEL7 laptop that uses Foreman+Katello in a
CentOS7 KVM guest. This is links back to libvirt on the host OS as a
compute resource.

Personally, I'd stick to using CentOS7 as your platforms for Foreman at the
moment - there's proper testing done on that platform. F22 may work, but
I've had issues trying to use too new a version of Fedora in the past.

Have a look
at http://emeraldreverie.org/blog/2012/10/26/creating-development-environment-with/
which although is a few years old, will still point you in the right
direction. I don't run a DHCP server on my host OS like Greg does - I
configured my libvirt network
(https://gist.github.com/duncaninnes/f73b9a143cc76f35cdb8) to do very basic
DHCP & PXE for the specific machines I created. I really ought to revise
my setup and use a proper DHCP server that Foreman can control properly,
but my list of things to do is longer than my arm at the moment.

··· On Tuesday, 9 June 2015 18:15:10 UTC+1, ffrodri...@gmail.com wrote: > > Hi, > > I have a test foreman server KVM VM (192.168.122.10) on my linux notebook > (Fedora 22). > I would like to use this setup and configure my Fedora KVM host as a > Compute Resource. > So, I could use my foreman VM to deploy other VM's inside of my Fedora > notebook. > > Is it possible? > > Thank you, > > Regards, > > Fernando >

Hi Duncan,

I'm using a KVM VM with CentOS 7 as Foreman server. Not Fedora 22. Fedora
22 is my notebook OS. :slight_smile:
I'll try the links you sent me.

Thank you very much for your help!

Regards,

Fernando

··· Em terça-feira, 9 de junho de 2015 13:15:10 UTC-4, ffrodri...@gmail.com escreveu: > > Hi, > > I have a test foreman server KVM VM (192.168.122.10) on my linux notebook > (Fedora 22). > I would like to use this setup and configure my Fedora KVM host as a > Compute Resource. > So, I could use my foreman VM to deploy other VM's inside of my Fedora > notebook. > > Is it possible? > > Thank you, > > Regards, > > Fernando >

Hi,

Thank you very much.
Now I'm able to create a VM, but when I try to access the vm console using
virt-manager, it asks for a password.

Regards,

Fernando

··· Em terça-feira, 9 de junho de 2015 13:15:10 UTC-4, ffrodri...@gmail.com escreveu: > > Hi, > > I have a test foreman server KVM VM (192.168.122.10) on my linux notebook > (Fedora 22). > I would like to use this setup and configure my Fedora KVM host as a > Compute Resource. > So, I could use my foreman VM to deploy other VM's inside of my Fedora > notebook. > > Is it possible? > > Thank you, > > Regards, > > Fernando >

Any idea?

Thank you!

··· Em terça-feira, 9 de junho de 2015 13:15:10 UTC-4, ffrodri...@gmail.com escreveu: > > Hi, > > I have a test foreman server KVM VM (192.168.122.10) on my linux notebook > (Fedora 22). > I would like to use this setup and configure my Fedora KVM host as a > Compute Resource. > So, I could use my foreman VM to deploy other VM's inside of my Fedora > notebook. > > Is it possible? > > Thank you, > > Regards, > > Fernando >

> It's certainly possible, but not sure how far you'll get with Fedora 22.
> I have a working setup on my RHEL7 laptop that uses Foreman+Katello in a
> CentOS7 KVM guest. This is links back to libvirt on the host OS as a
> compute resource.
>
> Personally, I'd stick to using CentOS7 as your platforms for Foreman at
> the moment - there's proper testing done on that platform. F22 may work,
> but I've had issues trying to use too new a version of Fedora in the past.
>
> Have a look at
> http://emeraldreverie.org/blog/2012/10/26/creating-development-environment-with/
> which although is a few years old, will still point you in the right
> direction. I don't run a DHCP server on my host OS like Greg does - I
> configured my libvirt network (
> https://gist.github.com/duncaninnes/f73b9a143cc76f35cdb8) to do very
> basic DHCP & PXE for the specific machines I created. I really ought to
> revise my setup and use a proper DHCP server that Foreman can control
> properly, but my list of things to do is longer than my arm at the moment.
>
> since then, Lukas added support of libvirt based dns/dhcp/tftp, so you can
keep using that and let foreman manage that for you:)

Ohad

··· On Wed, Jun 10, 2015 at 10:51 AM, Duncan Innes wrote:

On Tuesday, 9 June 2015 18:15:10 UTC+1, ffrodri...@gmail.com wrote:

Hi,

I have a test foreman server KVM VM (192.168.122.10) on my linux notebook
(Fedora 22).
I would like to use this setup and configure my Fedora KVM host as a
Compute Resource.
So, I could use my foreman VM to deploy other VM’s inside of my Fedora
notebook.

Is it possible?

Thank you,

Regards,

Fernando


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

>
>
>
>
>>
>> Have a look at
>> http://emeraldreverie.org/blog/2012/10/26/creating-development-environment-with/
>> which although is a few years old, will still point you in the right
>> direction. I don't run a DHCP server on my host OS like Greg does - I
>> configured my libvirt network (
>> https://gist.github.com/duncaninnes/f73b9a143cc76f35cdb8) to do very
>> basic DHCP & PXE for the specific machines I created. I really ought to
>> revise my setup and use a proper DHCP server that Foreman can control
>> properly, but my list of things to do is longer than my arm at the moment.
>>
>> since then, Lukas added support of libvirt based dns/dhcp/tftp, so you
> can keep using that and let foreman manage that for you:)
>
>
Ohad
>

That just means I'll never get round to doing it "properly" :wink:

Good to know though - will give it a go.

Cheers

D

··· On Wednesday, 10 June 2015 12:17:30 UTC+1, ohad wrote: > On Wed, Jun 10, 2015 at 10:51 AM, Duncan Innes > wrote: