WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Loop and ENBD device management (was Re: [Xen-devel] Automation scripts)

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Loop and ENBD device management (was Re: [Xen-devel] Automation scripts)
From: "Mark A. Williamson" <mark.williamson@xxxxxxxxxxxx>
Date: Thu, 30 Sep 2004 20:58:31 +0000
Cc: Paul Dorman <pauld@xxxxxxxxx>
Delivery-date: Fri, 01 Oct 2004 01:32:01 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <200409280723.57130.pauld@xxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <200409280723.57130.pauld@xxxxxxxxx>
Reply-to: mark.williamson@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.6.2
Initial support for Xend to automatically bind loop and ENBD devices is now in 
the unstable tree.

To use a file for a domain's disk the syntax is:
'file:/path/to/file,target_dev,mode'

For ENBD (Disclaimer!  The scripts for ENBD are untested and probably won't 
work yet.  If someone could test this on a non-production system that'd be 
good):
'enbd:host:port,target_dev,mode'

Binding and unbinding these devices to local device nodes is done in the 
scripts /etc/xen/{block-file,block-enbd}.

You can edit those scripts to change their behaviour.  To add support for a 
device of type "foo" you can just add a script /etc/xen/block-foo and a 
config item in the Xend config.

This should already be useful, at least for file-based disks.  It'd be nice to 
have the ENBD script working and have some kind of iSCSI script at some 
stage.

Cheers,
Mark

On Monday 27 September 2004 19:23, Paul Dorman wrote:
> Hi all,
>
> I wonder if anyone on the list has written any scripts to automate the
> management of VMs with loopback images. Here's what I want to be able to
> do:
>
> * Store existing physical machine file systems, or pristine installs in
> loopback images on my Xen servers (something I'll do manually)
>
> * Run a script that will start a VM from one of these images, automatically
> associate it with a loopback device, give it a name, RAM allocation,
> network addresses, and set various internal parameters, such as hostname,
> routes, etc., based on a set of arguments. So something like "script
> <imagename> <hostname> <netconfigs> <RAM> <.. etc.
>
> * Have the same script take another argument that will cause it to clone a
> filesystem image first before starting the VM, so that I can use a set of
> images as VM templates. I intend to have a large collection of templates
> which my developers can use to create VMs suited to whatever project they
> are working on.
>
> * After a VM machine has been instantiated, I would like to be able to
> start and stop it with simple "start hostname" and "stop hostname" kinds of
> commands.
>
> * Have management tools so that I can for example shift a VM from one Xen
> server to another (shift hostname xenservername). These would also be used
> by load balancing scripts to shift machines around to manage resources.
>
> I'd like to build a web-based management system for these scripts, so that
> developers are free to create and control Xen VMs (though naturally with
> limitations based on what the servers can handle -- so my bosses will know
> when they need to buy me more servers :o)  ).
>
> I don't see these as particularly difficult, but if someone has done them
> already .... Also, I'd appreciate any thoughts you might have on automation
> of this kind, particularly in terms of functionality and practicalities.
>
> Thanks for your time!
>
> Paul
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>