FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-24-2008, 08:12 PM
"Al Tobey"
 
Default koan network config patch

The attached patch adds network configuration options to koan so that
it will add them to the kernel command line with --autonet. This
makes it really trivial to install VM's with static networking from a
profile.

for vmnum in `seq -f%02g 0 99`
do
let ip='vmnum + 16'
domU="myvm-${vmnum}"
koan -v -s cobbler -n -p centos5-xen -V $domU -P vgxen00 -A
--ip=192.168.9.$ip --netmask=255.255.255.0 --gateway=192.168.9.1
--hostname=$domU
done

While I could add the systems to cobbler with a similar loop then
install using a system, I don't really want to track all of these VM's
in cobbler. Some are throw-away. Some come and go too often for it
to be useful. "Just use DHCP" is not the answer, due to a number of
issues, both technical and historical.

-Al
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-24-2008, 09:14 PM
"Demetri Mouratis"
 
Default koan network config patch

Al,

Cool! I was just in need of such a feature myself but for bare-metal
installs. We allow DHCP on our "build VLAN" only. Once machines get
installed with base OS, they are then customized with static IPs and
hostnames then re-networked to their target VLAN, server network, DMZ,
etc.

This is really handy. I'll give it a shot now.

-D

On Thu, Apr 24, 2008 at 1:12 PM, Al Tobey <tobert@gmail.com> wrote:
> The attached patch adds network configuration options to koan so that
> it will add them to the kernel command line with --autonet. This
> makes it really trivial to install VM's with static networking from a
> profile.
>
> for vmnum in `seq -f%02g 0 99`
> do
> let ip='vmnum + 16'
> domU="myvm-${vmnum}"
> koan -v -s cobbler -n -p centos5-xen -V $domU -P vgxen00 -A
> --ip=192.168.9.$ip --netmask=255.255.255.0 --gateway=192.168.9.1
> --hostname=$domU
> done
>
> While I could add the systems to cobbler with a similar loop then
> install using a system, I don't really want to track all of these VM's
> in cobbler. Some are throw-away. Some come and go too often for it
> to be useful. "Just use DHCP" is not the answer, due to a number of
> issues, both technical and historical.
>
> -Al
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-28-2008, 05:57 PM
Michael DeHaan
 
Default koan network config patch

Al Tobey wrote:

The attached patch adds network configuration options to koan so that
it will add them to the kernel command line with --autonet. This
makes it really trivial to install VM's with static networking from a
profile.

for vmnum in `seq -f%02g 0 99`
do
let ip='vmnum + 16'
domU="myvm-${vmnum}"
koan -v -s cobbler -n -p centos5-xen -V $domU -P vgxen00 -A
--ip=192.168.9.$ip --netmask=255.255.255.0 --gateway=192.168.9.1
--hostname=$domU
done

While I could add the systems to cobbler with a similar loop then
install using a system, I don't really want to track all of these VM's
in cobbler. Some are throw-away. Some come and go too often for it
to be useful. "Just use DHCP" is not the answer, due to a number of
issues, both technical and historical.

-Al

------------------------------------------------------------------------


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


Thanks for the patch!

I would perhaps change it to only override the settings that are
specified on the options line (i.e. not None), though this looks good to me.

I will look into applying this shortly for 0.9/1.0.

We also need to add the option for a few more overrides into koan, for
when the profile is mostly correct but the koan
user doesn't have access to change the profile. I believe putting
--virt-type back in koan was one of those things.


This also provides a good opportunity to cleanup and expand the koan
docs with a few basic use cases.


--Michael


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 09:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org