[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Templates or cloning domUs



Jeff,
 
Here is a little script I wrote to clone SLES10 DomUs.  It creates a clone and gives a new mac, a new ip you specify and new host name you specify, modifys the config and image files.  Currently it just clones one at a time.
 
Usage - xenclone.sh vm1 new_vm new_ip
 
Glen


>>> On 6/27/2006 at 11:47 AM, in message <6025df6b0606271047u55d52128m92ceac994479e0d9@xxxxxxxxxxxxxx>, "Jeff Lane" <sundowner225@xxxxxxxxx> wrote:
First of all, I have searched and searched,so please do not suggest that ;-)

Anyway, I have a machine that I want to be able to create a LOT of
domUs.  The problem is, I cant just clone them...  its a SLES10 system
and the domUs are being created (right now at least) through YaST.

I have seen only a little bit of documentation about templating, but
nothing that really helps out in this.  I have also read a bunch of
sites and threads about how to build them by hand using bootstrap or
some other means...  that doesnt work.

What I want to be able to do is build ONE domU and then create at
least 20 - 30 copies of it.  I cant just copy the domU's filesystem
and config file as they all end up with the same MAC address for the
NIC.  Even changing that in the config file does not help as when I
boot the copy with a config that has a MAC ending in 99:9f, it STILL
shows the MAC of the original copy...

So, does anyone know of any documentation on using templates to create
multiple domUs?  Other than building them by hand, if at all possible.
It's not that I am lazy (I am) but I have to look at this from the
end user perspective, and no one is going to want to go through the
hassle of making 100+ domUs by hand when VMWare allows you to simply
point and click to create templates and clones.

Ok, that was a bit oversimplified, but VMWare DOES make it relatively
simple.  Is the templating functionality readily usable in Xen yet??

Cheers
Jeff

--
------------------> Jeffrey Lane - W4KDH <-------------------
                      www.jefflane.org
                Another cog in the great
                     Corporate Wheel

The internet has no government, no constitution, no laws, no
rights, no police, no courts.  Don't talk about fairness or
innocence, and don't talk about what should be done.  Instead,
talk about what is being done and what will be done by the
amorphous unreachable undefinable blob called "the internet
user base." -Paul Vixie

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

Attachment: xenclone.sh
Description: Bourne shell script

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.