From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaurav Maheshbhai Patel Subject: Re: Instant Xen guest (guest-magic tool) Date: Sat, 14 Apr 2007 09:51:42 -0500 Message-ID: References: <20070411090617.GA24664@steve.org.uk> <20070411224200.GA18960@steve.org.uk> <20070412185212.GA1484@steve.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <20070412185212.GA1484@steve.org.uk> Content-language: en Content-disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Steve Kemp Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi steve, The comment on /tmp/guestmagic was really good. I was wondering what if we use /tmp/$$ > commands.getoutput('xm list > /tmp/$$') Is it create the same problem as /tmp/guestmagic? Thanks in advance Gaurav ----- Original Message ----- From: Steve Kemp Date: Thursday, April 12, 2007 1:52 pm Subject: Re: [Xen-devel] Instant Xen guest (guest-magic tool) To: Gaurav Maheshbhai Patel Cc: xen-devel@lists.xensource.com > On Thu, Apr 12, 2007 at 12:17:47PM -0400, Gaurav Maheshbhai Patel > wrote: > > Well good to hear that you are working on same kind of project. > > I was wondering about your suggestion. If we make a copy/snapshot > of it. Then Installing fresh copy of Some linux distro.... > > 1) How can we do that? > > Depends on the type of distribution you've got. For Debian dom0 you > can use tools like debootstrap to automatically install fresh copies > of Debian inside a directory/partition. Similarly you could use a > tool like rpmstrap to install copies of CentOS. (Though rpmstrap > is very > fragile and prone to breakage). > > > 2) If we do that then, doesn't it take the same time to > installing new distro on guest? > > I don't fully understand what you're asking there. If you're using > a tool like rpmstrap, or debootstrap, then it'd take a few minutes to > install (or more depending on your network link). > > If you had several Linux distribution images locally you could do > a copy in a few seconds. > > (That's what we do at work - we have a collection of configured > Linux distributions mounted read-only, and we simply copy those > into new > guests automatically. The process of installing Gentoo, Debian, > Ubuntu, or CentOS takes only a few minutes - but it does rely upon > you creating the "source" installations manually first. There are > a small collection of fixups applied after the copy to setup unique > IPs, hostnames, etc, but otherwise the new copies are basically > clones of the centralized master copy of each distribution.) > > > Also have you looked at the snap shot of guest-magic on > sourceforge.net? > > Yes .. > > > Well IP assignment is still issue there because of short deadline > of the project. But we are still going to do that. > > > Also, can you please tell me about what are you working on? > > Might be it helps us some what > > xen-tools : > > http://xen-tools.org/software/xen-tools/ > > Developed and used primarily upon Debian GNU/Linux, but apparently > portable to things like CentOS and Fedora Core. > > Steve > -- >